tests/tracing: add trace type feature tests
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 24 Sep 2020 23:15:59 +0000 (19:15 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 24 Sep 2020 23:37:53 +0000 (19:37 -0400)
commit00bfc23acfdf3e8c2c7f353bf32113a728a842a1
treef19363a2792470d73c49f302d112ed6e161cb3f1
parent982a3367e162a48084923b67a3b6c1e9a617de40
tests/tracing: add trace type feature tests

This patch adds a new tracing test category named `counter-clock`.

This is because the `counter-clock` platform (in
`tests/tracing/support/counter-clock`) has a data stream clock which is
a simpler counter starting at 0.

The platform's base YAML trace type object,
`tests/tracing/support/counter-clock/base.yaml`, specifies a single
event record type `dummy` so that test-specific configurations which do
not need event record types are lighter.

The C files in `tests/tracing/src/counter-clock/trace-type-features`
do not call any tracing function: they only initialize and finalize
the test platform, which effectively opens and closes a single packet.

In the new `test-platform.c` file, test_platform_fini() closes the
current packet whether or not it's empty.

`tests/tracing/support/counter-clock/base-no-features.yaml` is a YAML
trace type object file which disables all the trace type and data stream
type features except the data stream type ID and event record type ID
features.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
30 files changed:
tests/tracing/configs/counter-clock/trace-type-features/dst-id-uint8.yaml [new file with mode: 0644]
tests/tracing/configs/counter-clock/trace-type-features/magic-hex.yaml [new file with mode: 0644]
tests/tracing/configs/counter-clock/trace-type-features/magic.yaml [new file with mode: 0644]
tests/tracing/configs/counter-clock/trace-type-features/none.yaml [new file with mode: 0644]
tests/tracing/configs/counter-clock/trace-type-features/uuid-hex.yaml [new file with mode: 0644]
tests/tracing/configs/counter-clock/trace-type-features/uuid.yaml [new file with mode: 0644]
tests/tracing/conftest.py
tests/tracing/expect/counter-clock/trace-type-features/dst-id-uint8.data.expect [new file with mode: 0644]
tests/tracing/expect/counter-clock/trace-type-features/dst-id-uint8.metadata.expect [new file with mode: 0644]
tests/tracing/expect/counter-clock/trace-type-features/magic-hex.data.expect [new file with mode: 0644]
tests/tracing/expect/counter-clock/trace-type-features/magic-hex.metadata.expect [new file with mode: 0644]
tests/tracing/expect/counter-clock/trace-type-features/magic.data.expect [new file with mode: 0644]
tests/tracing/expect/counter-clock/trace-type-features/magic.metadata.expect [new file with mode: 0644]
tests/tracing/expect/counter-clock/trace-type-features/none.data.expect [new file with mode: 0644]
tests/tracing/expect/counter-clock/trace-type-features/none.metadata.expect [new file with mode: 0644]
tests/tracing/expect/counter-clock/trace-type-features/uuid-hex.data.expect [new file with mode: 0644]
tests/tracing/expect/counter-clock/trace-type-features/uuid-hex.metadata.expect [new file with mode: 0644]
tests/tracing/expect/counter-clock/trace-type-features/uuid.data.expect [new file with mode: 0644]
tests/tracing/expect/counter-clock/trace-type-features/uuid.metadata.expect [new file with mode: 0644]
tests/tracing/src/counter-clock/trace-type-features/dst-id-uint8.c [new file with mode: 0644]
tests/tracing/src/counter-clock/trace-type-features/magic-hex.c [new file with mode: 0644]
tests/tracing/src/counter-clock/trace-type-features/magic.c [new file with mode: 0644]
tests/tracing/src/counter-clock/trace-type-features/none.c [new file with mode: 0644]
tests/tracing/src/counter-clock/trace-type-features/uuid-hex.c [new file with mode: 0644]
tests/tracing/src/counter-clock/trace-type-features/uuid.c [new file with mode: 0644]
tests/tracing/support/counter-clock/Makefile [new file with mode: 0644]
tests/tracing/support/counter-clock/base-no-features.yaml [new file with mode: 0644]
tests/tracing/support/counter-clock/base.yaml [new file with mode: 0644]
tests/tracing/support/counter-clock/test-platform.c [new file with mode: 0644]
tests/tracing/support/counter-clock/test-platform.h [new file with mode: 0644]
This page took 0.026109 seconds and 4 git commands to generate.