i, I have to run about a 100 tests on my program and doing it one-by-one is killing my time bad so I am looking to write a script. I write an individual test like so
./program test_1 > out_1
and then compare it to the output that I am looking for like so
diff -urpb expected_out_1 out_1 > diff_1
Can somebodyhelp me to write a short Perl script that runs all the tests. Note however that the names above are placeholders and the we cannot do a loop over test_*
. All the tests howver have an extension X.test and the corresponding expected output files have extension X.out. (notice the names are the same)