Adapted tests
This commit is contained in:
parent
61468c2e79
commit
c8c3c302e4
2 changed files with 8 additions and 9 deletions
|
@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 2.8.1)
|
||||||
# We must explicitly indicate we're using the D language
|
# We must explicitly indicate we're using the D language
|
||||||
# in the project declaration. Listing other languages
|
# in the project declaration. Listing other languages
|
||||||
# is fine.
|
# is fine.
|
||||||
PROJECT (CMAKED2_TESTS C D )
|
PROJECT (CMAKE-D_TESTS C D )
|
||||||
SET( GLOBAL_DMD_DEFS "-w" )
|
SET( GLOBAL_DMD_DEFS "-w" )
|
||||||
SET( GLOBAL_GCC_DEFS "-Wall -pedantic" )
|
SET( GLOBAL_GCC_DEFS "-Wall -pedantic" )
|
||||||
|
|
||||||
|
|
|
@ -5,14 +5,15 @@
|
||||||
# This script creates a build directory as a peer of cmaked2,
|
# This script creates a build directory as a peer of cmaked2,
|
||||||
# and builds the tests there.
|
# and builds the tests there.
|
||||||
#
|
#
|
||||||
cd ../..
|
CMAKE_DIR=`pwd`/../cmake-d
|
||||||
rm -rf cmake-d-test-build
|
TEST_DIR=../../cmake-d-test-build
|
||||||
mkdir -p cmake-d-test-build
|
rm -rf $TEST_DIR
|
||||||
cd cmake-d-test-build
|
mkdir -p $TEST_DIR
|
||||||
|
cd $TEST_DIR
|
||||||
mkdir -p release
|
mkdir -p release
|
||||||
cd release
|
cd release
|
||||||
# Do a release build
|
# Do a release build
|
||||||
cmake ../../cmake-d/tests
|
cmake -DCMAKE_MODULE_PATH:PATH=$CMAKE_DIR ../../cmake-d/tests
|
||||||
make
|
make
|
||||||
make test
|
make test
|
||||||
cd ..
|
cd ..
|
||||||
|
@ -20,8 +21,6 @@ cd ..
|
||||||
# Do a debug build
|
# Do a debug build
|
||||||
mkdir -p debug
|
mkdir -p debug
|
||||||
cd debug
|
cd debug
|
||||||
cmake -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_BUILD_TYPE=debug ../../cmake-d/tests
|
cmake -DCMAKE_MODULE_PATH:PATH=$CMAKE_DIR -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_BUILD_TYPE=debug ../../cmake-d/tests
|
||||||
make
|
make
|
||||||
make test
|
make test
|
||||||
cd ../..
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue