update gcov rule
authorMazet Laurent <laurent.mazet@thalesgroup.com>
Wed, 7 May 2025 17:29:29 +0000 (19:29 +0200)
committerMazet Laurent <laurent.mazet@thalesgroup.com>
Wed, 7 May 2025 17:29:29 +0000 (19:29 +0200)
cryptomod.c
makefile

index 9f47b51510c02d1db480692c9090bea2bc4e45dc..186cb28d02416ca4ae00c81425d791f0b4d80eea 100644 (file)
@@ -1,7 +1,7 @@
 /*
   File name        : cryptomod.c
   Projet           : MERLIN
-  Date of creation : 2025/05/0r2
+  Date of creation : 2025/05/02
   Version          : 1.0
   Copyright        : Thales SIX
   Author           : Laurent Mazet <laurent.mazet@thalesgroup.com>
@@ -636,7 +636,7 @@ int main (int argc, char **argv)
 
 /* test: cryptomod.exe -V 3 -l script-prng_black-cm.log & pid=$!; sleep 1; ./simulator.exe -l script-prng_black-si.log -s PRNG -t lo://00:00:00:00:00:00/083c -r lo://00:00:00:00:00:00/082c test/script-prng-si.eth; rc=$?; sleep 1; kill -TERM $pid; test $rc -eq 0 */
 
-/* test: cryptomod.exe -V 3 -l script-prng_red-cm.log & pid=$!; sleep 1; ./simulator.exe -l script-prng_red-si.log -s PRNG -t lo://00:00:00:00:00:00/081c -r lo://00:00:00:00:00:00/080c test/script-prng-si.eth; rc=$?; sleep 1; kill -TERM $pid; test $rc -eq 0 */
+/* test: cryptomod.exe -v 2 -V 3 -l script-prng_red-cm.log -s PRNG -t lo://00:00:00:00:00:00/080c -r lo://00:00:00:00:00:00/081c & pid=$!; sleep 1; ./simulator.exe -l script-prng_red-si.log -s PRNG -t lo://00:00:00:00:00:00/081c -r lo://00:00:00:00:00:00/080c test/script-prng-si.eth; rc=$?; sleep 1; kill -TERM $pid; test $rc -eq 0 */
 
 /* test: cryptomod.exe -V 3 -l script-bypass_b2r-cm.log & pid=$!; sleep 1; ./simulator.exe -l script-bypass_b2r-si.log -s BYPASS -t lo://00:00:00:00:00:00/083d -r lo://00:00:00:00:00:00/080d test/script-bypass-si.eth; rc=$?; sleep 1; kill -TERM $pid; test $rc -eq 0 */
 
index 65f413f2fc82e426357fa626e147860ae38d9260..94ac452721fa7161eb8d4cdbafe673f0979c8d3c 100644 (file)
--- a/makefile
+++ b/makefile
@@ -89,7 +89,7 @@ documentation: doxygen.conf morep.c morep.h parse.h $(wildcard pdu_*.h) simulato
        sed -i s/__BEGIN_DECLS//g documentation/html/*.html
        sed -i s/\\_\\-\\_BEGIN\\_\\-DECLS//g documentation/latex/*.tex
 
-gcovs:
+gcovs: wipe
        $(MAKE) $(addprefix gcov_,$(ALLEXE))
 
 gprofs:
@@ -127,8 +127,6 @@ gcov_%:
        OPTIONS="-coverage -O0" $(MAKE) ${@:gcov_%=%}.exe
        $(MAKE) test_$(@:gcov_%=%)
        gcov `sed -e 's/\.exe:/.c/;s/\.o/.c/g' $(@:gcov_%=%.ld)`
-       touch gcov
-       rm -f gcov $(wildcard *.gcda *.gcno)
        $(MAKE) purge
        grep '^ *#####' *.c.gcov || true