Skip to content

A shell tester for 42sh, minishell2, minishell1 projects. Tests results based on TCSH

License

Notifications You must be signed in to change notification settings

LouisLanganay/42sh-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42sh tester

With this tester you can test your own shell. Based on TCSH.

Requirements ⚠️

  • You must make your project.
  • Your binary must have the name "42sh".

Warning

Use epitests-docker for a better fialibity of the tester

Usage

  1. Clone this repo in your 42sh repository git clone git@github.com:LouisLanganay/42sh-tester.git
  2. Run it with ./42sh-tester/my_tester.sh

OR

  1. Go to the last release and download the run_tests.sh file.
  2. Put it in the root of your project.
  3. Run it with ./run_tests.sh.

Note

You can get informations about a specific test using ./run_tests.sh TEST_NBR

Features tested

Commands builtin

  • cd
  • exit
  • env
  • setenv
  • unsetenv
  • echo
  • history
  • which
  • where
  • alias

Separators

  • ;
  • |
  • >
  • >>
  • <

Operators

  • &&
  • ||

Backticks

  • ```

Note

All return values are tested for each tests

Example

image image image

Readme Card

Credits

Readme Card

Logo

About

A shell tester for 42sh, minishell2, minishell1 projects. Tests results based on TCSH

Resources

License

Stars

Watchers

Forks

Languages