This is a forked version of LucasKuhn Minishell tester Thank you Lucas for the amazing and simple tester!
Clone the repo inside your minishell folder
cd minishell
git clone https://github.com/MrSloth-dev/minishell_tester
cd minishell_testerRun the tester file to run all the tests for the mandatory part of the project
./testerYou can also call ./tester + test_file to run only a specific part of the test:
./tester builtins ./tester pipes ./tester redirects ./tester extras For this fork I also added Valgrind to run in each test to detect leaks. Note that it is slower
./tester valgrindThe tester does not test everything. We added some suggestions of manual test in the manual_tests folder
We also have tests for the wildcards part of the bonus:
./tester wildcards
- Make sure your executable is called
minishell_bonus
We decided to leave out some tests from the mandatory part, things like syntax errors and OS specific code.
You can run them like any other separate test:
./tester syntax./tester os_specific

