Initial commit
This commit is contained in:
14
scripts/coverage.sh
Executable file
14
scripts/coverage.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
ulimit -Sv 320000
|
||||
rm -r build coverage
|
||||
mkdir build coverage
|
||||
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS_DEBUG="-g -fprofile-arcs -ftest-coverage"
|
||||
cmake --build build
|
||||
cd build
|
||||
#ctest -T Test -T Coverage
|
||||
ctest
|
||||
cd ..
|
||||
#echo Report > coverage.txt
|
||||
#find . -iname "*.gcda" -exec gcov {} \;
|
||||
#find . -iname "*.gcno" -exec echo {} >> coverage.txt \; -exec gcov -t {} >> coverage.txt \;
|
||||
gcovr --html-details coverage/index.html
|
||||
2
scripts/trim-whitespace.sh
Executable file
2
scripts/trim-whitespace.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
find . \( -iname "*.h" -o -iname "*.c" \) -exec sed -i "s/[ \t]*$//" {} \;
|
||||
Reference in New Issue
Block a user