nice new tool to show version of feisty meow
[feisty_meow.git] / scripts / testing / run_test_and_verify.sh
1 #!/bin/bash
2
3 # a simple unit test component that takes three parameters: the test to run, the
4 # input file to give that test, and the expected correct output file from the test.
5 # the script will complain if there is an error in the test output.  otherwise it
6 # says nothing, but the script's return value can also be checked.
7
8 to_run="$1"; shift
9 input_file="$1"; shift
10 answer_file="$1"; shift
11
12 eval "$to_run" < "$input_file" | bash "$FEISTY_MEOW_SCRIPTS/testing/verify_correct_input.sh" "$answer_file"
13