summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBen Fuhrmannek2021-02-16 11:16:59 +0100
committerBen Fuhrmannek2021-02-16 11:16:59 +0100
commit5484bcb5eb2714e7438927e2566c86a74d7c51af (patch)
treeb78326d2999397be4c08e06b23209981f82a4ea9 /Makefile
parent7ac1e3866ef4f146c6c93a5ca13b9aebb14e936a (diff)
parentcecfdd808da67be908dbe7144cc8c74dfb3f855e (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index db5878e..b8236fb 100644
--- a/Makefile
+++ b/Makefile
@@ -18,8 +18,7 @@ compile_debug: ## compile a debug build
18 export CFLAGS="-g3 -ggdb -O1 -g"; cd src; ./configure --enable-snuffleupagus --enable-debug 18 export CFLAGS="-g3 -ggdb -O1 -g"; cd src; ./configure --enable-snuffleupagus --enable-debug
19 make -C src 19 make -C src
20 20
21debug: compile_debug ## compile and run a debug build 21tests: release ## compile a release build and run the testsuite
22 sed -i "s/\$$ext_params -d display_errors=0 -r/-d display_errors=0 -r/" src/run-tests.php
23 TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test 22 TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test
24 23
25coverage: ## compile snuffleugpaus, and run the testsuite with coverage 24coverage: ## compile snuffleugpaus, and run the testsuite with coverage
@@ -27,6 +26,7 @@ coverage: ## compile snuffleugpaus, and run the testsuite with coverage
27ifeq ($(CC),clang) 26ifeq ($(CC),clang)
28 cd src; CFLAGS="-fprofile-instr-generate -fcoverage-mapping" ./configure --enable-snuffleupagus 27 cd src; CFLAGS="-fprofile-instr-generate -fcoverage-mapping" ./configure --enable-snuffleupagus
29 make -C src 28 make -C src
29 sed -i "s/\$$ext_params -d display_errors=0 -r/-d display_errors=0 -r/" src/run-tests.php
30 LLVM_PROFILE_FILE="sp_%p_%m.profraw" TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test 30 LLVM_PROFILE_FILE="sp_%p_%m.profraw" TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test
31 llvm-profdata-4.0 merge ./src/*.profraw -o ./src/sp.profdata 31 llvm-profdata-4.0 merge ./src/*.profraw -o ./src/sp.profdata
32 llvm-cov report -instr-profile=./src/sp.profdata ./src/modules/snuffleupagus.so 32 llvm-cov report -instr-profile=./src/sp.profdata ./src/modules/snuffleupagus.so
@@ -34,6 +34,7 @@ else
34 cd src; ./configure --enable-snuffleupagus --enable-coverage 34 cd src; ./configure --enable-snuffleupagus --enable-coverage
35 make -C src 35 make -C src
36 rm -Rf src/COV.html 36 rm -Rf src/COV.html
37 sed -i "s/\$$ext_params -d display_errors=0 -r/-d display_errors=0 -r/" src/run-tests.php
37 TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test 38 TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test
38 lcov --base-directory ./src --directory ./src -c -o ./src/COV.info --rc lcov_branch_coverage=1 39 lcov --base-directory ./src --directory ./src -c -o ./src/COV.info --rc lcov_branch_coverage=1
39 lcov --remove src/COV.info '/usr/*' --remove src/COV.info '*tweetnacl.c' -o src/COV.info --rc lcov_branch_coverage=1 40 lcov --remove src/COV.info '/usr/*' --remove src/COV.info '*tweetnacl.c' -o src/COV.info --rc lcov_branch_coverage=1