- Install asciinema
- Run
asciinema play autograder.cast
- Ubuntu
- Python3.12 (Might work on 3.10, 3.11 as well, haven't tested though)
- gcc-11 to compile your project
- Project zip that you submitted on the moodle
git clone https://github.com/satyamjay-iitd/cop290_autograder
cd lab1_autograder
- Create python virtualenv:-
python3.12 -m venv venv
- Activate environment:-
source venv/bin/activate
- Install dependencies:-
pip install -r requirements.txt
main.py
: uses pexpect and is ideal for small testcases. Test cases tested using this
tester is located here:- hidden_tc/
python main.py single {path_to_zip_file} hidden_tc/ marks_mapping.csv
python main.py single {path_to_zip_file} hidden_tc/*/*.cmds marks_mapping.csv
main2.py
: parses just the final output and checks total runtime and memory. It is used for test
cases with lot of commands (> 1000).
Test cases tested using this tester is located here:- hidden_tc2/
python main2.py single {path_to_zip_file} hidden_tc2/ marks_mapping.csv
python main2.py single {path_to_zip_file} hidden_tc2/*/*.cmds marks_mapping.csv