This tester aims to cover as many edge cases as possible whilst giving convinient testing results.
- All test files located in the
in
folder (assuming there's a matching output file in theout
folder) - Testing
partA
- Testing
partB
- Automagically create SWIG compiled files from .i .h and .o files
- Automagically generates random tests
- Automagically fetches tests with edge cases from the internet
- Python3.6+ (
sudo apt install python3 python3-pip
on Ubuntu) termcolor
library (you can install it by typingpip install termcolor
)- Have a few test files
You must have the following folder structure to be able to run the tester
project:
- ex2_tester.py
- hw2.py
- Olympics.py
- Olympics.so
- tests:
- in:
- test1.txt
- test2.txt
- ...
- out:
- out1.txt
- out2.txt
- ...
- in:
On your computer you will likely be able to run it with
python3 ex2_tester.py
On the CSL3 server, the default Python3 version is 3.4 so you will need to
python3.6 ex2_tester.py