summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorChad Versace <chad.versace@intel.com>2015-07-31 17:27:11 -0700
committerChad Versace <chad.versace@intel.com>2015-07-31 17:48:42 -0700
commit208d7e3ceed55e2b06e200d157c767431ff0e7ae (patch)
treeee9468d626a01d182cd2fe403a3efa9abb402b1b /misc
parent1a81914daf08ce3f283de273547b54d6a7a24ea1 (diff)
crucible-run: Add flag --no-separate-cleanup-threads
If separate cleanup threads are disabled, then each test's cleanup handlers will run inside the test's "result" thread. If enabled, then the "result" thread will create a new thread in which to run the cleanup handlers. Tested by: * Inspecting `crucible run --no-separate-cleanup-threads func.draw-indexed` in gdb. * Confirming the result totals are the same with and without --no-separate-cleanup-threads.
Diffstat (limited to 'misc')
-rw-r--r--misc/crucible-completion.bash14
1 files changed, 13 insertions, 1 deletions
diff --git a/misc/crucible-completion.bash b/misc/crucible-completion.bash
index 018840d..f9db1d1 100644
--- a/misc/crucible-completion.bash
+++ b/misc/crucible-completion.bash
@@ -17,7 +17,19 @@ __crucible_ls_tests()
__crucible_run()
{
- COMPREPLY=($(compgen -W "--help --fork --no-fork --dump --no-dump --no-cleanup --use-spir-v $($1 ls-tests)" -- ${COMP_WORDS[COMP_CWORD]}))
+ local flags="
+ --help
+ --fork
+ --no-fork
+ --separate-cleanup-threads
+ --no-separate-cleanup-threads
+ --dump
+ --no-dump
+ --no-cleanup
+ --use-spir-v
+ "
+
+ COMPREPLY=($(compgen -W "$flags $($1 ls-tests)" -- ${COMP_WORDS[COMP_CWORD]}))
}
__crucible()