Tester for shool21 (ecole42) project "minishell"
You can redirect the read line prompt with the following commands in your code:
rl_outstream = stderr;
- before main loop.
write(2, ...);
- for any error or info messages
- ! You must have your prompt and any other message/banner printed on
STDERR
(like bash). See above ^_^ - Go into your minishell folder and clone this repo
- Run
cd msh_tester && bash test.sh all
- Run specific test by
bash test.sh [echo exit pipe etc..]
- Experimental! leaks mode
bash test.sh all leaks
echo
cd + pwd
exit
pipe |
redirect > >> < <<
export
env
unset
exit status ($?)
syntax errors
quote (bonus)
oper (bonus) $$ || ()
wildcard (bonus)
Almost everything :) This tester is not perfect and is not checking leaks
and error messages
.
Some tests'l be show another error codes.
Also it not good for checking projects with termcaps.
Feel free to improve this tester !
based on Minishell-tester by solaldunckel