Skip to content

Commit d79b5c5

Browse files
author
Jean-Michel Gigault
committed
update remote location
1 parent e5e7fe8 commit d79b5c5

File tree

114 files changed

+1135
-1135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+1135
-1135
lines changed

README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 42ShellTester
22

3-
<img align="right" src="./lib/assets/42shTestsTeamLogo_sm.png" width="213" />42ShellTester is an **integration testing framework** wrote in Bash and designed for the pedagogical projects of the Shell branch at School 42 (Paris) listed bellow:
3+
<img align="right" src="./lib/assets/we-shTeamLogo_sm.png" width="213" />42ShellTester is an **integration testing framework** wrote in Bash and designed for the pedagogical projects of the Shell branch at School 42 (Paris) listed bellow:
44
* **minishell**
55
* **21sh**
66
* **42sh**
@@ -14,15 +14,15 @@ It brings you an easy way to **add**, **maintain** and **run** integration tests
1414
## Install
1515

1616
```bash
17-
git clone https://github.com/42shTests/42ShellTester ~/42ShellTester
17+
git clone https://github.com/we-sh/42ShellTester ~/42ShellTester
1818
```
1919

2020
## Run tests
2121

2222
Add the path to your Shell as argument:
2323

2424
```bash
25-
bash ~/42ShellTester/42ShellTester.sh "PATH/TO/YOUR/SHELL"
25+
bash ~/42ShellTester/42ShellTester.sh "/ABSOLUTE/PATH/TO/YOUR/SHELL"
2626
```
2727

2828
## Options
@@ -297,16 +297,16 @@ Find the available list of support binaries bellow:
297297

298298
<!--START_SUPPORT_BINARIES_LIST-->
299299

