mirror of
https://github.com/valitydev/SigmaHQ.git
synced 2024-11-07 09:48:58 +00:00
d759896e07
This makes it possible to pass a different coverage program to make test, e.g.: make test COVERAGE=python3-coverage
13 lines
221 B
Bash
Executable File
13 lines
221 B
Bash
Executable File
#!/bin/bash
|
|
|
|
COVERAGE=${COVERAGE:-coverage}
|
|
|
|
for f in $(find rules/ -type f -name '*.yml')
|
|
do
|
|
echo -n .
|
|
if ! $COVERAGE run -a --include=tools/* tools/merge_sigma $f > /dev/null
|
|
then
|
|
exit 1
|
|
fi
|
|
done
|