aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-07 18:58:12 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-07 18:58:12 +0200
commit0cf5d76836a6499de4e30c4066d8709099ff6331 (patch)
tree65606b51f97fc88ac0953d73d760995fb759442a /README.md
parent2a93ed69f7ee88c26b1edfb1f58a8f4d6d842bd4 (diff)
downloadminishell_test-0cf5d76836a6499de4e30c4066d8709099ff6331.tar.gz
minishell_test-0cf5d76836a6499de4e30c4066d8709099ff6331.tar.bz2
minishell_test-0cf5d76836a6499de4e30c4066d8709099ff6331.zip
Added memory leak checking
Diffstat (limited to 'README.md')
-rw-r--r--README.md32
1 files changed, 20 insertions, 12 deletions
diff --git a/README.md b/README.md
index 5c173ae..27b3644 100644
--- a/README.md
+++ b/README.md
@@ -11,24 +11,28 @@ The default path to your project is `..` but you can change it the the [configur
```sh
$ ./run # run all tests
-$ ./run --help
-usage: run [-h] [-v] [-b] [-n] [-l] [-m] [-p] [suite [suite ...]]
+$❯ ./run -h
+usage: run [-h] [-k] [-x] [-v] [-b] [-n] [-l] [-m] [-p] [suite [suite ...]]
Minishell test
positional arguments:
- suite Test suites/group to run.
- It tries to be smart and autocomplete the suite name
- (e.g ./run int -> ./run preprocess/interpolation)
+ suite Test suites/group to run. It tries to be smart and
+ autocomplete the suite name (e.g ./run int -> ./run
+ preprocess/interpolation)
optional arguments:
- -h, --help show this help message and exit
- -v, --verbose Increase verbosity level (e.g -vv == 2)
- -b, --bonus Enable bonus tests
- -n, --no-bonus Disable bonus tests
- -l, --list Print available test suites
- -m, --make Make minishell and exit
- -p, --pager After running the test, display the result in a pager of your choice
+ -h, --help show this help message and exit
+ -k, --check-leaks Run valgrind on tests (disable usual comparison with
+ bash)
+ -x, --exit-first Exit on first fail
+ -v, --verbose Increase verbosity level (e.g -vv == 2)
+ -b, --bonus Enable bonus tests
+ -n, --no-bonus Disable bonus tests
+ -l, --list Print available test suites
+ -m, --make Make minishell and exit
+ -p, --pager After running the test, display the result in a pager of
+ your choice ./run --help
```
## Test compatibility
@@ -60,6 +64,10 @@ Their is 3 different method to enable the bonus tests:
* Set the environment variable `MINISHELL_TEST_BONUS` to `yes`
(e.g `echo 'export MINISHELL_TEST_BONUS=yes' >> ~/.zshrc`)
+## Memory leaks
+
+`./run -kx`
+
## Linux
The tester will try to convert to output/status code of bash on Linux to the one on Mac.