gsr (gradescript runner) is a gradescript CLI tool UTK CS courses. It compiles your code, runs gradescripts, and displays failures side-by-side all in one step.
One-line install:
curl -fsSL https://raw.githubusercontent.com/jamesgarrick/gsr/main/install.sh | bashClone git repository:
git clone https://github.com/jamesgarrick/gsr.gitInstall gsr with:
cd gsr
./install.shgsr [options] [class/lab] gradescript#If you're in a recognized lab directory, the class/lab argument is optional:
cd ~/cs202/lab3
gsr 5 # runs gradescript 5 for cs202 lab3To run all gradescripts:
gsr 0 # runs gradeall| Flag | Description |
|---|---|
-a, -y, --all |
Show all lines, not just diffs |
-s, --single |
Show only the first diff |
-h, --help |
Show help |
-v, --version |
Show version |
gsr auto-detects your course and lab from your current path using these patterns:
- Course:
cs202,CS202, or just202 - Lab:
lab3,Lab3,3,labA,LabA,a
Examples of recognized paths:
~/cs202/lab3/~/CS302/Lab1/~/202/labA/
- CS 202: Labs 0-9, A, B
- CS 302: Labs 1-2
James Garrick