blob: ff7e0e8e17e4720715e8d51aa82e62d9039922ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# minishell test
Test for the minishell project of school 42.
# Usage
## Test compatibility
Your executable **must** support the `-c` option which allow to pass command as string.
example:
```
> bash -c 'echo bonjour je suis'
bonjour je suis
> ./minishell -c 'echo bonjour je suis'
bonjour je suis
> bash -c 'ls'
README.md test.sh
> ./minishell -c 'ls'
README.md test.sh
```
The reasons for this is are:
1. we're free to set the prompt to whatever we want
2. termcaps would be a nightmare to test
## Run
`> ./test.sh`
# Configuration
The default configuration can be changed in the minishell\_test.config file.
|