null+****@clear*****
null+****@clear*****
2012年 3月 8日 (木) 13:18:12 JST
Kouhei Sutou 2012-03-08 13:18:12 +0900 (Thu, 08 Mar 2012)
New Revision: 44e03ea43b44014d67eb9614a79d36245d79cdbe
Log:
test function: don't specify suite directory if any parameter is passed
Modified files:
test/function/run-test.sh
Modified: test/function/run-test.sh (+7 -1)
===================================================================
--- test/function/run-test.sh 2012-03-07 00:56:30 +0900 (0c256a3)
+++ test/function/run-test.sh 2012-03-08 13:18:12 +0900 (94b93cf)
@@ -50,9 +50,15 @@ if ! test -d "$groonga_test_dir"; then
git clone git://github.com/groonga/groonga-test.git "$groonga_test_dir"
fi
+if test x"$@" = x""; then
+ targets="$BASE_DIR/suite"
+else
+ targets=
+fi
+
$RUBY -I "$groonga_test_dir/lib" \
"$groonga_test_dir/bin/groonga-test" \
--groonga "$GROONGA" \
--groonga-suggest-create-dataset "$GROONGA_SUGGEST_CREATE_DATASET" \
--base-directory "$BASE_DIR" \
- "$BASE_DIR/suite" "$@"
+ "$targets" "$@"