summaryrefslogtreecommitdiff
path: root/test/runCompletion
diff options
context:
space:
mode:
Diffstat (limited to 'test/runCompletion')
-rwxr-xr-xtest/runCompletion8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/runCompletion b/test/runCompletion
new file mode 100755
index 00000000..38a82622
--- /dev/null
+++ b/test/runCompletion
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# NOTE: I tried setting up bash_completion_lib within ./lib files, but DejaGnu
+# isn't initialized at that point (i.e. output of `expect' is shown on
+# stdout - `open_logs' hasn't run yet?). And running code from a library
+# file isn't probably a good idea either.
+exec "${bashcomp_bash:-$BASH}" \
+ "$(dirname "${BASH_SOURCE[0]}")/run" --tool completion $*