dosage/scripts/mktestscript.sh

13 lines
337 B
Bash
Raw Normal View History

#!/bin/sh -e
2012-11-29 05:46:58 +00:00
# Copyright (C) 2012 Bastian Kleineidam
set -u
# generates a convenience test script from failed tests
script=test.sh
rm -f "$script"
echo "#!/bin/sh -e" > "$script"
2012-11-28 17:19:41 +00:00
egrep -v "^\. " testresults.txt | egrep "^F " | cut -b "3-" | awk '{ print "make test TESTOUTPUT=/dev/null TESTS=" $0; }' >> "$script"
chmod 755 "$script"