[opengtl-commits] [571] add a bunch of scripts usefull to quickly run automated tests |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 571
Author: cyrille
Date: 2009-02-28 10:48:13 +0100 (Sat, 28 Feb 2009)
Log Message:
-----------
add a bunch of scripts usefull to quickly run automated tests
Added Paths:
-----------
trunk/Scripts/bootstrap.sh
trunk/Scripts/runtest-step2.sh
trunk/Scripts/runtest.sh
Added: trunk/Scripts/bootstrap.sh
===================================================================
--- trunk/Scripts/bootstrap.sh (rev 0)
+++ trunk/Scripts/bootstrap.sh 2009-02-28 09:48:13 UTC (rev 571)
@@ -0,0 +1,11 @@
+mkdir src
+cd src
+mkdir opengtl
+cd opengtl
+svn co svn+ssh://cyrille@xxxxxxxxxxxxxxxxx/svnroot/opengtl/opengtl/trunk/OpenGTL src
+svn co svn+ssh://cyrille@xxxxxxxxxxxxxxxxx/svnroot/opengtl/opengtl/trunk/Scripts
+cd ..
+wget http://www.llvm.org/releases/2.4/llvm-2.4.tar.gz
+tar -xzf llvm-2.4.tar.gz
+cd llvm-2.4
+echo "Run ./configure --prefix=/home/cyrille/usr"
\ No newline at end of file
Added: trunk/Scripts/runtest-step2.sh
===================================================================
--- trunk/Scripts/runtest-step2.sh (rev 0)
+++ trunk/Scripts/runtest-step2.sh 2009-02-28 09:48:13 UTC (rev 571)
@@ -0,0 +1,28 @@
+cd ..
+export PATH=/home/cyrille/usr:$PATH
+
+rm -rf tests-data
+wget http://www.opengtl.org/download/tests-data.tar.bz2
+tar -xjf tests-data.tar.bz2
+rm tests-data.tar.bz2
+cd src
+svn up
+cd ..
+
+rm -rf build-debug
+mkdir build-debug
+cd build-debug
+cmake -DCMAKE_BUILD_TYPE=Debug -DOPENGTL_BUILD_TESTS=ON -DOPENGTL_TESTS_DATA=/home/cyrille/src/opengtl/tests-data ../src
+ctest -D Experimental
+ctest -D ExperimentalBuild
+ctest -D ExperimentalTest
+ctest -D ExperimentalSubmit
+cd ..
+
+rm -rf build-release
+mkdir build-release
+cd build-release
+cmake -DCMAKE_BUILD_TYPE=Debug -DOPENGTL_BUILD_TESTS=ON -DOPENGTL_TESTS_DATA=/home/cyrille/src/opengtl/tests-data ../src
+make -j2
+make test
+cd ..
\ No newline at end of file
Added: trunk/Scripts/runtest.sh
===================================================================
--- trunk/Scripts/runtest.sh (rev 0)
+++ trunk/Scripts/runtest.sh 2009-02-28 09:48:13 UTC (rev 571)
@@ -0,0 +1,2 @@
+svn up
+sh runtest-step2.sh
\ No newline at end of file