run_tests.sh 584 Bytes
Newer Older
1
2
#!/bin/bash

3
4
ROUGE="\\033[1;31m"

5
6
cd $CI_PROJECT_DIR

Jamie Hall's avatar
Jamie Hall committed
7
8
export PYTHONPATH=${CI_PROJECT_DIR}/build/lib.linux-x86_64-2.7

9
10
# Performs the unit tests
cd Tests/UnitTests
11
nosetests --verbosity=3 -P .
12
13
14
15
# Exit now if unable to run tests
if [ $? -ne 0 ]; then
	status = $?
	echo -e "$ROUGE""One or several unit tests failed"
16
	exit $status
17
fi
18
19
20
21
cd ../..

# Performs the functional tests
cd Tests/FunctionalTests/Jobs
22
rm -rf Test_*
23
python BuildJobTests.py
24
nosetests --verbosity=3 --exe -P .
25
if [ $? -ne 0 ]; then
26
	status=$?
27
	echo -e "$ROUGE""One or several functional tests failed"
28
	exit $status
29
fi
30