-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·42 lines (31 loc) · 1.14 KB
/
test.sh
File metadata and controls
executable file
·42 lines (31 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/tcsh
########## compiling code #########
mkdir build && cd build
cmake .. -DTESTING_ENABLED=yes && make
test/RunafluidTests
#script that runs gcov coverage measurments
#These commands move the required coverage source to the place where gcov searhes for them
if ( ( $?ITM_ENVIRONMENT_LOADED) ) then
if ( $ITM_ENVIRONMENT_LOADED == yes) then
cd ..
set RUNAFLUID_DIR=./build/src/CMakeFiles/runafluid.dir
set RUNAFLUID_TEST_DIR=./build/test/CMakeFiles/RunafluidTests.dir
mv $RUNAFLUID_DIR/codeparams.cpp.gcno ./src
mv $RUNAFLUID_DIR/cpo_utils.cpp.gcno ./src
mv $RUNAFLUID_DIR/distinit.cpp.gcno ./src
mv $RUNAFLUID_DIR/runafluid.cpp.gcno ./src
mv $RUNAFLUID_DIR/codeparams.cpp.gcda ./src
mv $RUNAFLUID_DIR/cpo_utils.cpp.gcda ./src
mv $RUNAFLUID_DIR/distinit.cpp.gcda ./src
mv $RUNAFLUID_DIR/runafluid.cpp.gcda ./src
mv $RUNAFLUID_TEST_DIR/test_cpo.gcno ./test
mv $RUNAFLUID_TEST_DIR/test_cpo.gcda ./test
gcov src/codeparams.cpp.cpp
gcov src/cpo_utils.cpp.cpp
gcov src/distinit.cpp.cpp
gcov src/runafluid.cpp.cpp
gcov test/test_cpo.cpp.cpp
mkdir gcov_reports
mv *.gcov gcov_reports
endif
endif