Easy to use tester to compare results of provided testcases between your minishell and bash!
·
Report Bug
·
Request Feature
THIS IS NOT A REPLACEMENT FOR EVALS OR REAL TESTING, THIS IS PURELY A QUICKER WAY TO RUN TESTS.
- DO NOT FAIL SOMEONE BECAUSE THEY FAILED THIS.
- DO NOT PASS SOMEONE BECAUSE THEY PASSED THIS.
- DO YOUR OWN TESTING, DO NOT BE A SHEEP.
To get a local copy up and running follow these simple steps.
Bash has to be installed and accessible through $PATH.
Your minishell has to write its prompt to STDERR.
Your minishell has to read regularly (get_next_line) when STDIN does not refer to a terminal device.
- Clone the repo anywhere
git clone https://github.com/potatokuka/mini_tester.git
- change
$MINISHELL_PATH
inunit_tester.sh
to point to your minishell folder.
bash unit_tester.sh FILE [FILE2 FILE3 ..] [-e]
Options:
-e
: Output of failing tests will be piped into cat -e
Distributed under the MIT License.