SigmaHQ/tests/test-merge.sh
2021-07-30 08:51:38 +02:00

14 lines
262 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
echo "[ERROR] Error in file " $f
exit 1
fi
done