coverage and test: Add tests
[src/app-framework-binder.git] / coverage / Makefile
index 3f5f3ce..30477a7 100644 (file)
@@ -14,7 +14,8 @@ clean:
        make -C bin -w clean
 
 cleanall: clean
-       rm -rf lcov-out.info report valgrind.out
+       @echo remove all outputs and reports
+       @rm -rf lcov-out.info report valgrind.out 2>/dev/null || true
 
 .PHONY: test
 
@@ -22,14 +23,12 @@ test: binaries
        @echo -----------------------------------------
        @echo -- BEGIN TEST
        @echo -----------------------------------------
-       @scripts/run-test.sh
+       @scripts/run-test.sh 2>&1 | tee run-test.output
        @echo -----------------------------------------
        @echo -- END TEST
        @echo -----------------------------------------
 
 report: test
-       @echo generating LCOV report
-       @lcov -c -d bin -o lcov-out.info
        @echo generating report
        @genhtml -s -o report lcov-out.info
        @echo ready: xdg-open report/index.html