Skip to content

alchrist42/msh_tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 

Repository files navigation

MSH-TESTER

Tester for shool21 (ecole42) project "minishell"

Requirements

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

Usage.

  1. ! You must have your prompt and any other message/banner printed on STDERR (like bash). See above ^_^
  2. Go into your minishell folder and clone this repo
  3. Run cd msh_tester && bash test.sh all
  4. Run specific test by bash test.sh [echo exit pipe etc..]
  5. Experimental! leaks mode bash test.sh all leaks

What does it test ?

  • echo
  • cd + pwd
  • exit
  • pipe |
  • redirect > >> < <<
  • export
  • env
  • unset
  • exit status ($?)
  • syntax errors
  • quote (bonus)
  • oper (bonus) $$ || ()
  • wildcard (bonus)

What should you test by yourself ?

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

About

tester for minishell project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages