diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-18 00:07:56 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-18 00:07:56 +0300 |
| commit | 33fcf676128426f2ac9a4730d63fa481bb351518 (patch) | |
| tree | fb8553e58fb3553e1b1da334b5a4d54e254f2340 /tests/scripts/gen-simple | |
| parent | 0d4e9292d85a169f881926556992d4ae12dcb6f4 (diff) | |
| download | ek-33fcf676128426f2ac9a4730d63fa481bb351518.tar.gz ek-33fcf676128426f2ac9a4730d63fa481bb351518.zip | |
make check works again
Diffstat (limited to 'tests/scripts/gen-simple')
| -rwxr-xr-x | tests/scripts/gen-simple | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/scripts/gen-simple b/tests/scripts/gen-simple new file mode 100755 index 0000000..cf4c35c --- /dev/null +++ b/tests/scripts/gen-simple @@ -0,0 +1,14 @@ +#!/bin/sh + +mkdir -p $(for d in "${@}"; do echo "$d"; done | uniq | sed "s|^|reports/|") + +for s in "${@}" +do + echo ".PHONY: $s" >> tests.mk + echo "$s:" >> tests.mk + echo " @../ek $s/$s.ek > reports/$s/log 2>&1\\" >> tests.mk + echo " && echo OK > reports/$s/OK \\" >> tests.mk + echo " || echo ERR > reports/$s/OK" >> tests.mk +done + +echo "TESTS += " "${@}" >> tests.mk |
