cmake-d/tests/run_tests_linux.sh

28 lines
481 B
Bash
Raw Normal View History

#!/bin/bash
#
# I don't like this setup. Ideas welcome.
#
# This script creates a build directory as a peer of cmaked2,
# and builds the tests there.
#
cd ../..
2013-10-16 15:22:30 +00:00
rm -rf cmake-d-test-build
mkdir -p cmake-d-test-build
cd cmake-d-test-build
mkdir -p release
cd release
# Do a release build
2013-10-16 15:22:30 +00:00
cmake ../../cmake-d/tests
make
make test
cd ..
# Do a debug build
mkdir -p debug
cd debug
2013-10-16 15:22:30 +00:00
cmake -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_BUILD_TYPE=debug ../../cmake-d/tests
make
make test
cd ../..