Files
blue-team-tools/tests/test-merge.sh
T

14 lines
262 B
Bash
Raw Normal View History

2017-11-14 22:17:18 +01:00
#!/bin/bash
2019-10-23 15:34:40 +02:00
COVERAGE=${COVERAGE:-coverage}
2017-11-14 22:17:18 +01:00
for f in $(find rules/ -type f -name '*.yml')
do
echo -n .
2019-10-23 15:34:40 +02:00
if ! $COVERAGE run -a --include=tools/* tools/merge_sigma $f > /dev/null
2017-11-14 22:17:18 +01:00
then
2021-07-30 08:51:38 +02:00
echo "[ERROR] Error in file " $f
2017-11-14 22:17:18 +01:00
exit 1
fi
done