Test scripts in python
I was trying to make a testing script in python, but I don't understand it completely.
I understand that I need this (not sure if this is exactly it, but it's at least pretty close):
python program.py < test1.in | diff - test1.out
basically, here is my folder structure.
program.py
tests/
test1.in
test2.in
test1.out
test2.out
other.in
other.out
I want a .sh file which will repeatedly run that line for all test cases. Basically, here's my pseudo code
get tests/*.in
for each result:
run "python program.py < tests/testname.in | diff - testname.out"
The box said 'Windows 7 or better' .... so I installed Linux.
I5 2500K @ 4.6 GHZ, 5770 stockOC, 902 case, OCZvertexII, 2 1TB seagate RAID0, 16GB @ 1600 MHz
Bookmarks