Skip to content

Latest commit

 

History

History
72 lines (55 loc) · 2.2 KB

README.md

File metadata and controls

72 lines (55 loc) · 2.2 KB

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