Navigation Menu

Skip to content

Commit

Permalink
added test SQL script for "make check".
Browse files Browse the repository at this point in the history
  • Loading branch information
ikdttr committed Mar 17, 2010
1 parent c28f340 commit 83f6112
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/Makefile.am
@@ -1,6 +1,6 @@
SUBDIRS = unit

TESTS = run-unit-test.sh
TESTS = run-unit-test.sh run-sql-test.sh
TESTS_ENVIRONMENT = CUTTER="$(CUTTER)"

echo-cutter:
Expand Down
13 changes: 13 additions & 0 deletions test/run-sql-test.sh
@@ -0,0 +1,13 @@
#!/bin/sh

if test -n "$MYSQL_HOME"; then
SQL_TESTS="$MYSQL_HOME/mysql-test/suite/mroonga"
if test -d "$SQL_TESTS"; then
cd $MYSQL_HOME/mysql-test
./mysql-test-run.pl --suite=mroonga --force
else
echo "$SQL_TESTS does not exists. Aborting SQL test."
fi
else
echo '$MYSQL_HOME is not defined. Aborting SQL test.'
fi

0 comments on commit 83f6112

Please sign in to comment.