[Groonga-mysql-commit] mroonga/mroonga at 79f2851 [master] test: support --manual-gdb/--gdb/--debug after --XXX

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Sun Aug 9 13:08:40 JST 2015


Kouhei Sutou	2015-08-09 13:08:40 +0900 (Sun, 09 Aug 2015)

  New Revision: 79f28513e4695581399ff8a3d421db9c50420692
  https://github.com/mroonga/mroonga/commit/79f28513e4695581399ff8a3d421db9c50420692

  Message:
    test: support --manual-gdb/--gdb/--debug after --XXX

  Modified files:
    test/run-sql-test.sh

  Modified: test/run-sql-test.sh (+10 -10)
===================================================================
--- test/run-sql-test.sh    2015-08-09 12:58:39 +0900 (1416da8)
+++ test/run-sql-test.sh    2015-08-09 13:08:40 +0900 (071f7bf)
@@ -164,31 +164,31 @@ fi
 test_suite_names=""
 test_names=""
 while [ $# -gt 0 ]; do
-  case "$1" in
+  arg="$1"
+  shift
+  case "$arg" in
     --manual-gdb|--gdb|--debug)
       n_processors=1
-      break
       ;;
     --*)
-      break
+      :
       ;;
     *)
-      case "$1" in
+      case "$arg" in
 	*/t/*.test)
-	  test_suite_name=$(echo "$1" | sed -e 's,/t/.*\.test,,g')
+	  test_suite_name=$(echo "$arg" | sed -e 's,/t/.*\.test,,g')
 	  test_suite_name=$(cd "$test_suite_name" && pwd)
-	  test_name=$(echo "$1" | sed -e 's,.*/t/\(.*\)\.test,\1,g')
+	  test_name=$(echo "$arg" | sed -e 's,.*/t/\(.*\)\.test,\1,g')
 	  ;;
 	*)
-	  if [ -d "$1" ]; then
-	    test_suite_name=$(cd "$1" && pwd)
+	  if [ -d "$arg" ]; then
+	    test_suite_name=$(cd "$arg" && pwd)
 	  else
-	    test_suite_name="$1"
+	    test_suite_name="$arg"
 	  fi
 	  test_name=""
 	  ;;
       esac
-      shift
 
       if [ -n "${test_name}" ]; then
 	if [ -n "${test_names}" ]; then
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Zurück zum Archiv-Index