14 lines
351 B
Bash
14 lines
351 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
# Do this forever
|
||
|
while true; do
|
||
|
# Capture output of the command
|
||
|
output=$(../build/Assignment5 < ../documentation/a5_sample_input_3.txt)
|
||
|
# compare against output3.txt
|
||
|
if [ "$output" != "$(cat output3.txt)" ]; then
|
||
|
echo "Test 3 failed"
|
||
|
# show output
|
||
|
echo "$output"
|
||
|
exit 1
|
||
|
fi
|
||
|
done
|