Alpine3D

Alpine3D Svn Source Tree

Root/trunk/tests/startScript.sh

  • Property svn:executable set to *
1#!/bin/bash
2#warning: the order IS important (they depend on each other)
3
4log_echo() {
5 msg=$1
6 me=${USER}
7 datum=$(date "+%Y-%m-%dT%H:%M:%S")
8 printf "[${datum}] [${me}] ${msg}\n"
9}
10
11#get expanded path to ALPINE3D's root, ie one level above this script
12tmp=`dirname $0`
13tmp="${tmp}/../"
14cd ${tmp}
15A3D_ROOT=`pwd`
16
17#run the tests
18log_echo "Starting ALPINE3D testing with A3D_ROOT=${A3D_ROOT}"
19
20make distclean
21/usr/bin/ctest -DCMAKE_A3D_ROOT=${A3D_ROOT} -S ${A3D_ROOT}/tests/startScriptCoverage.cmake -V > ${A3D_ROOT}/tests/startScriptCoverage.log 2>&1
22
23make distclean
24/usr/bin/ctest -DCMAKE_A3D_ROOT=${A3D_ROOT} -S ${A3D_ROOT}/tests/startScriptValgrind.cmake -V > ${A3D_ROOT}/tests/startScriptValgrind.log 2>&1
25
26make distclean
27/usr/bin/ctest -DCMAKE_A3D_ROOT=${A3D_ROOT} -S ${A3D_ROOT}/tests/startScriptNightly.cmake -V > ${A3D_ROOT}/tests/startScriptNightly.log 2>&1
28
29#so the up-to-date documentation can be available on the server
30make doc
31
32log_echo "ALPINE3D testing done!"

Archive Download this file

Revision: HEAD