https://github.com/korenyoni/difftest
A bash utility for testing programs using sets of inputs and expected outputs
https://github.com/korenyoni/difftest
Last synced: about 2 months ago
JSON representation
A bash utility for testing programs using sets of inputs and expected outputs
- Host: GitHub
- URL: https://github.com/korenyoni/difftest
- Owner: korenyoni
- Created: 2015-11-01T02:01:57.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-01T02:21:38.000Z (over 9 years ago)
- Last Synced: 2024-12-14T13:17:11.157Z (5 months ago)
- Language: Shell
- Size: 121 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#difftest
A bash utility for testing programs using sets of inputs and expected outputs.
For a program with respective files:
`.in`
`.out`Checks if the output of the program `` produces the same output as the given .out file.
This program was designed to make this sort of testing convenient in a university course on C programming.
##Setting up
1. `chmod+x difftest.sh`
2. Put testcase inputs and outputs in a "testcases" directory or specify another directory using the -d flag.
##Usage Examples:
* `./difftest.sh` : Tests all the programs in the current directory in respect to the testcases within the testcases directory, their prefix being "q" by default
* `./difftest.sh -d /eecs/course/2031/labs/lab3` : Tests all programs in respect to the testcases in the specified directory
* `./difftest.sh -p v` : Same as first, but filename prefix is "v"
* `./difftest.sh -l 2` : Same as first, but the program number is parsed at two digits