quark-test —
quark's test utility
quark-test |
[-1bkv] [-x
test] [tests ...] |
The
quark-test program runs tests for
quark(7). It is designed as one big fat
binary so that you can easily run it with quark's custom
initramfs.gz. Without any arguments,
quark-test will run all tests in both KPROBE and EBPF
as backend.
Each test runs a separate sub-process in order to avoid address
space contaminaton between two tests. The number of failed tests is the
return value of quark-test.
The options are as follows:
-1
- Don't run tests in a child process, useful for debugging with gdb, strace
and whatnot.
-b
- Run only EBPF tests.
-h
- Display this manpage.
-k
- Run only KPROBE tests.
-l
- Prints all available tests on stdout.
-v
- Increase
quark_verbose,
can be issued multiple times.
-V
- Print version and exit.
-x
test
- Exclude test from the run, can be specified multiple
times.
quark-test exits with the number of failed
tests, or non-zero if quark-test itself fails.
$ quark-test -k
t_probe @ kprobe: ok
t_fork_exec_exit @ kprobe: ok
failed tests 0
$ quark-test t_fork_exec_exit
t_fork_exec_exit @ ebpf: ok
t_fork_exec_exit @ kprobe: ok
failed tests 0