[Groonga-commit] groonga/groonga at 4c746f3 [master] test command: support --valgrind option

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Mar 12 11:25:09 JST 2015


Kouhei Sutou	2015-03-12 11:25:09 +0900 (Thu, 12 Mar 2015)

  New Revision: 4c746f3a30e1f83e402be18376c960dbb27c5cd0
  https://github.com/groonga/groonga/commit/4c746f3a30e1f83e402be18376c960dbb27c5cd0

  Message:
    test command: support --valgrind option

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

  Modified: test/command/run-test.sh (+8 -1)
===================================================================
--- test/command/run-test.sh    2015-03-11 23:30:08 +0900 (f1b65bf)
+++ test/command/run-test.sh    2015-03-12 11:25:09 +0900 (9882494)
@@ -96,6 +96,7 @@ fi
 
 have_targets="false"
 use_gdb="false"
+use_valgrind="false"
 next_argument_is_long_option_value="false"
 for argument in "$@"; do
   case "$argument" in
@@ -108,6 +109,10 @@ for argument in "$@"; do
       # no argument options
       use_gdb="true"
       ;;
+    --valgrind)
+      # no argument options
+      use_valgrind="true"
+      ;;
     --*)
       next_argument_is_long_option_value="true"
       continue
@@ -124,7 +129,9 @@ for argument in "$@"; do
 done
 
 grntest_options=("$@")
-if test "$use_gdb" != "true"; then
+if test "$use_gdb" = "true" -o "$use_valgrind" = "true"; then
+  grntest_options=("--reporter" "stream" "${grntest_options[@]}")
+else
   grntest_options=("--n-workers" "${n_processors}" "${grntest_options[@]}")
 fi
 if test "$CI" = "true"; then
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index