File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -22,31 +22,28 @@ cleanup() {
22
22
cd ..
23
23
rm -rf build
24
24
}
25
-
25
+ rm -rf reports
26
+ mkdir -p reports
26
27
build_configuration " -DCMAKE_BUILD_TYPE=Debug -DHTTP_SERVER=YES -DHTTP_CLIENT=YES -DCOMPILE_STUBGEN=YES -DCOMPILE_EXAMPLES=YES -DCOMPILE_TESTS=YES"
27
-
28
28
echo " Compiling examples"
29
29
cd build
30
30
g++ ../src/examples/simpleclient.cpp -Iroot/usr/local/include -Lroot/usr/local/lib -ljsonrpccpp-client -ljsoncpp -ljsonrpccpp-common -lcurl -o sampleclient
31
31
g++ ../src/examples/simpleserver.cpp -Iroot/usr/local/include -Lroot/usr/local/lib -ljsonrpccpp-server -ljsoncpp -ljsonrpccpp-common -lmicrohttpd -o sampleserver
32
32
test -f sampleclient
33
33
test -f sampleserver
34
34
35
- mkdir -p reports
36
-
37
35
echo " Generating valgrind report"
38
- valgrind --leak-check=full --xml=yes --xml-file=reports/valgrind.xml ./bin/unit_testsuite --log_format=XML --log_sink=reports/tests.xml --log_level=all --report_level=no
36
+ valgrind --leak-check=full --xml=yes --xml-file=../ reports/valgrind.xml ./bin/unit_testsuite --log_format=XML --log_sink=../ reports/tests.xml --log_level=all --report_level=no
39
37
40
38
41
39
echo " Generating coverage report"
42
40
gcovr -x -r .. > reports/coverage.xml
43
- gcovr -r .. --html --html-details -o reports/coverage.html
41
+ gcovr -r .. --html --html-details -o ../ reports/coverage.html
44
42
45
43
echo " Generating cppcheck report"
46
- cppcheck --enable=all --xml ../src 2> reports/cppcheck.xml
44
+ cppcheck --enable=all --xml ../src 2> ../ reports/cppcheck.xml
47
45
48
46
cd ..
49
- mv build/reports reports
50
47
echo " Cleanup that mess"
51
48
cleanup
52
49
You can’t perform that action at this time.
0 commit comments