I have a set of *.in files and a set of *.soln files with matching files names. I would like to run my program with the *.in file as input and compare the output to the ones found in the *.soln files. What would be the best way to go about this? I can think of 3 options.
- Write some driver in Java to list files in the folder, run the program, and compare. This would be hard and difficult.
- Write a bash script to do this. How?
- Write a python script to do this?