Toufa7 / Minishell_Tester

Simple version of the minishell tester

Home Page:https://github.com/Toufa7/Minishell_Tester

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple version of the minishell tester

https://github.com/Toufa7/Minishell_Tester


Languages

Language:Shell 100.0%