3.56. kink/test/TOOL

Launcheable mod for unit tests.

Usage: kink [Kink_options]... -m kink/test/TOOL [--] [Mod_options]... Path...

If Path is a path of a file, this is considered a test script, and tests in the file is collected.

If Path is a path of a directory, all the files recursively matching *_test.kn are considered as test scripts, and tests in the files are collected.

Mod_options:

--help / -h :: Print the help text and exit.

--include Name / -i Name :: Include tests whose addr parts contain the Name.

--exclude Name / -e Name :: Exclude tests whose addr parts contain the Name.

Test selection:

Inclusion and exclusion is calculated for each test so that the latest rule wins. Adding to this, tests with @ignore are always excluded.

Example:

$ kink -m kink/test/TOOL unit-test/ system-test/ --exclude @os-specific --include @linux

In the above example, the test with addr "@all; system-test; foo_test.kn; @os-specific; @win; windows test" is excluded because "@os-specific" is excluded. The test with addr "@all; system-test; foo_test.kn; @os-specific; @linux; linux test" is included because of "@linux", which comes after "@os-specific".

3.56.1. TOOL.main(Argv)

Launcher of kink/test/TOOL mod.