aboutsummaryrefslogtreecommitdiff
path: root/docs/options.rst
blob: 7c29529df6e6235cf1ec5532b90c82d82104a5e0 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Command line Options
====================

.. code-block:: txt

    usage: minishell_test [-h] [-p PATH] [-l] [-t COMMAND] [-k] [-r BEGIN END]
                          [--show-range] [-x] [-v] [-b] [-n] [-m] [-g]
                          [suite ...]

.. program:: minishell_test

.. option:: suite

   Test suites/group to run.
   It tries to be smart and autocomplete the suite name
   (e.g ./run int -> ./run preprocess/interpolation)


.. option:: -h, --help

   show this help message and exit

.. option:: -p <PATH>, --path <PATH>

   Path to minishell directory

.. option:: -l, --list

   Print available test suites

.. option:: -t <COMMAND>, --try <COMMAND>

   Run a custom command like this test would
   (the only environment variable passed to your executable are TERM and PATH)

.. option:: -k, --check-leaks

   Run valgrind on tests (disable usual comparison with bash)

.. option:: -r <BEGIN> <END>, --range <BEGIN> <END>

    Range of test index to run (imply --show-index)

.. option:: --show-range

   Show test index (useful with --range)

.. option:: -x, --exit-first

    Exit on first fail

.. option:: -v, --verbose

    Increase verbosity level (e.g -vv == 2)

.. option:: -b, --bonus

    Enable bonus tests

.. option:: -n, --no-bonus

    Disable bonus tests

.. option:: -m, --make

    Make minishell and exit

.. option:: -g, --pager

    After running the test, display the result in a pager of your choice