Integration tests designed for the projects of the Shell branch at 42 School: minishell, 21sh and 42sh.
git clone https://github.com/ftwftw0/42shTests ~/42shTests
Replace the first argument by the path to your own binary (e.g.: /Users/admin/Documents/42sh/42sh
):
cd ~/42shTests && sh 42shTests.sh "/ABSOLUTE/PATH/TO/YOUR/SHELL"
You may want to only run tests for a specific project, just add a matcher as second argument:
cd ~/42shTests && sh 42shTests.sh "/ABSOLUTE/PATH/TO/YOUR/SHELL" "minishell/" # minishell only
cd ~/42shTests && sh 42shTests.sh "/ABSOLUTE/PATH/TO/YOUR/SHELL" "exit/" # builtin exit only
...
Made by @gabkk, @jgigault, @ftwftw0