Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1020 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 1020 Bytes

Minishell-Testing {EPITECH} || 42-Testing

Description

Python script that executes commands in your minishell/42sh and in the tcsh shell to compare them.

Requirements

-> python3

How to use

  1. add you mysh/42sh exe to the folder
  2. run the "make" command

Careful

  1. The script will generate files such as "yes", "no", "a b c"... Do not worry about them, you can erase them.
  2. If messages such as "oiuoiu: No such file or directory." appear it is normal, here the goal is to try and produce erros. As those are errors, the output is not redirected to the file and instead is printed directly into the stdou. Just make sure that they appear twice -> once for your shell and the second time for the tcsh.

Preview

Example of the program once executed

How to add tests

In order to add tests you'll have to modify the "cmd" file.

The structure of each test is the following -> "test_name"={cmd to be executed}

-> Do not write more than one empty line at the end of the file <-