2017-08-24 15:04:56 +00:00
|
|
|
$ . $TESTDIR/setup.sh
|
|
|
|
$ cd $topsrcdir
|
|
|
|
|
|
|
|
Test preset with no subcommand
|
|
|
|
|
|
|
|
$ ./mach try $testargs --save foo -b do -p linux -u mochitests -t none --tag foo
|
2017-09-15 23:17:37 +00:00
|
|
|
Commit message:
|
|
|
|
try: -b do -p linux -u mochitests -t none --tag foo
|
|
|
|
|
|
|
|
Pushed via `mach try syntax`
|
2017-08-24 15:04:56 +00:00
|
|
|
preset saved, run with: --preset=foo
|
2017-10-27 18:58:34 +00:00
|
|
|
|
2017-08-24 15:04:56 +00:00
|
|
|
$ ./mach try $testargs --preset foo
|
2017-09-15 23:17:37 +00:00
|
|
|
Commit message:
|
|
|
|
try: -b do -p linux -u mochitests -t none --tag foo
|
|
|
|
|
|
|
|
Pushed via `mach try syntax`
|
2017-10-27 18:58:34 +00:00
|
|
|
|
2017-08-24 15:04:56 +00:00
|
|
|
$ ./mach try syntax $testargs --preset foo
|
2017-09-15 23:17:37 +00:00
|
|
|
Commit message:
|
|
|
|
try: -b do -p linux -u mochitests -t none --tag foo
|
|
|
|
|
|
|
|
Pushed via `mach try syntax`
|
2017-10-27 18:58:34 +00:00
|
|
|
|
2017-08-24 15:04:56 +00:00
|
|
|
$ ./mach try $testargs --list-presets
|
|
|
|
foo: -b do -p linux -u mochitests -t none --tag foo
|
2017-10-27 18:58:34 +00:00
|
|
|
$ unset EDITOR
|
|
|
|
$ ./mach try $testargs --edit-presets
|
|
|
|
error: must set the $EDITOR environment variable to use --edit-presets
|
|
|
|
$ export EDITOR=cat
|
|
|
|
$ ./mach try $testargs --edit-presets
|
|
|
|
[try]
|
|
|
|
foo = -b do -p linux -u mochitests -t none --tag foo
|
|
|
|
|
2017-08-24 15:04:56 +00:00
|
|
|
|
|
|
|
Test preset with syntax subcommand
|
|
|
|
|
|
|
|
$ ./mach try syntax $testargs --save bar -b do -p win32 -u none -t all --tag bar
|
2017-09-15 23:17:37 +00:00
|
|
|
Commit message:
|
|
|
|
try: -b do -p win32 -u none -t all --tag bar
|
|
|
|
|
|
|
|
Pushed via `mach try syntax`
|
2017-08-24 15:04:56 +00:00
|
|
|
preset saved, run with: --preset=bar
|
2017-10-27 18:58:34 +00:00
|
|
|
|
2017-08-24 15:04:56 +00:00
|
|
|
$ ./mach try syntax $testargs --preset bar
|
2017-09-15 23:17:37 +00:00
|
|
|
Commit message:
|
|
|
|
try: -b do -p win32 -u none -t all --tag bar
|
|
|
|
|
|
|
|
Pushed via `mach try syntax`
|
2017-10-27 18:58:34 +00:00
|
|
|
|
2017-08-24 15:04:56 +00:00
|
|
|
$ ./mach try $testargs --preset bar
|
2017-09-15 23:17:37 +00:00
|
|
|
Commit message:
|
|
|
|
try: -b do -p win32 -u none -t all --tag bar
|
|
|
|
|
|
|
|
Pushed via `mach try syntax`
|
2017-10-27 18:58:34 +00:00
|
|
|
|
2017-08-24 15:04:56 +00:00
|
|
|
$ ./mach try syntax $testargs --list-presets
|
|
|
|
foo: -b do -p linux -u mochitests -t none --tag foo
|
|
|
|
bar: -b do -p win32 -u none -t all --tag bar
|
2017-10-27 18:58:34 +00:00
|
|
|
$ ./mach try syntax $testargs --edit-presets
|
|
|
|
[try]
|
|
|
|
foo = -b do -p linux -u mochitests -t none --tag foo
|
|
|
|
bar = -b do -p win32 -u none -t all --tag bar
|
|
|
|
|
2017-08-24 15:04:56 +00:00
|
|
|
|
|
|
|
Test preset with fuzzy subcommand
|
|
|
|
|
|
|
|
$ ./mach try fuzzy $testargs --save baz -q "'baz"
|
|
|
|
preset saved, run with: --preset=baz
|
2017-09-18 16:43:03 +00:00
|
|
|
Commit message:
|
2017-11-15 21:36:07 +00:00
|
|
|
Fuzzy query='baz
|
2017-09-18 16:43:03 +00:00
|
|
|
|
|
|
|
Pushed via `mach try fuzzy`
|
|
|
|
Calculated try_task_config.json:
|
2017-08-24 15:04:56 +00:00
|
|
|
{
|
|
|
|
"tasks":[
|
|
|
|
"build-baz"
|
|
|
|
]
|
|
|
|
}
|
2017-09-16 02:02:13 +00:00
|
|
|
|
2017-09-18 16:43:03 +00:00
|
|
|
$ ./mach try fuzzy $testargs --preset baz
|
2017-09-15 23:17:37 +00:00
|
|
|
Commit message:
|
2017-11-15 21:36:07 +00:00
|
|
|
Fuzzy query='baz
|
2017-09-15 23:17:37 +00:00
|
|
|
|
|
|
|
Pushed via `mach try fuzzy`
|
2017-09-18 16:43:03 +00:00
|
|
|
Calculated try_task_config.json:
|
2017-08-24 15:04:56 +00:00
|
|
|
{
|
|
|
|
"tasks":[
|
|
|
|
"build-baz"
|
|
|
|
]
|
|
|
|
}
|
2017-09-16 02:02:13 +00:00
|
|
|
|
2018-06-26 22:08:07 +00:00
|
|
|
|
|
|
|
$ ./mach try fuzzy $testargs --preset baz -q "'foo"
|
|
|
|
Commit message:
|
|
|
|
Fuzzy query='foo&query='baz
|
|
|
|
|
|
|
|
Pushed via `mach try fuzzy`
|
|
|
|
Calculated try_task_config.json:
|
|
|
|
{
|
|
|
|
"tasks":[
|
|
|
|
"build-baz",
|
|
|
|
"test/foo-debug",
|
|
|
|
"test/foo-opt"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2017-09-18 16:43:03 +00:00
|
|
|
$ ./mach try $testargs --preset baz
|
2017-09-15 23:17:37 +00:00
|
|
|
Commit message:
|
2017-11-15 21:36:07 +00:00
|
|
|
Fuzzy query='baz
|
2017-09-15 23:17:37 +00:00
|
|
|
|
|
|
|
Pushed via `mach try fuzzy`
|
2017-09-18 16:43:03 +00:00
|
|
|
Calculated try_task_config.json:
|
2017-08-24 15:04:56 +00:00
|
|
|
{
|
|
|
|
"tasks":[
|
|
|
|
"build-baz"
|
|
|
|
]
|
|
|
|
}
|
2017-09-16 02:02:13 +00:00
|
|
|
|
2017-10-27 18:58:34 +00:00
|
|
|
$ ./mach try fuzzy $testargs --list-presets
|
|
|
|
baz: 'baz
|
|
|
|
$ ./mach try fuzzy $testargs --edit-presets
|
|
|
|
[try]
|
|
|
|
foo = -b do -p linux -u mochitests -t none --tag foo
|
|
|
|
bar = -b do -p win32 -u none -t all --tag bar
|
|
|
|
|
|
|
|
[fuzzy]
|
|
|
|
baz = 'baz
|
|
|
|
|