2010-08-11 04:55:30 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# I don't like this setup. Ideas welcome.
|
2010-08-12 04:44:59 +00:00
|
|
|
#
|
|
|
|
# This script creates a build directory as a peer of cmaked2,
|
|
|
|
# and builds the tests there.
|
|
|
|
#
|
2010-08-11 04:55:30 +00:00
|
|
|
cd ../..
|
|
|
|
rm -rf cmaked_test_build
|
|
|
|
mkdir -p cmaked_test_build
|
|
|
|
cd cmaked_test_build
|
|
|
|
mkdir -p release
|
|
|
|
cd release
|
|
|
|
# Do a release build
|
2010-08-12 04:17:46 +00:00
|
|
|
cmake ../../cmaked2/tests
|
2010-08-11 04:55:30 +00:00
|
|
|
make
|
|
|
|
make test
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
# Do a debug build
|
|
|
|
mkdir -p debug
|
|
|
|
cd debug
|
2010-08-12 04:17:46 +00:00
|
|
|
cmake -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_BUILD_TYPE=debug ../../cmaked2/tests
|
2010-08-11 04:55:30 +00:00
|
|
|
make
|
|
|
|
make test
|
|
|
|
cd ../..
|
|
|
|
|