start test generator

This commit is contained in:
Thomas Levine 2016-02-28 18:43:27 +00:00
parent 4c84456574
commit 32b32d0aa2
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,2 @@
,ok
false,not ok
1 ok
2 false not ok

View File

@ -0,0 +1,14 @@
n=0
while read line; do
n=$(($n + 1))
contents=$(echo "$line" | cut -d, -f1)
expectation=$(echo "$line" | cut -d, -f2)
# Skip if invalid.
echo "$contents" > "$n"
if test "$expectation" = ok || test "$expectation" = not\ ok ||
test "$expectation" = skip; then
chmod +x $n
fi
done < .fixtures.csv

View File

@ -0,0 +1,3 @@
if ls | grep '^[0-9]' > /dev/null; then
rm [0-9]*
fi