Navigation Menu

Skip to content

Commit

Permalink
[test] run make at the first.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Nov 26, 2011
1 parent e85fceb commit b78ca7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/Makefile.am
Expand Up @@ -2,6 +2,7 @@ SUBDIRS = unit sql

TESTS = run-sql-test.sh
TESTS_ENVIRONMENT = \
NO_MAKE="yes" \
MYSQL_SOURCE="$(MYSQL_SOURCE)" \
MYSQL_BUILD="$(MYSQL_BUILD)" \
MYSQL_VERSION="$(MYSQL_VERSION)"
Expand Down
5 changes: 4 additions & 1 deletion test/run-sql-test.sh
Expand Up @@ -3,6 +3,10 @@
export BASE_DIR="$(cd $(dirname $0); pwd)"
top_dir="$BASE_DIR/.."

if test "$NO_MAKE" != "yes"; then
make -C ${top_dir} > /dev/null || exit 1
fi

if test -z "$MYSQL_SOURCE"; then
MYSQL_SOURCE="$(make -s -C $top_dir echo-mysql-source)"
fi
Expand Down Expand Up @@ -81,7 +85,6 @@ for test_suite_name in $(echo $test_suite_names | sed -e 's/,/ /g'); do
fi
done

make -C ${top_dir} > /dev/null || exit 1
if test -n "${plugins_dir}"; then
make -C ${top_dir} \
install-pluginLTLIBRARIES \
Expand Down

0 comments on commit b78ca7e

Please sign in to comment.