300-
* **[./display_env](https://github.com/42shTests/42ShellTester/tree/master/support/display-env)**: A binary that iterates on `**envp` and write each element on standard output.
301-
* **[./display_program_name](https://github.com/42shTests/42ShellTester/tree/master/support/display-program-name)**: A binary that writes its name on standard ouput.
302-
* **[./display_pwd](https://github.com/42shTests/42ShellTester/tree/master/support/display-pwd)**: A binary that writes on standard output the absolute path of the current directory returned by `getcwd(3)`, encountered with the strings `PWD:` and `:PWD`.
303-
* **[./exit_with_status](https://github.com/42shTests/42ShellTester/tree/master/support/exit-with-status)**: A binary that immediately exits with the status given as first argument.
304-
* **[./read_on_stdin](https://github.com/42shTests/42ShellTester/tree/master/support/read-on-stdin)**: A binary that reads on standard entry and write each line on standard output suffixed with the character `@` (e.g. same behavior as `cat -e` and the *newline* character). When `read(2)` returns `-1`, then the string `STDIN READ ERROR` is written on standard error.
305-
* **[./sleep_and_exit_with_status](https://github.com/42shTests/42ShellTester/tree/master/support/sleep-and-exit-with-status)**: A binary that sleeps for a duration in seconds given as first argument and then exits with status given as second argument.
306-
* **[./sleep_and_write_on_stderr](https://github.com/42shTests/42ShellTester/tree/master/support/sleep-and-write-on-stderr)**: A binary that sleeps for a duration in seconds given as first argument and then writes on STDERR the string given as second argument without EOL.
307-
* **[./write_on_stderr](https://github.com/42shTests/42ShellTester/tree/master/support/write-on-stderr)**: A binary that writes on standard error the first given argument (the same behavior as `echo` but with only one argument) and exits with an error status code given as second argument. If no argument is given, it writes the string "write on stderr" and exit with status `1`.
308-
* **[./write_on_stdout](https://github.com/42shTests/42ShellTester/tree/master/support/write-on-stdout)**: A binary that writes on standard output the first given argument (the same behavior as `echo` but with only one argument). If no argument is given, it writes the string "write on stdout".
309-
* **[./write_on_stdout_and_stderr](https://github.com/42shTests/42ShellTester/tree/master/support/write-on-stdout-and-stderr)**: A binary that writes on standard output the first given argument, and writes on standard error the second given argument. If an argument is missing, it writes the strings "write on stdout" and "write on stderr".
300+
* **[./display_env](https://github.com/we-sh/42ShellTester/tree/master/support/display-env)**: A binary that iterates on `**envp` and write each element on standard output.
301+
* **[./display_program_name](https://github.com/we-sh/42ShellTester/tree/master/support/display-program-name)**: A binary that writes its name on standard ouput.
302+
* **[./display_pwd](https://github.com/we-sh/42ShellTester/tree/master/support/display-pwd)**: A binary that writes on standard output the absolute path of the current directory returned by `getcwd(3)`, encountered with the strings `PWD:` and `:PWD`.
303+
* **[./exit_with_status](https://github.com/we-sh/42ShellTester/tree/master/support/exit-with-status)**: A binary that immediately exits with the status given as first argument.
304+
* **[./read_on_stdin](https://github.com/we-sh/42ShellTester/tree/master/support/read-on-stdin)**: A binary that reads on standard entry and write each line on standard output suffixed with the character `@` (e.g. same behavior as `cat -e` and the *newline* character). When `read(2)` returns `-1`, then the string `STDIN READ ERROR` is written on standard error.
305+
* **[./sleep_and_exit_with_status](https://github.com/we-sh/42ShellTester/tree/master/support/sleep-and-exit-with-status)**: A binary that sleeps for a duration in seconds given as first argument and then exits with status given as second argument.
306+
* **[./sleep_and_write_on_stderr](https://github.com/we-sh/42ShellTester/tree/master/support/sleep-and-write-on-stderr)**: A binary that sleeps for a duration in seconds given as first argument and then writes on STDERR the string given as second argument without EOL.
307+
* **[./write_on_stderr](https://github.com/we-sh/42ShellTester/tree/master/support/write-on-stderr)**: A binary that writes on standard error the first given argument (the same behavior as `echo` but with only one argument) and exits with an error status code given as second argument. If no argument is given, it writes the string "write on stderr" and exit with status `1`.
308+
* **[./write_on_stdout](https://github.com/we-sh/42ShellTester/tree/master/support/write-on-stdout)**: A binary that writes on standard output the first given argument (the same behavior as `echo` but with only one argument). If no argument is given, it writes the string "write on stdout".
309+
* **[./write_on_stdout_and_stderr](https://github.com/we-sh/42ShellTester/tree/master/support/write-on-stdout-and-stderr)**: A binary that writes on standard output the first given argument, and writes on standard error the second given argument. If an argument is missing, it writes the strings "write on stdout" and "write on stderr".
310310

311311
<!--END_SUPPORT_BINARIES_LIST-->
312312

spec/21sh/misc/001-no-prompt-in-non-interactive-mode/README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ The following variables may appear in this test:
4040
The following binaries may appear in this test:
4141

4242

43-
* **[./display_env](https://github.com/42shTests/42ShellTester/tree/master/support/display-env)** -> A binary that iterates on `**envp` and write each element on standard output.
44-
* **[./display_program_name](https://github.com/42shTests/42ShellTester/tree/master/support/display-program-name)** -> A binary that writes its name on standard ouput.
45-
* **[./display_pwd](https://github.com/42shTests/42ShellTester/tree/master/support/display-pwd)** -> A binary that writes on standard output the absolute path of the current directory returned by `getcwd(3)`, encountered with the strings `PWD:` and `:PWD`.
46-
* **[./exit_with_status](https://github.com/42shTests/42ShellTester/tree/master/support/exit-with-status)** -> A binary that immediately exits with the status given as first argument.
47-
* **[./read_on_stdin](https://github.com/42shTests/42ShellTester/tree/master/support/read-on-stdin)** -> A binary that reads on standard entry and write each line on standard output suffixed with the character `@` (e.g. same behavior as `cat -e` and the *newline* character). When `read(2)` returns `-1`, then the string `STDIN READ ERROR` is written on standard error.
48-
* **[./sleep_and_exit_with_status](https://github.com/42shTests/42ShellTester/tree/master/support/sleep-and-exit-with-status)** -> A binary that sleeps for a duration in seconds given as first argument and then exits with status given as second argument.
49-
* **[./sleep_and_write_on_stderr](https://github.com/42shTests/42ShellTester/tree/master/support/sleep-and-write-on-stderr)** -> A binary that sleeps for a duration in seconds given as first argument and then writes on STDERR the string given as second argument without EOL.
50-
* **[./write_on_stderr](https://github.com/42shTests/42ShellTester/tree/master/support/write-on-stderr)** -> A binary that writes on standard error the first given argument (the same behavior as `echo` but with only one argument) and exits with an error status code given as second argument. If no argument is given, it writes the string "write on stderr" and exit with status `1`.
51-
* **[./write_on_stdout](https://github.com/42shTests/42ShellTester/tree/master/support/write-on-stdout)** -> A binary that writes on standard output the first given argument (the same behavior as `echo` but with only one argument). If no argument is given, it writes the string "write on stdout".
52-
* **[./write_on_stdout_and_stderr](https://github.com/42shTests/42ShellTester/tree/master/support/write-on-stdout-and-stderr)** -> A binary that writes on standard output the first given argument, and writes on standard error the second given argument. If an argument is missing, it writes the strings "write on stdout" and "write on stderr".
43+
* **[./display_env](https://github.com/we-sh/42ShellTester/tree/master/support/display-env)** -> A binary that iterates on `**envp` and write each element on standard output.
44+
* **[./display_program_name](https://github.com/we-sh/42ShellTester/tree/master/support/display-program-name)** -> A binary that writes its name on standard ouput.
45+
* **[./display_pwd](https://github.com/we-sh/42ShellTester/tree/master/support/display-pwd)** -> A binary that writes on standard output the absolute path of the current directory returned by `getcwd(3)`, encountered with the strings `PWD:` and `:PWD`.
46+
* **[./exit_with_status](https://github.com/we-sh/42ShellTester/tree/master/support/exit-with-status)** -> A binary that immediately exits with the status given as first argument.
47+
* **[./read_on_stdin](https://github.com/we-sh/42ShellTester/tree/master/support/read-on-stdin)** -> A binary that reads on standard entry and write each line on standard output suffixed with the character `@` (e.g. same behavior as `cat -e` and the *newline* character). When `read(2)` returns `-1`, then the string `STDIN READ ERROR` is written on standard error.
48+
* **[./sleep_and_exit_with_status](https://github.com/we-sh/42ShellTester/tree/master/support/sleep-and-exit-with-status)** -> A binary that sleeps for a duration in seconds given as first argument and then exits with status given as second argument.
49+
* **[./sleep_and_write_on_stderr](https://github.com/we-sh/42ShellTester/tree/master/support/sleep-and-write-on-stderr)** -> A binary that sleeps for a duration in seconds given as first argument and then writes on STDERR the string given as second argument without EOL.
50+
* **[./write_on_stderr](https://github.com/we-sh/42ShellTester/tree/master/support/write-on-stderr)** -> A binary that writes on standard error the first given argument (the same behavior as `echo` but with only one argument) and exits with an error status code given as second argument. If no argument is given, it writes the string "write on stderr" and exit with status `1`.
51+
* **[./write_on_stdout](https://github.com/we-sh/42ShellTester/tree/master/support/write-on-stdout)** -> A binary that writes on standard output the first given argument (the same behavior as `echo` but with only one argument). If no argument is given, it writes the string "write on stdout".
52+
* **[./write_on_stdout_and_stderr](https://github.com/we-sh/42ShellTester/tree/master/support/write-on-stdout-and-stderr)** -> A binary that writes on standard output the first given argument, and writes on standard error the second given argument. If an argument is missing, it writes the strings "write on stdout" and "write on stderr".

spec/21sh/misc/002-simple-command-line/README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ The following variables may appear in this test:
5555
The following binaries may appear in this test:
5656

5757

58-
* **[./display_env](https://github.com/42shTests/42ShellTester/tree/master/support/display-env)** -> A binary that iterates on `**envp` and write each element on standard output.
59-
* **[./display_program_name](https://github.com/42shTests/42ShellTester/tree/master/support/display-program-name)** -> A binary that writes its name on standard ouput.
60-
* **[./display_pwd](https://github.com/42shTests/42ShellTester/tree/master/support/display-pwd)** -> A binary that writes on standard output the absolute path of the current directory returned by `getcwd(3)`, encountered with the strings `PWD:` and `:PWD`.
61-
* **[./exit_with_status](https://github.com/42shTests/42ShellTester/tree/master/support/exit-with-status)** -> A binary that immediately exits with the status given as first argument.
62-
* **[./read_on_stdin](https://github.com/42shTests/42ShellTester/tree/master/support/read-on-stdin)** -> A binary that reads on standard entry and write each line on standard output suffixed with the character `@` (e.g. same behavior as `cat -e` and the *newline* character). When `read(2)` returns `-1`, then the string `STDIN READ ERROR` is written on standard error.
63-
* **[./sleep_and_exit_with_status](https://github.com/42shTests/42ShellTester/tree/master/support/sleep-and-exit-with-status)** -> A binary that sleeps for a duration in seconds given as first argument and then exits with status given as second argument.
64-
* **[./sleep_and_write_on_stderr](https://github.com/42shTests/42ShellTester/tree/master/support/sleep-and-write-on-stderr)** -> A binary that sleeps for a duration in seconds given as first argument and then writes on STDERR the string given as second argument without EOL.
65-
* **[./write_on_stderr](https://github.com/42shTests/42ShellTester/tree/master/support/write-on-stderr)** -> A binary that writes on standard error the first given argument (the same behavior as `echo` but with only one argument) and exits with an error status code given as second argument. If no argument is given, it writes the string "write on stderr" and exit with status `1`.
66-
* **[./write_on_stdout](https://github.com/42shTests/42ShellTester/tree/master/support/write-on-stdout)** -> A binary that writes on standard output the first given argument (the same behavior as `echo` but with only one argument). If no argument is given, it writes the string "write on stdout".
67-
* **[./write_on_stdout_and_stderr](https://github.com/42shTests/42ShellTester/tree/master/support/write-on-stdout-and-stderr)** -> A binary that writes on standard output the first given argument, and writes on standard error the second given argument. If an argument is missing, it writes the strings "write on stdout" and "write on stderr".
58+
* **[./display_env](https://github.com/we-sh/42ShellTester/tree/master/support/display-env)** -> A binary that iterates on `**envp` and write each element on standard output.
59+
* **[./display_program_name](https://github.com/we-sh/42ShellTester/tree/master/support/display-program-name)** -> A binary that writes its name on standard ouput.
60+
* **[./display_pwd](https://github.com/we-sh/42ShellTester/tree/master/support/display-pwd)** -> A binary that writes on standard output the absolute path of the current directory returned by `getcwd(3)`, encountered with the strings `PWD:` and `:PWD`.
61+
* **[./exit_with_status](https://github.com/we-sh/42ShellTester/tree/master/support/exit-with-status)** -> A binary that immediately exits with the status given as first argument.
62+
* **[./read_on_stdin](https://github.com/we-sh/42ShellTester/tree/master/support/read-on-stdin)** -> A binary that reads on standard entry and write each line on standard output suffixed with the character `@` (e.g. same behavior as `cat -e` and the *newline* character). When `read(2)` returns `-1`, then the string `STDIN READ ERROR` is written on standard error.
63+
* **[./sleep_and_exit_with_status](https://github.com/we-sh/42ShellTester/tree/master/support/sleep-and-exit-with-status)** -> A binary that sleeps for a duration in seconds given as first argument and then exits with status given as second argument.
64+
* **[./sleep_and_write_on_stderr](https://github.com/we-sh/42ShellTester/tree/master/support/sleep-and-write-on-stderr)** -> A binary that sleeps for a duration in seconds given as first argument and then writes on STDERR the string given as second argument without EOL.
65+
* **[./write_on_stderr](https://github.com/we-sh/42ShellTester/tree/master/support/write-on-stderr)** -> A binary that writes on standard error the first given argument (the same behavior as `echo` but with only one argument) and exits with an error status code given as second argument. If no argument is given, it writes the string "write on stderr" and exit with status `1`.
66+
* **[./write_on_stdout](https://github.com/we-sh/42ShellTester/tree/master/support/write-on-stdout)** -> A binary that writes on standard output the first given argument (the same behavior as `echo` but with only one argument). If no argument is given, it writes the string "write on stdout".
67+
* **[./write_on_stdout_and_stderr](https://github.com/we-sh/42ShellTester/tree/master/support/write-on-stdout-and-stderr)** -> A binary that writes on standard output the first given argument, and writes on standard error the second given argument. If an argument is missing, it writes the strings "write on stdout" and "write on stderr".

0 commit comments

Comments
 (0)