urchin/tests/Single-file test suites/setup_dir
2016-02-28 18:43:27 +00:00

15 lines
319 B
Plaintext

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