SigmaHQ/tests/test-merge.sh
Hilko Bengen d759896e07 Make coverage binary overridable
This makes it possible to pass a different coverage program to make
test, e.g.:

    make test COVERAGE=python3-coverage
2019-10-23 15:42:25 +02:00

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