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
|
||||
# in the project declaration. Listing other languages
|
||||
# is fine.
|
||||
PROJECT (CMAKED2_TESTS C D )
|
||||
PROJECT (CMAKE-D_TESTS C D )
|
||||
SET( GLOBAL_DMD_DEFS "-w" )
|
||||
SET( GLOBAL_GCC_DEFS "-Wall -pedantic" )
|
||||
|
||||
|
|
|
@ -5,14 +5,15 @@
|
|||
# This script creates a build directory as a peer of cmaked2,
|
||||
# and builds the tests there.
|
||||
#
|
||||
cd ../..
|
||||
rm -rf cmake-d-test-build
|
||||
mkdir -p cmake-d-test-build
|
||||
cd cmake-d-test-build
|
||||
CMAKE_DIR=`pwd`/../cmake-d
|
||||
TEST_DIR=../../cmake-d-test-build
|
||||
rm -rf $TEST_DIR
|
||||
mkdir -p $TEST_DIR
|
||||
cd $TEST_DIR
|
||||
mkdir -p release
|
||||
cd release
|
||||
# Do a release build
|
||||
cmake ../../cmake-d/tests
|
||||
cmake -DCMAKE_MODULE_PATH:PATH=$CMAKE_DIR ../../cmake-d/tests
|
||||
make
|
||||
make test
|
||||
cd ..
|
||||
|
@ -20,8 +21,6 @@ cd ..
|
|||
# Do a debug build
|
||||
mkdir -p 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 test
|
||||
cd ../..
|
||||
|
||||
|
|
Loading…
Reference in a new issue