test for the minishell project of school 42
Project description
minishell_test
Getting Started
Installation
$ pip3 install minishell-test
$ pip3 install --user minishell-test # if you don't have root access
Compatibility
Your executable must support the -c
option which allow to pass
command as string.
$ bash -c 'echo bonjour je suis | cat -e'
bonjour je suis$
$ ./minishell -c 'echo bonjour je suis | cat -e'
bonjour je suis$
With this setup argv[2]
is what you would usually get in line
from
get_next_line
.
Usage
Run all the predefined tests:
$ cd <MINISHELL>
$ minishell_test
If you get command not found
, do either of those things:
- Add
~/.local/bin
to yourPATH
environment variable. - Run
$ python3 -m minishell_test
instead of$ minishell_test
Documentation
The full documentation for this project is available at minishell-test.readthedocs.io.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
minishell_test-1.1.1.tar.gz
(32.8 kB
view hashes)
Built Distribution
Close
Hashes for minishell_test-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a88616b869a1157ad040c4515f208a66ff7c1fe013b406c9fae2c763926628d |
|
MD5 | 73f1deb2a03adf70babbf9f4c84aef7c |
|
BLAKE2b-256 | 75e780c30ebe0dbe0747d58e38ab102b7d2c428e67cf261a4d1ef40a5a1b01f0 |