Skip to content

Toufa7/Minishell_Tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Minishell_Tester

NB: Works on macOS only, not Ubuntu. I'll work on it later, or you are welcome to contribute as well :)

A simple Minishell tester, it checks your output and your exit status are similar to the bash or not also it checks it compare your return errors else it returns where's your wrong see :

./tester.sh --help

$$\textcolor{Green}{\text{[OK] }}{\text{Means that your output and the exit status are similar to the bash}}\textcolor{yellow}{\text{}}$$

$$\textcolor{Red}{\text{[KO] }}{\text{Means one of your output or the exit status or both are wrong to the bash}}\textcolor{yellow}{\text{}}$$

How To Use a Minishell_Tester :

1️⃣ Put your path in here:

2️⃣ Go to your Makefile and make sure to not insert any flags for readline only -lreadline :

3️⃣ Check if there's any rl_replace_line and make sure to comment it :

4️⃣ If you print any of thoses please comment them and that's it:

Install :

git clone https://github.com/Toufa7/Minishell_Tester.git
cd Minishell_Tester
chmod +x tester.sh
./tester.sh -options

Synopsis :

./tester.sh [-h|--help|a|E|e|p|u|x]

  • The following options are available:

    • h or --help Help
    • a All
    • c Cd
    • E Echo
    • e Export
    • p Pipes
    • u Unset
    • x Exit

A quick demonstration of how it works

🤝 Feel free to use it, contribute and add your crazy tests

Releases

No releases published

Packages

No packages published

Languages