• Home
  • Raw
  • Download

Lines Matching +full:runner +full:- +full:before +full:- +full:script

8 ## Test runner usage
10 The test runner `run.py` will run tests against the in-tree build of `zstd` and `datagen` by defaul…
12 The `zstd` binary used can be passed with `--zstd /path/to/zstd`.
13 …to run `zstd` through a tool like `valgrind` or `qemu`, set the `--exec-prefix 'valgrind -q'` flag.
15 Similarly, the `--datagen`, and `--zstdgrep` flags can be set to specify
19 …mally these directories are removed after the test executes. However, the `--preserve` flag will p…
23 By default the test runner `run.py` will run all the tests, and report the results.
29 ./run.py --preserve
30 ./run.py --zstd ../../build/programs/zstd --datagen ../../build/tests/datagen
35 A set of test names can be passed to the test runner `run.py` to only execute those tests.
36 This can be useful for writing or debugging a test, especially with `--preserve`.
44 ./run.py --preserve basic/help.sh basic/version.sh
45 ./run.py --preserve --verbose basic/help.sh
50 …derr.exact` or `.stdout.exact` no longer matches, you can re-run the tests with `--set-exact-outpu…
54 ./run.py --set-exact-output
55 ./run.py basic/help.sh --set-exact-output
61 After the script executes, the exit code, stderr, and stdout are compared against the expectations.
63 …d of the test, unless `--preserve` is passed to the test runner. Additionally, the `setup` script
67 The `$PATH` for tests is prepended with the `bin/` sub-directory, which contains helper scripts for…
73 Common shell script libraries are provided under `common/`, with helper variables and functions. Th…
75 …ent variables are provided for testing, which can be listed when calling `run.py` with `--verbose`.
88 If you provide a `.exact` file, the output is expected to exactly match, byte-for-byte.
101 exit-1.sh
102 ---
105 ---
107 exit-1.sh.exit
108 ---
110 ---
117 ---
120 ---
123 ---
125 ---
132 ---
134 head -c 10 < /dev/urandom | xxd >&2
135 ---
138 ---
145 random-num-lines.sh
146 ---
151 ---
153 random-num-lines.sh.stdout.glob
154 ---
159 ---
167 exit-1.sh
168 ---
171 ---
178 ---
187 ---
190 ---
193 ---
195 ---
201 …h directory in the test directory is a test-suite consisting of all tests within that directory (b…
209 The `setup_once` and `teardown_once` are run once before and after all the tests in the suite respe…
212 For example, the `dictionaries/setup_once` script builds several dictionaries, for use in the `dict…
214 The `setup` and `teardown` scripts run before and after each test case respectively, in the test ca…
216 For example, the `dictionaries/setup` script copies the dictionaries built by the `dictionaries/set…
222 ---
228 ---
231 ---
234 ---
237 ---
239 set -e
243 datagen -g1000 > files/$i
246 zstd --train -r files/ -o dicts/0
247 ---
250 ---
256 cp -r ../files ../dicts .
257 ---