[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[FYI] {maint} runtest: support option --shell, tell which shell should r
From: |
Stefano Lattarini |
Subject: |
[FYI] {maint} runtest: support option --shell, tell which shell should run the test |
Date: |
Wed, 25 Jul 2012 13:04:03 +0200 |
* runtest.in: Here. The same effect could have been obtained by
exporting AM_TEST_RUNNER_SHELL to the desired value, but the new
API is simpler and requires less typing and less thinking.
Signed-off-by: Stefano Lattarini <address@hidden>
---
runtest.in | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/runtest.in b/runtest.in
index 3c6981c..4bdcb49 100644
--- a/runtest.in
+++ b/runtest.in
@@ -32,11 +32,19 @@ shell_opts=
while test $# -gt 0; do
case $1 in
--help)
- echo "Usage: $0 [SHELL-OPTIONS] TEST [TEST-OPTIONS]"
+ echo "Usage: $0 [--shell=PATH] [SHELL-OPTIONS] TEST [TEST-OPTIONS]"
exit $?
;;
+ --shell)
+ test $# -gt 1 || error "missing argument for option '$1'"
+ AM_TEST_RUNNER_SHELL=$2
+ shift
+ ;;
+ --shell=*)
+ AM_TEST_RUNNER_SHELL=${1#--shell=}
+ ;;
-o)
- test $# -gt 1 || error "missing argument for option '-o'"
+ test $# -gt 1 || error "missing argument for option '$1'"
shell_opts="-o $2"
shift
;;
--
1.7.12.rc0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [FYI] {maint} runtest: support option --shell, tell which shell should run the test,
Stefano Lattarini <=