-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathRunAllTests.sh
More file actions
44 lines (31 loc) · 1.19 KB
/
RunAllTests.sh
File metadata and controls
44 lines (31 loc) · 1.19 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
41
42
43
44
#!/bin/bash
#g++ main.cpp -o travis_gcc_cpp98
#./travis_gcc_cpp98
#cppcheck --quiet --error-exitcode=1 main.cpp
echo "Should compile now, but.. it's a TODO!"
echo "============================"
echo "Checking with cppcheck"
cd src
# the --check-config argument seems to find standard library headers
#cppcheck --error-exitcode=1 --force --check-config --enable=all *.cpp
echo "----------------------------"
echo "Checking config with cppcheck"
cppcheck --error-exitcode=1 --force --check-config --suppress=missingIncludeSystem .
echo "----------------------------"
echo "Checking code with cppcheck"
cppcheck --error-exitcode=1 --force --enable=all .
cd ../
echo ""
echo "============================"
echo "Running Tests. Please Wait."
#g++ -Wall Shapes-Catch-Testing-Example/Source/Shapes-Catch-Testing-Example.cpp Shapes-Catch-Testing-Example/Source/Implementation/*.cpp -o main
#g++ -Wall Shapes-Catch-Testing-Example/Test/*.cpp Shapes-Catch-Testing-Example/Source/Implementation/*.cpp -o test
cd tests
echo " compiling..."
g++ -std=gnu++11 -Wall -o test *.cpp ../release/mt19937-2.o ../release/randutil.o
cd ..
echo ""
echo " now testing.."
./tests/test
echo " cleaning up.."
rm -f rng.txt