Skip to content

Commit f398793

Browse files
committed
rtcheck: Updated docs
1 parent 8b7bf58 commit f398793

File tree

1 file changed

+59
-25
lines changed

1 file changed

+59
-25
lines changed

docs/Command line options.md

Lines changed: 59 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,82 @@
1+
Hello rtcheck!
12
//==============================================================================
23
pluginval
3-
JUCE v7.0.2
4+
JUCE v8.0.10
45

56
Description:
67
Validate plugins to test compatibility with hosts and verify plugin API conformance
78

89
Usage:
10+
--version
11+
Print pluginval version.
912
--validate [pathToPlugin]
1013
Validates the plugin at the given path.
11-
N.B. the --validate flag is optional if the path is the last argument. This enables you to validate a plugin with simply "pluginval path_to_plugin".
12-
--strictness-level [1-10]
13-
Sets the strictness level to use. A minimum level of 5 (also the default) is recomended for compatibility. Higher levels include longer, more thorough tests such as fuzzing.
14+
N.B. the "--validate" flag is optional if the path is the last argument.
15+
This enables you to validate a plugin with simply "pluginval path_to_plugin".
16+
17+
--sample-rates [list of comma separated sample rates]
18+
If specified, sets the list of sample rates at which tests will be executed
19+
(default=44100,48000,96000)
20+
--block-sizes [list of comma separated block sizes]
21+
If specified, sets the list of block sizes at which tests will be executed
22+
(default=64,128,256,512,1024)
1423
--random-seed [hex or int]
15-
Sets the random seed to use for the tests. Useful for replicating test environments.
24+
Sets the random seed to use for the tests. Useful for replicating test
25+
environments.
26+
--data-file [pathToFile]
27+
If specified, sets a path to a data file which can be used by tests to
28+
configure themselves. This can be useful for things like known audio output.
29+
30+
--strictness-level [1-10]
31+
Sets the strictness level to use. A minimum level of 5 (also the default)
32+
is recomended for compatibility.
33+
Higher levels include longer, more thorough tests such as fuzzing.
1634
--timeout-ms [numMilliseconds]
17-
Sets a timout which will stop validation with an error if no output from any test has happened for this number of ms.
18-
By default this is 30s but can be set to -1 to never timeout.
19-
--verbose
20-
If specified, outputs additional logging information. It can be useful to turn this off when building with CI to avoid huge log files.
21-
--skip-gui-tests
22-
If specified, avoids tests that create GUI windows, which can cause problems on headless CI systems.
35+
Sets a timout which will stop validation with an error if no output from any
36+
test has happened for this number of ms.
37+
By default this is 30s but can be set to "-1" (must be quoted) to never timeout.
38+
--rtcheck [empty, disabled, enabled or relaxed]
39+
Turns on real-time saftey checks using rtcheck (macOS and Linux only).
40+
relaxed mode doesn't run the checks for the first processing block as a lot of plugins
41+
use this to allocate or initialise thread-locals (which can allocate)
42+
2343
--repeat [num repeats]
24-
If specified repeats the tests a given number of times. Note that this does not delete and re-instantiate the plugin for each repeat. --randomise
25-
If specified the tests are run in a random order per repeat. --data-file [pathToFile]
26-
If specified, sets a path to a data file which can be used by tests to configure themselves. This can be useful for things like known audio output.
27-
--output-dir [pathToDir]
28-
If specified, sets a directory to store the log files. This can be useful for continuous integration.
44+
If specified repeats the tests a given number of times. Note that this does
45+
not delete and re-instantiate the plugin for each repeat.
46+
--randomise
47+
If specified, the tests are run in a random order per repeat.
48+
49+
--skip-gui-tests
50+
If specified, avoids tests that create GUI windows, which can cause problems
51+
on headless CI systems.
2952
--disabled-tests [pathToFile]
30-
If specified, sets a path to a file that should have the names of disabled tests on each row.
31-
--sample-rates [list of comma separated sample rates]
32-
If specified, sets the list of sample rates at which tests will be executed (default=44100,48000,96000)
33-
--block-sizes [list of comma separated block sizes]
34-
If specified, sets the list of block sizes at which tests will be executed (default=64,128,256,512,1024)
53+
If specified, sets a path to a file that should have the names of disabled
54+
tests on each row.
3555
--vst3validator [pathToValidator]
3656
If specified, this will run the VST3 validator as part of the test process.
37-
--version
38-
Print pluginval version.
57+
58+
--output-dir [pathToDir]
59+
If specified, sets a directory to store the log files. This can be useful
60+
for continuous integration.
61+
--output-filename [filename]
62+
If specified, sets a filename for the log files (within 'output-dir' or
63+
(lacking that) the current directory.
64+
By default, the name is constructed from the plugin metainformation
65+
--verbose
66+
If specified, outputs additional logging information. It can be useful to
67+
turn this off when building with CI to avoid huge log files.
3968

4069
Exit code:
4170
0 if all tests complete successfully
4271
1 if there are any errors
4372

44-
Additionally, you can specify any of the command line options as environment varibles by removing prefix dashes, converting internal dashes to underscores and captialising all letters e.g. "--skip-gui-tests" > "SKIP_GUI_TESTS=1", "--timeout-ms 30000" > "TIMEOUT_MS=30000"
45-
Specifying specific command-line options will override any environment variables set for that option.
73+
Additionally, you can specify any of the command line options as environment
74+
variables by removing prefix dashes, converting internal dashes to underscores
75+
and capitalising all letters, a.g.
76+
"--skip-gui-tests" > "SKIP_GUI_TESTS=1"
77+
"--timeout-ms 30000" > "TIMEOUT_MS=30000"
78+
Specifying specific command-line options will override any environment variables
79+
set for that option.
4680

4781
pluginval --version Prints the current version number
4882
pluginval --help|-h Prints the list of commands

0 commit comments

Comments
 (0)