diff options
Diffstat (limited to 'tests/scripts/gen-xfail')
| -rwxr-xr-x | tests/scripts/gen-xfail | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/scripts/gen-xfail b/tests/scripts/gen-xfail new file mode 100755 index 0000000..a04f8d9 --- /dev/null +++ b/tests/scripts/gen-xfail @@ -0,0 +1,23 @@ +#!/bin/sh + +mkdir -p $(for d in "${@}"; do echo "$d"; done \ + | sed "s|,.*||" | uniq | sed "s|^|reports/|") + +for s in "${@}" +do + NAME=${s%%,*} + EMSG=${s#${NAME},} + echo ".PHONY: $NAME" >> tests.mk + echo "$NAME:" >> tests.mk + echo " ./scripts/run-xfail $NAME '$EMSG'" >> tests.mk +done + +echo -n "TESTS +=" >> tests.mk +for s in "${@}" +do + NAME=${s%%,*} + echo -n " $NAME" >> tests.mk +done + +# append newline +echo "" >> tests.mk |
