start test generator
This commit is contained in:
parent
4c84456574
commit
32b32d0aa2
2
tests/Single-file test suites/.fixtures.csv
Normal file
2
tests/Single-file test suites/.fixtures.csv
Normal file
@ -0,0 +1,2 @@
|
||||
,ok
|
||||
false,not ok
|
|
14
tests/Single-file test suites/setup_dir
Normal file
14
tests/Single-file test suites/setup_dir
Normal 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
|
3
tests/Single-file test suites/teardown_dir
Normal file
3
tests/Single-file test suites/teardown_dir
Normal file
@ -0,0 +1,3 @@
|
||||
if ls | grep '^[0-9]' > /dev/null; then
|
||||
rm [0-9]*
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user