From b3aeba684b4e27e9fdf2c07949750bb567e40d6b Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Thu, 19 Feb 2015 09:38:01 +0100 Subject: Unit tests must be done at integration process. * Remove --enable-unittests and --disable-unittests and add --do-unittests function * --do-unittests function will exit 0 on success. * minetest and minetestserver binaries are launched with --do-unittests in travis build. --- util/travis/script.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'util/travis/script.sh') diff --git a/util/travis/script.sh b/util/travis/script.sh index c37816cee..437cf1ac5 100755 --- a/util/travis/script.sh +++ b/util/travis/script.sh @@ -3,8 +3,12 @@ if [ $WINDOWS = "no" ]; then mkdir -p travisbuild cd travisbuild - cmake -DENABLE_GETTEXT=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1 .. + cmake -DENABLE_GETTEXT=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1 -DCMAKE_BUILD_TYPE=Debug .. make -j2 + echo "Running unit tests for minetest" + ../bin/minetest --do-unittests + echo "Running unit tests for minetestserver" + ../bin/minetestserver --do-unittests else [ $CC = "clang" ] && exit 1 # Not supposed to happen # We need to have our build directory outside of the minetest directory because -- cgit v1.2.3