tests/tracing: use test categories
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 24 Sep 2020 20:35:48 +0000 (16:35 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 24 Sep 2020 21:46:31 +0000 (17:46 -0400)
This patch renames all `succeed` directories under `tests/tracing`
to `basic`. All tracing tests must succeed anyway.

In `basic/dynamic-array/of-double.yaml`:

* `basic` is the category.
* `dynamic-array` is the subcategory.
* `of-double.yaml` is the test file.

Support files are now per category: `tests/tracing/support` is moved
to `tests/tracing/support/basic`.

This makes it possible to add tracing test categories which have their
own platform and base YAML trace type object.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
393 files changed:
tests/tracing/configs/basic/ds/two-packets.yaml [new file with mode: 0644]
tests/tracing/configs/basic/dynamic-array/nested-5-uint8.yaml [new file with mode: 0644]
tests/tracing/configs/basic/dynamic-array/of-double.yaml [new file with mode: 0644]
tests/tracing/configs/basic/dynamic-array/of-static-array-of-double.yaml [new file with mode: 0644]
tests/tracing/configs/basic/dynamic-array/of-static-array-of-str.yaml [new file with mode: 0644]
tests/tracing/configs/basic/dynamic-array/of-static-array-of-uint8.yaml [new file with mode: 0644]
tests/tracing/configs/basic/dynamic-array/of-str.yaml [new file with mode: 0644]
tests/tracing/configs/basic/dynamic-array/of-uint3-middle.yaml [new file with mode: 0644]
tests/tracing/configs/basic/dynamic-array/of-uint3.yaml [new file with mode: 0644]
tests/tracing/configs/basic/dynamic-array/of-uint8.yaml [new file with mode: 0644]
tests/tracing/configs/basic/dynamic-array/zero-len.yaml [new file with mode: 0644]
tests/tracing/configs/basic/enum/senum16.yaml [new file with mode: 0644]
tests/tracing/configs/basic/enum/senum32.yaml [new file with mode: 0644]
tests/tracing/configs/basic/enum/senum64.yaml [new file with mode: 0644]
tests/tracing/configs/basic/enum/senum8.yaml [new file with mode: 0644]
tests/tracing/configs/basic/enum/uenum16.yaml [new file with mode: 0644]
tests/tracing/configs/basic/enum/uenum32.yaml [new file with mode: 0644]
tests/tracing/configs/basic/enum/uenum64.yaml [new file with mode: 0644]
tests/tracing/configs/basic/enum/uenum8.yaml [new file with mode: 0644]
tests/tracing/configs/basic/int/sint-bit-fields-wrap.yaml [new file with mode: 0644]
tests/tracing/configs/basic/int/sint-bit-fields.yaml [new file with mode: 0644]
tests/tracing/configs/basic/int/sint16.yaml [new file with mode: 0644]
tests/tracing/configs/basic/int/sint32.yaml [new file with mode: 0644]
tests/tracing/configs/basic/int/sint64.yaml [new file with mode: 0644]
tests/tracing/configs/basic/int/sint8.yaml [new file with mode: 0644]
tests/tracing/configs/basic/int/uint-bit-fields-wrap.yaml [new file with mode: 0644]
tests/tracing/configs/basic/int/uint-bit-fields.yaml [new file with mode: 0644]
tests/tracing/configs/basic/int/uint16.yaml [new file with mode: 0644]
tests/tracing/configs/basic/int/uint32.yaml [new file with mode: 0644]
tests/tracing/configs/basic/int/uint64.yaml [new file with mode: 0644]
tests/tracing/configs/basic/int/uint8.yaml [new file with mode: 0644]
tests/tracing/configs/basic/real/double.yaml [new file with mode: 0644]
tests/tracing/configs/basic/real/float.yaml [new file with mode: 0644]
tests/tracing/configs/basic/static-array/nested-5-uint8.yaml [new file with mode: 0644]
tests/tracing/configs/basic/static-array/of-double.yaml [new file with mode: 0644]
tests/tracing/configs/basic/static-array/of-static-array-of-double.yaml [new file with mode: 0644]
tests/tracing/configs/basic/static-array/of-static-array-of-str.yaml [new file with mode: 0644]
tests/tracing/configs/basic/static-array/of-static-array-of-uint8.yaml [new file with mode: 0644]
tests/tracing/configs/basic/static-array/of-str.yaml [new file with mode: 0644]
tests/tracing/configs/basic/static-array/of-uint3-middle.yaml [new file with mode: 0644]
tests/tracing/configs/basic/static-array/of-uint3.yaml [new file with mode: 0644]
tests/tracing/configs/basic/static-array/of-uint8.yaml [new file with mode: 0644]
tests/tracing/configs/basic/static-array/zero-len.yaml [new file with mode: 0644]
tests/tracing/configs/basic/string/empty.yaml [new file with mode: 0644]
tests/tracing/configs/basic/string/string.yaml [new file with mode: 0644]
tests/tracing/configs/basic/struct/empty.yaml [new file with mode: 0644]
tests/tracing/configs/basic/struct/five-members.yaml [new file with mode: 0644]
tests/tracing/configs/basic/struct/one-member.yaml [new file with mode: 0644]
tests/tracing/configs/succeed/ds/two-packets.yaml [deleted file]
tests/tracing/configs/succeed/dynamic-array/nested-5-uint8.yaml [deleted file]
tests/tracing/configs/succeed/dynamic-array/of-double.yaml [deleted file]
tests/tracing/configs/succeed/dynamic-array/of-static-array-of-double.yaml [deleted file]
tests/tracing/configs/succeed/dynamic-array/of-static-array-of-str.yaml [deleted file]
tests/tracing/configs/succeed/dynamic-array/of-static-array-of-uint8.yaml [deleted file]
tests/tracing/configs/succeed/dynamic-array/of-str.yaml [deleted file]
tests/tracing/configs/succeed/dynamic-array/of-uint3-middle.yaml [deleted file]
tests/tracing/configs/succeed/dynamic-array/of-uint3.yaml [deleted file]
tests/tracing/configs/succeed/dynamic-array/of-uint8.yaml [deleted file]
tests/tracing/configs/succeed/dynamic-array/zero-len.yaml [deleted file]
tests/tracing/configs/succeed/enum/senum16.yaml [deleted file]
tests/tracing/configs/succeed/enum/senum32.yaml [deleted file]
tests/tracing/configs/succeed/enum/senum64.yaml [deleted file]
tests/tracing/configs/succeed/enum/senum8.yaml [deleted file]
tests/tracing/configs/succeed/enum/uenum16.yaml [deleted file]
tests/tracing/configs/succeed/enum/uenum32.yaml [deleted file]
tests/tracing/configs/succeed/enum/uenum64.yaml [deleted file]
tests/tracing/configs/succeed/enum/uenum8.yaml [deleted file]
tests/tracing/configs/succeed/int/sint-bit-fields-wrap.yaml [deleted file]
tests/tracing/configs/succeed/int/sint-bit-fields.yaml [deleted file]
tests/tracing/configs/succeed/int/sint16.yaml [deleted file]
tests/tracing/configs/succeed/int/sint32.yaml [deleted file]
tests/tracing/configs/succeed/int/sint64.yaml [deleted file]
tests/tracing/configs/succeed/int/sint8.yaml [deleted file]
tests/tracing/configs/succeed/int/uint-bit-fields-wrap.yaml [deleted file]
tests/tracing/configs/succeed/int/uint-bit-fields.yaml [deleted file]
tests/tracing/configs/succeed/int/uint16.yaml [deleted file]
tests/tracing/configs/succeed/int/uint32.yaml [deleted file]
tests/tracing/configs/succeed/int/uint64.yaml [deleted file]
tests/tracing/configs/succeed/int/uint8.yaml [deleted file]
tests/tracing/configs/succeed/real/double.yaml [deleted file]
tests/tracing/configs/succeed/real/float.yaml [deleted file]
tests/tracing/configs/succeed/static-array/nested-5-uint8.yaml [deleted file]
tests/tracing/configs/succeed/static-array/of-double.yaml [deleted file]
tests/tracing/configs/succeed/static-array/of-static-array-of-double.yaml [deleted file]
tests/tracing/configs/succeed/static-array/of-static-array-of-str.yaml [deleted file]
tests/tracing/configs/succeed/static-array/of-static-array-of-uint8.yaml [deleted file]
tests/tracing/configs/succeed/static-array/of-str.yaml [deleted file]
tests/tracing/configs/succeed/static-array/of-uint3-middle.yaml [deleted file]
tests/tracing/configs/succeed/static-array/of-uint3.yaml [deleted file]
tests/tracing/configs/succeed/static-array/of-uint8.yaml [deleted file]
tests/tracing/configs/succeed/static-array/zero-len.yaml [deleted file]
tests/tracing/configs/succeed/string/empty.yaml [deleted file]
tests/tracing/configs/succeed/string/string.yaml [deleted file]
tests/tracing/configs/succeed/struct/empty.yaml [deleted file]
tests/tracing/configs/succeed/struct/five-members.yaml [deleted file]
tests/tracing/configs/succeed/struct/one-member.yaml [deleted file]
tests/tracing/conftest.py
tests/tracing/expect/basic/ds/two-packets.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/ds/two-packets.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/nested-5-uint8.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/nested-5-uint8.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/of-double.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/of-double.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/of-static-array-of-double.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/of-static-array-of-double.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/of-static-array-of-str.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/of-static-array-of-str.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/of-static-array-of-uint8.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/of-static-array-of-uint8.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/of-str.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/of-str.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/of-uint3-middle.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/of-uint3-middle.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/of-uint3.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/of-uint3.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/of-uint8.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/of-uint8.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/zero-len.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/dynamic-array/zero-len.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/enum/senum16.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/enum/senum16.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/enum/senum32.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/enum/senum32.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/enum/senum64.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/enum/senum64.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/enum/senum8.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/enum/senum8.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/enum/uenum16.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/enum/uenum16.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/enum/uenum32.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/enum/uenum32.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/enum/uenum64.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/enum/uenum64.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/enum/uenum8.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/enum/uenum8.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/sint-bit-fields-wrap.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/sint-bit-fields-wrap.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/sint-bit-fields.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/sint-bit-fields.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/sint16.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/sint16.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/sint32.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/sint32.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/sint64.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/sint64.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/sint8.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/sint8.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/uint-bit-fields-wrap.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/uint-bit-fields-wrap.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/uint-bit-fields.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/uint-bit-fields.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/uint16.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/uint16.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/uint32.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/uint32.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/uint64.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/uint64.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/uint8.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/int/uint8.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/real/double.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/real/double.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/real/float.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/real/float.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/nested-5-uint8.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/nested-5-uint8.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/of-double.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/of-double.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/of-static-array-of-double.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/of-static-array-of-double.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/of-static-array-of-str.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/of-static-array-of-str.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/of-static-array-of-uint8.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/of-static-array-of-uint8.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/of-str.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/of-str.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/of-uint3-middle.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/of-uint3-middle.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/of-uint3.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/of-uint3.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/of-uint8.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/of-uint8.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/zero-len.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/static-array/zero-len.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/string/empty.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/string/empty.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/string/string.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/string/string.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/struct/empty.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/struct/empty.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/struct/five-members.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/struct/five-members.metadata.expect [new file with mode: 0644]
tests/tracing/expect/basic/struct/one-member.data.expect [new file with mode: 0644]
tests/tracing/expect/basic/struct/one-member.metadata.expect [new file with mode: 0644]
tests/tracing/expect/succeed/ds/two-packets.data.expect [deleted file]
tests/tracing/expect/succeed/ds/two-packets.metadata.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/nested-5-uint8.data.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/nested-5-uint8.metadata.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/of-double.data.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/of-double.metadata.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/of-static-array-of-double.data.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/of-static-array-of-double.metadata.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/of-static-array-of-str.data.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/of-static-array-of-str.metadata.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/of-static-array-of-uint8.data.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/of-static-array-of-uint8.metadata.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/of-str.data.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/of-str.metadata.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/of-uint3-middle.data.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/of-uint3-middle.metadata.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/of-uint3.data.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/of-uint3.metadata.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/of-uint8.data.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/of-uint8.metadata.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/zero-len.data.expect [deleted file]
tests/tracing/expect/succeed/dynamic-array/zero-len.metadata.expect [deleted file]
tests/tracing/expect/succeed/enum/senum16.data.expect [deleted file]
tests/tracing/expect/succeed/enum/senum16.metadata.expect [deleted file]
tests/tracing/expect/succeed/enum/senum32.data.expect [deleted file]
tests/tracing/expect/succeed/enum/senum32.metadata.expect [deleted file]
tests/tracing/expect/succeed/enum/senum64.data.expect [deleted file]
tests/tracing/expect/succeed/enum/senum64.metadata.expect [deleted file]
tests/tracing/expect/succeed/enum/senum8.data.expect [deleted file]
tests/tracing/expect/succeed/enum/senum8.metadata.expect [deleted file]
tests/tracing/expect/succeed/enum/uenum16.data.expect [deleted file]
tests/tracing/expect/succeed/enum/uenum16.metadata.expect [deleted file]
tests/tracing/expect/succeed/enum/uenum32.data.expect [deleted file]
tests/tracing/expect/succeed/enum/uenum32.metadata.expect [deleted file]
tests/tracing/expect/succeed/enum/uenum64.data.expect [deleted file]
tests/tracing/expect/succeed/enum/uenum64.metadata.expect [deleted file]
tests/tracing/expect/succeed/enum/uenum8.data.expect [deleted file]
tests/tracing/expect/succeed/enum/uenum8.metadata.expect [deleted file]
tests/tracing/expect/succeed/int/sint-bit-fields-wrap.data.expect [deleted file]
tests/tracing/expect/succeed/int/sint-bit-fields-wrap.metadata.expect [deleted file]
tests/tracing/expect/succeed/int/sint-bit-fields.data.expect [deleted file]
tests/tracing/expect/succeed/int/sint-bit-fields.metadata.expect [deleted file]
tests/tracing/expect/succeed/int/sint16.data.expect [deleted file]
tests/tracing/expect/succeed/int/sint16.metadata.expect [deleted file]
tests/tracing/expect/succeed/int/sint32.data.expect [deleted file]
tests/tracing/expect/succeed/int/sint32.metadata.expect [deleted file]
tests/tracing/expect/succeed/int/sint64.data.expect [deleted file]
tests/tracing/expect/succeed/int/sint64.metadata.expect [deleted file]
tests/tracing/expect/succeed/int/sint8.data.expect [deleted file]
tests/tracing/expect/succeed/int/sint8.metadata.expect [deleted file]
tests/tracing/expect/succeed/int/uint-bit-fields-wrap.data.expect [deleted file]
tests/tracing/expect/succeed/int/uint-bit-fields-wrap.metadata.expect [deleted file]
tests/tracing/expect/succeed/int/uint-bit-fields.data.expect [deleted file]
tests/tracing/expect/succeed/int/uint-bit-fields.metadata.expect [deleted file]
tests/tracing/expect/succeed/int/uint16.data.expect [deleted file]
tests/tracing/expect/succeed/int/uint16.metadata.expect [deleted file]
tests/tracing/expect/succeed/int/uint32.data.expect [deleted file]
tests/tracing/expect/succeed/int/uint32.metadata.expect [deleted file]
tests/tracing/expect/succeed/int/uint64.data.expect [deleted file]
tests/tracing/expect/succeed/int/uint64.metadata.expect [deleted file]
tests/tracing/expect/succeed/int/uint8.data.expect [deleted file]
tests/tracing/expect/succeed/int/uint8.metadata.expect [deleted file]
tests/tracing/expect/succeed/real/double.data.expect [deleted file]
tests/tracing/expect/succeed/real/double.metadata.expect [deleted file]
tests/tracing/expect/succeed/real/float.data.expect [deleted file]
tests/tracing/expect/succeed/real/float.metadata.expect [deleted file]
tests/tracing/expect/succeed/static-array/nested-5-uint8.data.expect [deleted file]
tests/tracing/expect/succeed/static-array/nested-5-uint8.metadata.expect [deleted file]
tests/tracing/expect/succeed/static-array/of-double.data.expect [deleted file]
tests/tracing/expect/succeed/static-array/of-double.metadata.expect [deleted file]
tests/tracing/expect/succeed/static-array/of-static-array-of-double.data.expect [deleted file]
tests/tracing/expect/succeed/static-array/of-static-array-of-double.metadata.expect [deleted file]
tests/tracing/expect/succeed/static-array/of-static-array-of-str.data.expect [deleted file]
tests/tracing/expect/succeed/static-array/of-static-array-of-str.metadata.expect [deleted file]
tests/tracing/expect/succeed/static-array/of-static-array-of-uint8.data.expect [deleted file]
tests/tracing/expect/succeed/static-array/of-static-array-of-uint8.metadata.expect [deleted file]
tests/tracing/expect/succeed/static-array/of-str.data.expect [deleted file]
tests/tracing/expect/succeed/static-array/of-str.metadata.expect [deleted file]
tests/tracing/expect/succeed/static-array/of-uint3-middle.data.expect [deleted file]
tests/tracing/expect/succeed/static-array/of-uint3-middle.metadata.expect [deleted file]
tests/tracing/expect/succeed/static-array/of-uint3.data.expect [deleted file]
tests/tracing/expect/succeed/static-array/of-uint3.metadata.expect [deleted file]
tests/tracing/expect/succeed/static-array/of-uint8.data.expect [deleted file]
tests/tracing/expect/succeed/static-array/of-uint8.metadata.expect [deleted file]
tests/tracing/expect/succeed/static-array/zero-len.data.expect [deleted file]
tests/tracing/expect/succeed/static-array/zero-len.metadata.expect [deleted file]
tests/tracing/expect/succeed/string/empty.data.expect [deleted file]
tests/tracing/expect/succeed/string/empty.metadata.expect [deleted file]
tests/tracing/expect/succeed/string/string.data.expect [deleted file]
tests/tracing/expect/succeed/string/string.metadata.expect [deleted file]
tests/tracing/expect/succeed/struct/empty.data.expect [deleted file]
tests/tracing/expect/succeed/struct/empty.metadata.expect [deleted file]
tests/tracing/expect/succeed/struct/five-members.data.expect [deleted file]
tests/tracing/expect/succeed/struct/five-members.metadata.expect [deleted file]
tests/tracing/expect/succeed/struct/one-member.data.expect [deleted file]
tests/tracing/expect/succeed/struct/one-member.metadata.expect [deleted file]
tests/tracing/src/basic/ds/two-packets.c [new file with mode: 0644]
tests/tracing/src/basic/dynamic-array/nested-5-uint8.c [new file with mode: 0644]
tests/tracing/src/basic/dynamic-array/of-double.c [new file with mode: 0644]
tests/tracing/src/basic/dynamic-array/of-static-array-of-double.c [new file with mode: 0644]
tests/tracing/src/basic/dynamic-array/of-static-array-of-str.c [new file with mode: 0644]
tests/tracing/src/basic/dynamic-array/of-static-array-of-uint8.c [new file with mode: 0644]
tests/tracing/src/basic/dynamic-array/of-str.c [new file with mode: 0644]
tests/tracing/src/basic/dynamic-array/of-uint3-middle.c [new file with mode: 0644]
tests/tracing/src/basic/dynamic-array/of-uint3.c [new file with mode: 0644]
tests/tracing/src/basic/dynamic-array/of-uint8.c [new file with mode: 0644]
tests/tracing/src/basic/dynamic-array/zero-len.c [new file with mode: 0644]
tests/tracing/src/basic/enum/senum16.c [new file with mode: 0644]
tests/tracing/src/basic/enum/senum32.c [new file with mode: 0644]
tests/tracing/src/basic/enum/senum64.c [new file with mode: 0644]
tests/tracing/src/basic/enum/senum8.c [new file with mode: 0644]
tests/tracing/src/basic/enum/uenum16.c [new file with mode: 0644]
tests/tracing/src/basic/enum/uenum32.c [new file with mode: 0644]
tests/tracing/src/basic/enum/uenum64.c [new file with mode: 0644]
tests/tracing/src/basic/enum/uenum8.c [new file with mode: 0644]
tests/tracing/src/basic/int/sint-bit-fields-wrap.c [new file with mode: 0644]
tests/tracing/src/basic/int/sint-bit-fields.c [new file with mode: 0644]
tests/tracing/src/basic/int/sint16.c [new file with mode: 0644]
tests/tracing/src/basic/int/sint32.c [new file with mode: 0644]
tests/tracing/src/basic/int/sint64.c [new file with mode: 0644]
tests/tracing/src/basic/int/sint8.c [new file with mode: 0644]
tests/tracing/src/basic/int/uint-bit-fields-wrap.c [new file with mode: 0644]
tests/tracing/src/basic/int/uint-bit-fields.c [new file with mode: 0644]
tests/tracing/src/basic/int/uint16.c [new file with mode: 0644]
tests/tracing/src/basic/int/uint32.c [new file with mode: 0644]
tests/tracing/src/basic/int/uint64.c [new file with mode: 0644]
tests/tracing/src/basic/int/uint8.c [new file with mode: 0644]
tests/tracing/src/basic/real/double.c [new file with mode: 0644]
tests/tracing/src/basic/real/float.c [new file with mode: 0644]
tests/tracing/src/basic/static-array/nested-5-uint8.c [new file with mode: 0644]
tests/tracing/src/basic/static-array/of-double.c [new file with mode: 0644]
tests/tracing/src/basic/static-array/of-static-array-of-double.c [new file with mode: 0644]
tests/tracing/src/basic/static-array/of-static-array-of-str.c [new file with mode: 0644]
tests/tracing/src/basic/static-array/of-static-array-of-uint8.c [new file with mode: 0644]
tests/tracing/src/basic/static-array/of-str.c [new file with mode: 0644]
tests/tracing/src/basic/static-array/of-uint3-middle.c [new file with mode: 0644]
tests/tracing/src/basic/static-array/of-uint3.c [new file with mode: 0644]
tests/tracing/src/basic/static-array/of-uint8.c [new file with mode: 0644]
tests/tracing/src/basic/static-array/zero-len.c [new file with mode: 0644]
tests/tracing/src/basic/string/empty.c [new file with mode: 0644]
tests/tracing/src/basic/string/string.c [new file with mode: 0644]
tests/tracing/src/basic/struct/empty.c [new file with mode: 0644]
tests/tracing/src/basic/struct/five-members.c [new file with mode: 0644]
tests/tracing/src/basic/struct/one-member.c [new file with mode: 0644]
tests/tracing/src/succeed/ds/two-packets.c [deleted file]
tests/tracing/src/succeed/dynamic-array/nested-5-uint8.c [deleted file]
tests/tracing/src/succeed/dynamic-array/of-double.c [deleted file]
tests/tracing/src/succeed/dynamic-array/of-static-array-of-double.c [deleted file]
tests/tracing/src/succeed/dynamic-array/of-static-array-of-str.c [deleted file]
tests/tracing/src/succeed/dynamic-array/of-static-array-of-uint8.c [deleted file]
tests/tracing/src/succeed/dynamic-array/of-str.c [deleted file]
tests/tracing/src/succeed/dynamic-array/of-uint3-middle.c [deleted file]
tests/tracing/src/succeed/dynamic-array/of-uint3.c [deleted file]
tests/tracing/src/succeed/dynamic-array/of-uint8.c [deleted file]
tests/tracing/src/succeed/dynamic-array/zero-len.c [deleted file]
tests/tracing/src/succeed/enum/senum16.c [deleted file]
tests/tracing/src/succeed/enum/senum32.c [deleted file]
tests/tracing/src/succeed/enum/senum64.c [deleted file]
tests/tracing/src/succeed/enum/senum8.c [deleted file]
tests/tracing/src/succeed/enum/uenum16.c [deleted file]
tests/tracing/src/succeed/enum/uenum32.c [deleted file]
tests/tracing/src/succeed/enum/uenum64.c [deleted file]
tests/tracing/src/succeed/enum/uenum8.c [deleted file]
tests/tracing/src/succeed/int/sint-bit-fields-wrap.c [deleted file]
tests/tracing/src/succeed/int/sint-bit-fields.c [deleted file]
tests/tracing/src/succeed/int/sint16.c [deleted file]
tests/tracing/src/succeed/int/sint32.c [deleted file]
tests/tracing/src/succeed/int/sint64.c [deleted file]
tests/tracing/src/succeed/int/sint8.c [deleted file]
tests/tracing/src/succeed/int/uint-bit-fields-wrap.c [deleted file]
tests/tracing/src/succeed/int/uint-bit-fields.c [deleted file]
tests/tracing/src/succeed/int/uint16.c [deleted file]
tests/tracing/src/succeed/int/uint32.c [deleted file]
tests/tracing/src/succeed/int/uint64.c [deleted file]
tests/tracing/src/succeed/int/uint8.c [deleted file]
tests/tracing/src/succeed/real/double.c [deleted file]
tests/tracing/src/succeed/real/float.c [deleted file]
tests/tracing/src/succeed/static-array/nested-5-uint8.c [deleted file]
tests/tracing/src/succeed/static-array/of-double.c [deleted file]
tests/tracing/src/succeed/static-array/of-static-array-of-double.c [deleted file]
tests/tracing/src/succeed/static-array/of-static-array-of-str.c [deleted file]
tests/tracing/src/succeed/static-array/of-static-array-of-uint8.c [deleted file]
tests/tracing/src/succeed/static-array/of-str.c [deleted file]
tests/tracing/src/succeed/static-array/of-uint3-middle.c [deleted file]
tests/tracing/src/succeed/static-array/of-uint3.c [deleted file]
tests/tracing/src/succeed/static-array/of-uint8.c [deleted file]
tests/tracing/src/succeed/static-array/zero-len.c [deleted file]
tests/tracing/src/succeed/string/empty.c [deleted file]
tests/tracing/src/succeed/string/string.c [deleted file]
tests/tracing/src/succeed/struct/empty.c [deleted file]
tests/tracing/src/succeed/struct/five-members.c [deleted file]
tests/tracing/src/succeed/struct/one-member.c [deleted file]
tests/tracing/support/Makefile [deleted file]
tests/tracing/support/base.yaml [deleted file]
tests/tracing/support/basic/Makefile [new file with mode: 0644]
tests/tracing/support/basic/base.yaml [new file with mode: 0644]
tests/tracing/support/basic/test-platform.c [new file with mode: 0644]
tests/tracing/support/basic/test-platform.h [new file with mode: 0644]
tests/tracing/support/test-platform.c [deleted file]
tests/tracing/support/test-platform.h [deleted file]

diff --git a/tests/tracing/configs/basic/ds/two-packets.yaml b/tests/tracing/configs/basic/ds/two-packets.yaml
new file mode 100644 (file)
index 0000000..6db36c4
--- /dev/null
@@ -0,0 +1,37 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdmisc.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - s: str
diff --git a/tests/tracing/configs/basic/dynamic-array/nested-5-uint8.yaml b/tests/tracing/configs/basic/dynamic-array/nested-5-uint8.yaml
new file mode 100644 (file)
index 0000000..bb57a9d
--- /dev/null
@@ -0,0 +1,52 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - array:
+                    field-type:
+                      class: dynamic-array
+                      element-field-type:
+                        class: static-array
+                        length: 2
+                        element-field-type:
+                          class: static-array
+                          length: 2
+                          element-field-type:
+                            class: static-array
+                            length: 2
+                            element-field-type:
+                              class: static-array
+                              length: 2
+                              element-field-type: uint8
diff --git a/tests/tracing/configs/basic/dynamic-array/of-double.yaml b/tests/tracing/configs/basic/dynamic-array/of-double.yaml
new file mode 100644 (file)
index 0000000..0fa9e4b
--- /dev/null
@@ -0,0 +1,40 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdreal.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - array:
+                    field-type:
+                      class: dynamic-array
+                      element-field-type: double
diff --git a/tests/tracing/configs/basic/dynamic-array/of-static-array-of-double.yaml b/tests/tracing/configs/basic/dynamic-array/of-static-array-of-double.yaml
new file mode 100644 (file)
index 0000000..b977665
--- /dev/null
@@ -0,0 +1,43 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdreal.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - array:
+                    field-type:
+                      class: dynamic-array
+                      element-field-type:
+                        class: static-array
+                        length: 3
+                        element-field-type: double
diff --git a/tests/tracing/configs/basic/dynamic-array/of-static-array-of-str.yaml b/tests/tracing/configs/basic/dynamic-array/of-static-array-of-str.yaml
new file mode 100644 (file)
index 0000000..b8a5954
--- /dev/null
@@ -0,0 +1,43 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdmisc.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - array:
+                    field-type:
+                      class: dynamic-array
+                      element-field-type:
+                        class: static-array
+                        length: 3
+                        element-field-type: str
diff --git a/tests/tracing/configs/basic/dynamic-array/of-static-array-of-uint8.yaml b/tests/tracing/configs/basic/dynamic-array/of-static-array-of-uint8.yaml
new file mode 100644 (file)
index 0000000..0c7ebc0
--- /dev/null
@@ -0,0 +1,43 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - array:
+                    field-type:
+                      class: dynamic-array
+                      element-field-type:
+                        class: static-array
+                        length: 3
+                        element-field-type: uint8
diff --git a/tests/tracing/configs/basic/dynamic-array/of-str.yaml b/tests/tracing/configs/basic/dynamic-array/of-str.yaml
new file mode 100644 (file)
index 0000000..9405b6a
--- /dev/null
@@ -0,0 +1,40 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdmisc.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - array:
+                    field-type:
+                      class: dynamic-array
+                      element-field-type: str
diff --git a/tests/tracing/configs/basic/dynamic-array/of-uint3-middle.yaml b/tests/tracing/configs/basic/dynamic-array/of-uint3-middle.yaml
new file mode 100644 (file)
index 0000000..d7358ae
--- /dev/null
@@ -0,0 +1,45 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+      - stdmisc.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - before: uint32
+                - array:
+                    field-type:
+                      class: dynamic-array
+                      element-field-type:
+                        class: uint
+                        size: 3
+                - after: str
diff --git a/tests/tracing/configs/basic/dynamic-array/of-uint3.yaml b/tests/tracing/configs/basic/dynamic-array/of-uint3.yaml
new file mode 100644 (file)
index 0000000..e6ffcd6
--- /dev/null
@@ -0,0 +1,42 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - array:
+                    field-type:
+                      class: dynamic-array
+                      element-field-type:
+                        class: uint
+                        size: 3
diff --git a/tests/tracing/configs/basic/dynamic-array/of-uint8.yaml b/tests/tracing/configs/basic/dynamic-array/of-uint8.yaml
new file mode 100644 (file)
index 0000000..d05488c
--- /dev/null
@@ -0,0 +1,40 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - array:
+                    field-type:
+                      class: dynamic-array
+                      element-field-type: uint8
diff --git a/tests/tracing/configs/basic/dynamic-array/zero-len.yaml b/tests/tracing/configs/basic/dynamic-array/zero-len.yaml
new file mode 100644 (file)
index 0000000..30b01d7
--- /dev/null
@@ -0,0 +1,45 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - before: uint8
+                - array:
+                    field-type:
+                      class: dynamic-array
+                      element-field-type:
+                        class: uint
+                        size: 8
+                        alignment: 64
+                - after: uint8
diff --git a/tests/tracing/configs/basic/enum/senum16.yaml b/tests/tracing/configs/basic/enum/senum16.yaml
new file mode 100644 (file)
index 0000000..8c3c8d3
--- /dev/null
@@ -0,0 +1,42 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - e:
+                    field-type:
+                      class: senum
+                      size: 16
+                      mappings:
+                        A: [0]
diff --git a/tests/tracing/configs/basic/enum/senum32.yaml b/tests/tracing/configs/basic/enum/senum32.yaml
new file mode 100644 (file)
index 0000000..d78774f
--- /dev/null
@@ -0,0 +1,42 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - e:
+                    field-type:
+                      class: senum
+                      size: 32
+                      mappings:
+                        A: [0]
diff --git a/tests/tracing/configs/basic/enum/senum64.yaml b/tests/tracing/configs/basic/enum/senum64.yaml
new file mode 100644 (file)
index 0000000..798d8cd
--- /dev/null
@@ -0,0 +1,42 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - e:
+                    field-type:
+                      class: senum
+                      size: 64
+                      mappings:
+                        A: [0]
diff --git a/tests/tracing/configs/basic/enum/senum8.yaml b/tests/tracing/configs/basic/enum/senum8.yaml
new file mode 100644 (file)
index 0000000..1c4af11
--- /dev/null
@@ -0,0 +1,42 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - e:
+                    field-type:
+                      class: senum
+                      size: 8
+                      mappings:
+                        A: [0]
diff --git a/tests/tracing/configs/basic/enum/uenum16.yaml b/tests/tracing/configs/basic/enum/uenum16.yaml
new file mode 100644 (file)
index 0000000..e8d28a2
--- /dev/null
@@ -0,0 +1,42 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - e:
+                    field-type:
+                      class: uenum
+                      size: 16
+                      mappings:
+                        A: [0]
diff --git a/tests/tracing/configs/basic/enum/uenum32.yaml b/tests/tracing/configs/basic/enum/uenum32.yaml
new file mode 100644 (file)
index 0000000..0c15b12
--- /dev/null
@@ -0,0 +1,42 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - e:
+                    field-type:
+                      class: uenum
+                      size: 32
+                      mappings:
+                        A: [0]
diff --git a/tests/tracing/configs/basic/enum/uenum64.yaml b/tests/tracing/configs/basic/enum/uenum64.yaml
new file mode 100644 (file)
index 0000000..9e19730
--- /dev/null
@@ -0,0 +1,42 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - e:
+                    field-type:
+                      class: uenum
+                      size: 64
+                      mappings:
+                        A: [0]
diff --git a/tests/tracing/configs/basic/enum/uenum8.yaml b/tests/tracing/configs/basic/enum/uenum8.yaml
new file mode 100644 (file)
index 0000000..7f541f2
--- /dev/null
@@ -0,0 +1,41 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - e:
+                    field-type:
+                      class: uenum
+                      size: 8
+                      mappings:
+                        A: [0]
diff --git a/tests/tracing/configs/basic/int/sint-bit-fields-wrap.yaml b/tests/tracing/configs/basic/int/sint-bit-fields-wrap.yaml
new file mode 100644 (file)
index 0000000..f0080fd
--- /dev/null
@@ -0,0 +1,72 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - i1:
+                    field-type:
+                      class: sint
+                      size: 1
+                - i3:
+                    field-type:
+                      class: sint
+                      size: 3
+                - i2:
+                    field-type:
+                      class: sint
+                      size: 2
+                - i5:
+                    field-type:
+                      class: sint
+                      size: 5
+                - i4:
+                    field-type:
+                      class: sint
+                      size: 4
+                - i7:
+                    field-type:
+                      class: sint
+                      size: 7
+                - i6:
+                    field-type:
+                      class: sint
+                      size: 6
+                - i23:
+                    field-type:
+                      class: sint
+                      size: 23
+                - i55:
+                    field-type:
+                      class: sint
+                      size: 55
diff --git a/tests/tracing/configs/basic/int/sint-bit-fields.yaml b/tests/tracing/configs/basic/int/sint-bit-fields.yaml
new file mode 100644 (file)
index 0000000..f0080fd
--- /dev/null
@@ -0,0 +1,72 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - i1:
+                    field-type:
+                      class: sint
+                      size: 1
+                - i3:
+                    field-type:
+                      class: sint
+                      size: 3
+                - i2:
+                    field-type:
+                      class: sint
+                      size: 2
+                - i5:
+                    field-type:
+                      class: sint
+                      size: 5
+                - i4:
+                    field-type:
+                      class: sint
+                      size: 4
+                - i7:
+                    field-type:
+                      class: sint
+                      size: 7
+                - i6:
+                    field-type:
+                      class: sint
+                      size: 6
+                - i23:
+                    field-type:
+                      class: sint
+                      size: 23
+                - i55:
+                    field-type:
+                      class: sint
+                      size: 55
diff --git a/tests/tracing/configs/basic/int/sint16.yaml b/tests/tracing/configs/basic/int/sint16.yaml
new file mode 100644 (file)
index 0000000..1e0c96a
--- /dev/null
@@ -0,0 +1,37 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - i: sint16
diff --git a/tests/tracing/configs/basic/int/sint32.yaml b/tests/tracing/configs/basic/int/sint32.yaml
new file mode 100644 (file)
index 0000000..4be6faf
--- /dev/null
@@ -0,0 +1,37 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - i: sint32
diff --git a/tests/tracing/configs/basic/int/sint64.yaml b/tests/tracing/configs/basic/int/sint64.yaml
new file mode 100644 (file)
index 0000000..7de3d50
--- /dev/null
@@ -0,0 +1,37 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - i: sint64
diff --git a/tests/tracing/configs/basic/int/sint8.yaml b/tests/tracing/configs/basic/int/sint8.yaml
new file mode 100644 (file)
index 0000000..8255da7
--- /dev/null
@@ -0,0 +1,37 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - i: sint8
diff --git a/tests/tracing/configs/basic/int/uint-bit-fields-wrap.yaml b/tests/tracing/configs/basic/int/uint-bit-fields-wrap.yaml
new file mode 100644 (file)
index 0000000..a833b38
--- /dev/null
@@ -0,0 +1,72 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - u1:
+                    field-type:
+                      class: uint
+                      size: 1
+                - u3:
+                    field-type:
+                      class: uint
+                      size: 3
+                - u2:
+                    field-type:
+                      class: uint
+                      size: 2
+                - u5:
+                    field-type:
+                      class: uint
+                      size: 5
+                - u4:
+                    field-type:
+                      class: uint
+                      size: 4
+                - u7:
+                    field-type:
+                      class: uint
+                      size: 7
+                - u6:
+                    field-type:
+                      class: uint
+                      size: 6
+                - u23:
+                    field-type:
+                      class: uint
+                      size: 23
+                - u55:
+                    field-type:
+                      class: uint
+                      size: 55
diff --git a/tests/tracing/configs/basic/int/uint-bit-fields.yaml b/tests/tracing/configs/basic/int/uint-bit-fields.yaml
new file mode 100644 (file)
index 0000000..a833b38
--- /dev/null
@@ -0,0 +1,72 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - u1:
+                    field-type:
+                      class: uint
+                      size: 1
+                - u3:
+                    field-type:
+                      class: uint
+                      size: 3
+                - u2:
+                    field-type:
+                      class: uint
+                      size: 2
+                - u5:
+                    field-type:
+                      class: uint
+                      size: 5
+                - u4:
+                    field-type:
+                      class: uint
+                      size: 4
+                - u7:
+                    field-type:
+                      class: uint
+                      size: 7
+                - u6:
+                    field-type:
+                      class: uint
+                      size: 6
+                - u23:
+                    field-type:
+                      class: uint
+                      size: 23
+                - u55:
+                    field-type:
+                      class: uint
+                      size: 55
diff --git a/tests/tracing/configs/basic/int/uint16.yaml b/tests/tracing/configs/basic/int/uint16.yaml
new file mode 100644 (file)
index 0000000..7548e0c
--- /dev/null
@@ -0,0 +1,37 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - u: uint16
diff --git a/tests/tracing/configs/basic/int/uint32.yaml b/tests/tracing/configs/basic/int/uint32.yaml
new file mode 100644 (file)
index 0000000..2c6334a
--- /dev/null
@@ -0,0 +1,37 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - u: uint32
diff --git a/tests/tracing/configs/basic/int/uint64.yaml b/tests/tracing/configs/basic/int/uint64.yaml
new file mode 100644 (file)
index 0000000..60fafc6
--- /dev/null
@@ -0,0 +1,37 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - u: uint64
diff --git a/tests/tracing/configs/basic/int/uint8.yaml b/tests/tracing/configs/basic/int/uint8.yaml
new file mode 100644 (file)
index 0000000..b152278
--- /dev/null
@@ -0,0 +1,37 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - u: uint8
diff --git a/tests/tracing/configs/basic/real/double.yaml b/tests/tracing/configs/basic/real/double.yaml
new file mode 100644 (file)
index 0000000..81f0a3f
--- /dev/null
@@ -0,0 +1,37 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdreal.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - r: double
diff --git a/tests/tracing/configs/basic/real/float.yaml b/tests/tracing/configs/basic/real/float.yaml
new file mode 100644 (file)
index 0000000..2ea45b9
--- /dev/null
@@ -0,0 +1,37 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdreal.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - r: float
diff --git a/tests/tracing/configs/basic/static-array/nested-5-uint8.yaml b/tests/tracing/configs/basic/static-array/nested-5-uint8.yaml
new file mode 100644 (file)
index 0000000..99a661b
--- /dev/null
@@ -0,0 +1,53 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - array:
+                    field-type:
+                      class: static-array
+                      length: 2
+                      element-field-type:
+                        class: static-array
+                        length: 2
+                        element-field-type:
+                          class: static-array
+                          length: 2
+                          element-field-type:
+                            class: static-array
+                            length: 2
+                            element-field-type:
+                              class: static-array
+                              length: 2
+                              element-field-type: uint8
diff --git a/tests/tracing/configs/basic/static-array/of-double.yaml b/tests/tracing/configs/basic/static-array/of-double.yaml
new file mode 100644 (file)
index 0000000..f9b9d9a
--- /dev/null
@@ -0,0 +1,41 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdreal.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - array:
+                    field-type:
+                      class: static-array
+                      length: 4
+                      element-field-type: double
diff --git a/tests/tracing/configs/basic/static-array/of-static-array-of-double.yaml b/tests/tracing/configs/basic/static-array/of-static-array-of-double.yaml
new file mode 100644 (file)
index 0000000..03e29df
--- /dev/null
@@ -0,0 +1,44 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdreal.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - array:
+                    field-type:
+                      class: static-array
+                      length: 2
+                      element-field-type:
+                        class: static-array
+                        length: 3
+                        element-field-type: double
diff --git a/tests/tracing/configs/basic/static-array/of-static-array-of-str.yaml b/tests/tracing/configs/basic/static-array/of-static-array-of-str.yaml
new file mode 100644 (file)
index 0000000..6bc36ac
--- /dev/null
@@ -0,0 +1,44 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdmisc.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - array:
+                    field-type:
+                      class: static-array
+                      length: 2
+                      element-field-type:
+                        class: static-array
+                        length: 3
+                        element-field-type: str
diff --git a/tests/tracing/configs/basic/static-array/of-static-array-of-uint8.yaml b/tests/tracing/configs/basic/static-array/of-static-array-of-uint8.yaml
new file mode 100644 (file)
index 0000000..261179f
--- /dev/null
@@ -0,0 +1,44 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - array:
+                    field-type:
+                      class: static-array
+                      length: 2
+                      element-field-type:
+                        class: static-array
+                        length: 3
+                        element-field-type: uint8
diff --git a/tests/tracing/configs/basic/static-array/of-str.yaml b/tests/tracing/configs/basic/static-array/of-str.yaml
new file mode 100644 (file)
index 0000000..6f664b4
--- /dev/null
@@ -0,0 +1,41 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdmisc.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - array:
+                    field-type:
+                      class: static-array
+                      length: 3
+                      element-field-type: str
diff --git a/tests/tracing/configs/basic/static-array/of-uint3-middle.yaml b/tests/tracing/configs/basic/static-array/of-uint3-middle.yaml
new file mode 100644 (file)
index 0000000..c3e3a5b
--- /dev/null
@@ -0,0 +1,46 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+      - stdmisc.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - before: uint32
+                - array:
+                    field-type:
+                      class: static-array
+                      length: 5
+                      element-field-type:
+                        class: uint
+                        size: 3
+                - after: str
diff --git a/tests/tracing/configs/basic/static-array/of-uint3.yaml b/tests/tracing/configs/basic/static-array/of-uint3.yaml
new file mode 100644 (file)
index 0000000..7337899
--- /dev/null
@@ -0,0 +1,43 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - array:
+                    field-type:
+                      class: static-array
+                      length: 5
+                      element-field-type:
+                        class: uint
+                        size: 3
diff --git a/tests/tracing/configs/basic/static-array/of-uint8.yaml b/tests/tracing/configs/basic/static-array/of-uint8.yaml
new file mode 100644 (file)
index 0000000..c7b7733
--- /dev/null
@@ -0,0 +1,41 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - array:
+                    field-type:
+                      class: static-array
+                      length: 7
+                      element-field-type: uint8
diff --git a/tests/tracing/configs/basic/static-array/zero-len.yaml b/tests/tracing/configs/basic/static-array/zero-len.yaml
new file mode 100644 (file)
index 0000000..6a4b0c9
--- /dev/null
@@ -0,0 +1,46 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - before: uint8
+                - array:
+                    field-type:
+                      class: static-array
+                      length: 0
+                      element-field-type:
+                        class: uint
+                        size: 8
+                        alignment: 64
+                - after: uint8
diff --git a/tests/tracing/configs/basic/string/empty.yaml b/tests/tracing/configs/basic/string/empty.yaml
new file mode 100644 (file)
index 0000000..6db36c4
--- /dev/null
@@ -0,0 +1,37 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdmisc.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - s: str
diff --git a/tests/tracing/configs/basic/string/string.yaml b/tests/tracing/configs/basic/string/string.yaml
new file mode 100644 (file)
index 0000000..6db36c4
--- /dev/null
@@ -0,0 +1,37 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdmisc.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - s: str
diff --git a/tests/tracing/configs/basic/struct/empty.yaml b/tests/tracing/configs/basic/struct/empty.yaml
new file mode 100644 (file)
index 0000000..07e9c65
--- /dev/null
@@ -0,0 +1,35 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdmisc.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
diff --git a/tests/tracing/configs/basic/struct/five-members.yaml b/tests/tracing/configs/basic/struct/five-members.yaml
new file mode 100644 (file)
index 0000000..7ca513d
--- /dev/null
@@ -0,0 +1,47 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdint.yaml
+      - stdreal.yaml
+      - stdmisc.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - m1: uint8
+                - m2: double
+                - m3: str
+                - m4:
+                    field-type:
+                      class: static-array
+                      length: 4
+                      element-field-type: float
+                - m5: sint32
diff --git a/tests/tracing/configs/basic/struct/one-member.yaml b/tests/tracing/configs/basic/struct/one-member.yaml
new file mode 100644 (file)
index 0000000..6db36c4
--- /dev/null
@@ -0,0 +1,37 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+%YAML 1.2
+--- !<tag:barectf.org,2020/3/config>
+trace:
+  type:
+    $include:
+      - base.yaml
+      - stdmisc.yaml
+    data-stream-types:
+      default:
+        event-record-types:
+          ev:
+            payload-field-type:
+              class: struct
+              members:
+                - s: str
diff --git a/tests/tracing/configs/succeed/ds/two-packets.yaml b/tests/tracing/configs/succeed/ds/two-packets.yaml
deleted file mode 100644 (file)
index 6db36c4..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdmisc.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - s: str
diff --git a/tests/tracing/configs/succeed/dynamic-array/nested-5-uint8.yaml b/tests/tracing/configs/succeed/dynamic-array/nested-5-uint8.yaml
deleted file mode 100644 (file)
index bb57a9d..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - array:
-                    field-type:
-                      class: dynamic-array
-                      element-field-type:
-                        class: static-array
-                        length: 2
-                        element-field-type:
-                          class: static-array
-                          length: 2
-                          element-field-type:
-                            class: static-array
-                            length: 2
-                            element-field-type:
-                              class: static-array
-                              length: 2
-                              element-field-type: uint8
diff --git a/tests/tracing/configs/succeed/dynamic-array/of-double.yaml b/tests/tracing/configs/succeed/dynamic-array/of-double.yaml
deleted file mode 100644 (file)
index 0fa9e4b..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdreal.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - array:
-                    field-type:
-                      class: dynamic-array
-                      element-field-type: double
diff --git a/tests/tracing/configs/succeed/dynamic-array/of-static-array-of-double.yaml b/tests/tracing/configs/succeed/dynamic-array/of-static-array-of-double.yaml
deleted file mode 100644 (file)
index b977665..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdreal.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - array:
-                    field-type:
-                      class: dynamic-array
-                      element-field-type:
-                        class: static-array
-                        length: 3
-                        element-field-type: double
diff --git a/tests/tracing/configs/succeed/dynamic-array/of-static-array-of-str.yaml b/tests/tracing/configs/succeed/dynamic-array/of-static-array-of-str.yaml
deleted file mode 100644 (file)
index b8a5954..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdmisc.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - array:
-                    field-type:
-                      class: dynamic-array
-                      element-field-type:
-                        class: static-array
-                        length: 3
-                        element-field-type: str
diff --git a/tests/tracing/configs/succeed/dynamic-array/of-static-array-of-uint8.yaml b/tests/tracing/configs/succeed/dynamic-array/of-static-array-of-uint8.yaml
deleted file mode 100644 (file)
index 0c7ebc0..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - array:
-                    field-type:
-                      class: dynamic-array
-                      element-field-type:
-                        class: static-array
-                        length: 3
-                        element-field-type: uint8
diff --git a/tests/tracing/configs/succeed/dynamic-array/of-str.yaml b/tests/tracing/configs/succeed/dynamic-array/of-str.yaml
deleted file mode 100644 (file)
index 9405b6a..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdmisc.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - array:
-                    field-type:
-                      class: dynamic-array
-                      element-field-type: str
diff --git a/tests/tracing/configs/succeed/dynamic-array/of-uint3-middle.yaml b/tests/tracing/configs/succeed/dynamic-array/of-uint3-middle.yaml
deleted file mode 100644 (file)
index d7358ae..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-      - stdmisc.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - before: uint32
-                - array:
-                    field-type:
-                      class: dynamic-array
-                      element-field-type:
-                        class: uint
-                        size: 3
-                - after: str
diff --git a/tests/tracing/configs/succeed/dynamic-array/of-uint3.yaml b/tests/tracing/configs/succeed/dynamic-array/of-uint3.yaml
deleted file mode 100644 (file)
index e6ffcd6..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - array:
-                    field-type:
-                      class: dynamic-array
-                      element-field-type:
-                        class: uint
-                        size: 3
diff --git a/tests/tracing/configs/succeed/dynamic-array/of-uint8.yaml b/tests/tracing/configs/succeed/dynamic-array/of-uint8.yaml
deleted file mode 100644 (file)
index d05488c..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - array:
-                    field-type:
-                      class: dynamic-array
-                      element-field-type: uint8
diff --git a/tests/tracing/configs/succeed/dynamic-array/zero-len.yaml b/tests/tracing/configs/succeed/dynamic-array/zero-len.yaml
deleted file mode 100644 (file)
index 30b01d7..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - before: uint8
-                - array:
-                    field-type:
-                      class: dynamic-array
-                      element-field-type:
-                        class: uint
-                        size: 8
-                        alignment: 64
-                - after: uint8
diff --git a/tests/tracing/configs/succeed/enum/senum16.yaml b/tests/tracing/configs/succeed/enum/senum16.yaml
deleted file mode 100644 (file)
index 8c3c8d3..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - e:
-                    field-type:
-                      class: senum
-                      size: 16
-                      mappings:
-                        A: [0]
diff --git a/tests/tracing/configs/succeed/enum/senum32.yaml b/tests/tracing/configs/succeed/enum/senum32.yaml
deleted file mode 100644 (file)
index d78774f..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - e:
-                    field-type:
-                      class: senum
-                      size: 32
-                      mappings:
-                        A: [0]
diff --git a/tests/tracing/configs/succeed/enum/senum64.yaml b/tests/tracing/configs/succeed/enum/senum64.yaml
deleted file mode 100644 (file)
index 798d8cd..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - e:
-                    field-type:
-                      class: senum
-                      size: 64
-                      mappings:
-                        A: [0]
diff --git a/tests/tracing/configs/succeed/enum/senum8.yaml b/tests/tracing/configs/succeed/enum/senum8.yaml
deleted file mode 100644 (file)
index 1c4af11..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - e:
-                    field-type:
-                      class: senum
-                      size: 8
-                      mappings:
-                        A: [0]
diff --git a/tests/tracing/configs/succeed/enum/uenum16.yaml b/tests/tracing/configs/succeed/enum/uenum16.yaml
deleted file mode 100644 (file)
index e8d28a2..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - e:
-                    field-type:
-                      class: uenum
-                      size: 16
-                      mappings:
-                        A: [0]
diff --git a/tests/tracing/configs/succeed/enum/uenum32.yaml b/tests/tracing/configs/succeed/enum/uenum32.yaml
deleted file mode 100644 (file)
index 0c15b12..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - e:
-                    field-type:
-                      class: uenum
-                      size: 32
-                      mappings:
-                        A: [0]
diff --git a/tests/tracing/configs/succeed/enum/uenum64.yaml b/tests/tracing/configs/succeed/enum/uenum64.yaml
deleted file mode 100644 (file)
index 9e19730..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - e:
-                    field-type:
-                      class: uenum
-                      size: 64
-                      mappings:
-                        A: [0]
diff --git a/tests/tracing/configs/succeed/enum/uenum8.yaml b/tests/tracing/configs/succeed/enum/uenum8.yaml
deleted file mode 100644 (file)
index 7f541f2..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - e:
-                    field-type:
-                      class: uenum
-                      size: 8
-                      mappings:
-                        A: [0]
diff --git a/tests/tracing/configs/succeed/int/sint-bit-fields-wrap.yaml b/tests/tracing/configs/succeed/int/sint-bit-fields-wrap.yaml
deleted file mode 100644 (file)
index f0080fd..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - i1:
-                    field-type:
-                      class: sint
-                      size: 1
-                - i3:
-                    field-type:
-                      class: sint
-                      size: 3
-                - i2:
-                    field-type:
-                      class: sint
-                      size: 2
-                - i5:
-                    field-type:
-                      class: sint
-                      size: 5
-                - i4:
-                    field-type:
-                      class: sint
-                      size: 4
-                - i7:
-                    field-type:
-                      class: sint
-                      size: 7
-                - i6:
-                    field-type:
-                      class: sint
-                      size: 6
-                - i23:
-                    field-type:
-                      class: sint
-                      size: 23
-                - i55:
-                    field-type:
-                      class: sint
-                      size: 55
diff --git a/tests/tracing/configs/succeed/int/sint-bit-fields.yaml b/tests/tracing/configs/succeed/int/sint-bit-fields.yaml
deleted file mode 100644 (file)
index f0080fd..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - i1:
-                    field-type:
-                      class: sint
-                      size: 1
-                - i3:
-                    field-type:
-                      class: sint
-                      size: 3
-                - i2:
-                    field-type:
-                      class: sint
-                      size: 2
-                - i5:
-                    field-type:
-                      class: sint
-                      size: 5
-                - i4:
-                    field-type:
-                      class: sint
-                      size: 4
-                - i7:
-                    field-type:
-                      class: sint
-                      size: 7
-                - i6:
-                    field-type:
-                      class: sint
-                      size: 6
-                - i23:
-                    field-type:
-                      class: sint
-                      size: 23
-                - i55:
-                    field-type:
-                      class: sint
-                      size: 55
diff --git a/tests/tracing/configs/succeed/int/sint16.yaml b/tests/tracing/configs/succeed/int/sint16.yaml
deleted file mode 100644 (file)
index 1e0c96a..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - i: sint16
diff --git a/tests/tracing/configs/succeed/int/sint32.yaml b/tests/tracing/configs/succeed/int/sint32.yaml
deleted file mode 100644 (file)
index 4be6faf..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - i: sint32
diff --git a/tests/tracing/configs/succeed/int/sint64.yaml b/tests/tracing/configs/succeed/int/sint64.yaml
deleted file mode 100644 (file)
index 7de3d50..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - i: sint64
diff --git a/tests/tracing/configs/succeed/int/sint8.yaml b/tests/tracing/configs/succeed/int/sint8.yaml
deleted file mode 100644 (file)
index 8255da7..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - i: sint8
diff --git a/tests/tracing/configs/succeed/int/uint-bit-fields-wrap.yaml b/tests/tracing/configs/succeed/int/uint-bit-fields-wrap.yaml
deleted file mode 100644 (file)
index a833b38..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - u1:
-                    field-type:
-                      class: uint
-                      size: 1
-                - u3:
-                    field-type:
-                      class: uint
-                      size: 3
-                - u2:
-                    field-type:
-                      class: uint
-                      size: 2
-                - u5:
-                    field-type:
-                      class: uint
-                      size: 5
-                - u4:
-                    field-type:
-                      class: uint
-                      size: 4
-                - u7:
-                    field-type:
-                      class: uint
-                      size: 7
-                - u6:
-                    field-type:
-                      class: uint
-                      size: 6
-                - u23:
-                    field-type:
-                      class: uint
-                      size: 23
-                - u55:
-                    field-type:
-                      class: uint
-                      size: 55
diff --git a/tests/tracing/configs/succeed/int/uint-bit-fields.yaml b/tests/tracing/configs/succeed/int/uint-bit-fields.yaml
deleted file mode 100644 (file)
index a833b38..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - u1:
-                    field-type:
-                      class: uint
-                      size: 1
-                - u3:
-                    field-type:
-                      class: uint
-                      size: 3
-                - u2:
-                    field-type:
-                      class: uint
-                      size: 2
-                - u5:
-                    field-type:
-                      class: uint
-                      size: 5
-                - u4:
-                    field-type:
-                      class: uint
-                      size: 4
-                - u7:
-                    field-type:
-                      class: uint
-                      size: 7
-                - u6:
-                    field-type:
-                      class: uint
-                      size: 6
-                - u23:
-                    field-type:
-                      class: uint
-                      size: 23
-                - u55:
-                    field-type:
-                      class: uint
-                      size: 55
diff --git a/tests/tracing/configs/succeed/int/uint16.yaml b/tests/tracing/configs/succeed/int/uint16.yaml
deleted file mode 100644 (file)
index 7548e0c..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - u: uint16
diff --git a/tests/tracing/configs/succeed/int/uint32.yaml b/tests/tracing/configs/succeed/int/uint32.yaml
deleted file mode 100644 (file)
index 2c6334a..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - u: uint32
diff --git a/tests/tracing/configs/succeed/int/uint64.yaml b/tests/tracing/configs/succeed/int/uint64.yaml
deleted file mode 100644 (file)
index 60fafc6..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - u: uint64
diff --git a/tests/tracing/configs/succeed/int/uint8.yaml b/tests/tracing/configs/succeed/int/uint8.yaml
deleted file mode 100644 (file)
index b152278..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - u: uint8
diff --git a/tests/tracing/configs/succeed/real/double.yaml b/tests/tracing/configs/succeed/real/double.yaml
deleted file mode 100644 (file)
index 81f0a3f..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdreal.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - r: double
diff --git a/tests/tracing/configs/succeed/real/float.yaml b/tests/tracing/configs/succeed/real/float.yaml
deleted file mode 100644 (file)
index 2ea45b9..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdreal.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - r: float
diff --git a/tests/tracing/configs/succeed/static-array/nested-5-uint8.yaml b/tests/tracing/configs/succeed/static-array/nested-5-uint8.yaml
deleted file mode 100644 (file)
index 99a661b..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - array:
-                    field-type:
-                      class: static-array
-                      length: 2
-                      element-field-type:
-                        class: static-array
-                        length: 2
-                        element-field-type:
-                          class: static-array
-                          length: 2
-                          element-field-type:
-                            class: static-array
-                            length: 2
-                            element-field-type:
-                              class: static-array
-                              length: 2
-                              element-field-type: uint8
diff --git a/tests/tracing/configs/succeed/static-array/of-double.yaml b/tests/tracing/configs/succeed/static-array/of-double.yaml
deleted file mode 100644 (file)
index f9b9d9a..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdreal.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - array:
-                    field-type:
-                      class: static-array
-                      length: 4
-                      element-field-type: double
diff --git a/tests/tracing/configs/succeed/static-array/of-static-array-of-double.yaml b/tests/tracing/configs/succeed/static-array/of-static-array-of-double.yaml
deleted file mode 100644 (file)
index 03e29df..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdreal.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - array:
-                    field-type:
-                      class: static-array
-                      length: 2
-                      element-field-type:
-                        class: static-array
-                        length: 3
-                        element-field-type: double
diff --git a/tests/tracing/configs/succeed/static-array/of-static-array-of-str.yaml b/tests/tracing/configs/succeed/static-array/of-static-array-of-str.yaml
deleted file mode 100644 (file)
index 6bc36ac..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdmisc.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - array:
-                    field-type:
-                      class: static-array
-                      length: 2
-                      element-field-type:
-                        class: static-array
-                        length: 3
-                        element-field-type: str
diff --git a/tests/tracing/configs/succeed/static-array/of-static-array-of-uint8.yaml b/tests/tracing/configs/succeed/static-array/of-static-array-of-uint8.yaml
deleted file mode 100644 (file)
index 261179f..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - array:
-                    field-type:
-                      class: static-array
-                      length: 2
-                      element-field-type:
-                        class: static-array
-                        length: 3
-                        element-field-type: uint8
diff --git a/tests/tracing/configs/succeed/static-array/of-str.yaml b/tests/tracing/configs/succeed/static-array/of-str.yaml
deleted file mode 100644 (file)
index 6f664b4..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdmisc.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - array:
-                    field-type:
-                      class: static-array
-                      length: 3
-                      element-field-type: str
diff --git a/tests/tracing/configs/succeed/static-array/of-uint3-middle.yaml b/tests/tracing/configs/succeed/static-array/of-uint3-middle.yaml
deleted file mode 100644 (file)
index c3e3a5b..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-      - stdmisc.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - before: uint32
-                - array:
-                    field-type:
-                      class: static-array
-                      length: 5
-                      element-field-type:
-                        class: uint
-                        size: 3
-                - after: str
diff --git a/tests/tracing/configs/succeed/static-array/of-uint3.yaml b/tests/tracing/configs/succeed/static-array/of-uint3.yaml
deleted file mode 100644 (file)
index 7337899..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - array:
-                    field-type:
-                      class: static-array
-                      length: 5
-                      element-field-type:
-                        class: uint
-                        size: 3
diff --git a/tests/tracing/configs/succeed/static-array/of-uint8.yaml b/tests/tracing/configs/succeed/static-array/of-uint8.yaml
deleted file mode 100644 (file)
index c7b7733..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - array:
-                    field-type:
-                      class: static-array
-                      length: 7
-                      element-field-type: uint8
diff --git a/tests/tracing/configs/succeed/static-array/zero-len.yaml b/tests/tracing/configs/succeed/static-array/zero-len.yaml
deleted file mode 100644 (file)
index 6a4b0c9..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - before: uint8
-                - array:
-                    field-type:
-                      class: static-array
-                      length: 0
-                      element-field-type:
-                        class: uint
-                        size: 8
-                        alignment: 64
-                - after: uint8
diff --git a/tests/tracing/configs/succeed/string/empty.yaml b/tests/tracing/configs/succeed/string/empty.yaml
deleted file mode 100644 (file)
index 6db36c4..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdmisc.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - s: str
diff --git a/tests/tracing/configs/succeed/string/string.yaml b/tests/tracing/configs/succeed/string/string.yaml
deleted file mode 100644 (file)
index 6db36c4..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdmisc.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - s: str
diff --git a/tests/tracing/configs/succeed/struct/empty.yaml b/tests/tracing/configs/succeed/struct/empty.yaml
deleted file mode 100644 (file)
index 07e9c65..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdmisc.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
diff --git a/tests/tracing/configs/succeed/struct/five-members.yaml b/tests/tracing/configs/succeed/struct/five-members.yaml
deleted file mode 100644 (file)
index 7ca513d..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdint.yaml
-      - stdreal.yaml
-      - stdmisc.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - m1: uint8
-                - m2: double
-                - m3: str
-                - m4:
-                    field-type:
-                      class: static-array
-                      length: 4
-                      element-field-type: float
-                - m5: sint32
diff --git a/tests/tracing/configs/succeed/struct/one-member.yaml b/tests/tracing/configs/succeed/struct/one-member.yaml
deleted file mode 100644 (file)
index 6db36c4..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-%YAML 1.2
---- !<tag:barectf.org,2020/3/config>
-trace:
-  type:
-    $include:
-      - base.yaml
-      - stdmisc.yaml
-    data-stream-types:
-      default:
-        event-record-types:
-          ev:
-            payload-field-type:
-              class: struct
-              members:
-                - s: str
index bc5930fbb321496060acfb4d89d75e1b61840811..ffd539a0eeb1566036674e3e56783ce7245a2124 100644 (file)
@@ -38,43 +38,45 @@ def pytest_collect_file(parent, path):
         return
 
     # If `path` is
-    # `/home/jo/barectf/tests/tracing/configs/succeed/static-array/of-str.yaml`,
-    # for example, then `elems` is:
+    # `/home/jo/barectf/tests/tracing/configs/basic/static-array/of-str.yaml`,
+    # for example, then:
     #
-    # * `succeed`
-    # * `static-array`
-    # * `of-str.yaml`
+    # `cat`:
+    #     `basic`
+    #
+    # `subcat`:
+    #     `static-array`
+    #
+    # `file_name`:
+    #     `of-str.yaml`
     path_str = str(path)
-    elems = [os.path.basename(path_str)]
-    cat_dir = os.path.dirname(path_str)
-    elems.append(os.path.basename(cat_dir))
-    succeed_dir = os.path.dirname(cat_dir)
-    elems.append(os.path.basename(succeed_dir))
-    configs_dir = os.path.dirname(succeed_dir)
-
-    if os.path.basename(succeed_dir) != 'succeed' or os.path.basename(configs_dir) != 'configs':
+    file_name = os.path.basename(path_str)
+    subcat_dir = os.path.dirname(path_str)
+    subcat = os.path.basename(subcat_dir)
+    cat_dir = os.path.dirname(subcat_dir)
+    cat = os.path.basename(cat_dir)
+    configs_dir = os.path.dirname(cat_dir)
+
+    if cat not in {'basic'} or os.path.basename(configs_dir) != 'configs':
         # not a YAML configuration test
         return
 
-    elems = list(reversed(elems))
-
     # create C source, expectation file, and support directory paths
     base_dir = os.path.dirname(configs_dir)
-    base_name = elems[-1].replace(yaml_ext, '')
-    rel_dir = os.path.join(*elems[:-1])
-    src_path = os.path.join(*[base_dir, 'src', rel_dir, f'{base_name}.c'])
-    data_expect_path = os.path.join(*([base_dir, 'expect', rel_dir, f'{base_name}.data.expect']))
-    metadata_expect_path = os.path.join(*([base_dir, 'expect', rel_dir, f'{base_name}.metadata.expect']))
-    support_dir_path = os.path.join(base_dir, 'support')
-
-    # create a unique test name
-    name = f'test-{"-".join(elems)}'.replace(yaml_ext, '')
+    base_name = file_name.replace(yaml_ext, '')
+    subcat_rel_dir = os.path.join(cat, subcat)
+    src_path = os.path.join(base_dir, 'src', subcat_rel_dir, f'{base_name}.c')
+    data_expect_path = os.path.join(base_dir, 'expect', subcat_rel_dir, f'{base_name}.data.expect')
+    metadata_expect_path = os.path.join(base_dir, 'expect', subcat_rel_dir,
+                                        f'{base_name}.metadata.expect')
+    support_dir_path = os.path.join(base_dir, 'support', cat)
 
     # create the file node
     return _YamlFile.from_parent(parent, fspath=path, src_path=src_path,
                                  data_expect_path=data_expect_path,
                                  metadata_expect_path=metadata_expect_path,
-                                 support_dir_path=support_dir_path, name=name)
+                                 support_dir_path=support_dir_path,
+                                 name=f'test-{cat}-{subcat}-{base_name}')
 
 
 class _YamlFile(pytest.File):
diff --git a/tests/tracing/expect/basic/ds/two-packets.data.expect b/tests/tracing/expect/basic/ds/two-packets.data.expect
new file mode 100644 (file)
index 0000000..13616e5
Binary files /dev/null and b/tests/tracing/expect/basic/ds/two-packets.data.expect differ
diff --git a/tests/tracing/expect/basic/ds/two-packets.metadata.expect b/tests/tracing/expect/basic/ds/two-packets.metadata.expect
new file mode 100644 (file)
index 0000000..78e0d07
--- /dev/null
@@ -0,0 +1,99 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               string {
+                       encoding = UTF8;
+               } s;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/dynamic-array/nested-5-uint8.data.expect b/tests/tracing/expect/basic/dynamic-array/nested-5-uint8.data.expect
new file mode 100644 (file)
index 0000000..24c17df
Binary files /dev/null and b/tests/tracing/expect/basic/dynamic-array/nested-5-uint8.data.expect differ
diff --git a/tests/tracing/expect/basic/dynamic-array/nested-5-uint8.metadata.expect b/tests/tracing/expect/basic/dynamic-array/nested-5-uint8.metadata.expect
new file mode 100644 (file)
index 0000000..45b613f
--- /dev/null
@@ -0,0 +1,110 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } __array_len;
+               integer {
+                       signed = false;
+                       size = 8;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } array[__array_len][2][2][2][2];
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/dynamic-array/of-double.data.expect b/tests/tracing/expect/basic/dynamic-array/of-double.data.expect
new file mode 100644 (file)
index 0000000..f3a676a
Binary files /dev/null and b/tests/tracing/expect/basic/dynamic-array/of-double.data.expect differ
diff --git a/tests/tracing/expect/basic/dynamic-array/of-double.metadata.expect b/tests/tracing/expect/basic/dynamic-array/of-double.metadata.expect
new file mode 100644 (file)
index 0000000..c503db0
--- /dev/null
@@ -0,0 +1,109 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } __array_len;
+               floating_point {
+                       mant_dig = 53;
+                       exp_dig = 11;
+                       align = 64;
+                       byte_order = native;
+               } array[__array_len];
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/dynamic-array/of-static-array-of-double.data.expect b/tests/tracing/expect/basic/dynamic-array/of-static-array-of-double.data.expect
new file mode 100644 (file)
index 0000000..eb1afbb
Binary files /dev/null and b/tests/tracing/expect/basic/dynamic-array/of-static-array-of-double.data.expect differ
diff --git a/tests/tracing/expect/basic/dynamic-array/of-static-array-of-double.metadata.expect b/tests/tracing/expect/basic/dynamic-array/of-static-array-of-double.metadata.expect
new file mode 100644 (file)
index 0000000..6b82319
--- /dev/null
@@ -0,0 +1,109 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } __array_len;
+               floating_point {
+                       mant_dig = 53;
+                       exp_dig = 11;
+                       align = 64;
+                       byte_order = native;
+               } array[__array_len][3];
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/dynamic-array/of-static-array-of-str.data.expect b/tests/tracing/expect/basic/dynamic-array/of-static-array-of-str.data.expect
new file mode 100644 (file)
index 0000000..18fcf61
Binary files /dev/null and b/tests/tracing/expect/basic/dynamic-array/of-static-array-of-str.data.expect differ
diff --git a/tests/tracing/expect/basic/dynamic-array/of-static-array-of-str.metadata.expect b/tests/tracing/expect/basic/dynamic-array/of-static-array-of-str.metadata.expect
new file mode 100644 (file)
index 0000000..163743a
--- /dev/null
@@ -0,0 +1,106 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } __array_len;
+               string {
+                       encoding = UTF8;
+               } array[__array_len][3];
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/dynamic-array/of-static-array-of-uint8.data.expect b/tests/tracing/expect/basic/dynamic-array/of-static-array-of-uint8.data.expect
new file mode 100644 (file)
index 0000000..666db48
Binary files /dev/null and b/tests/tracing/expect/basic/dynamic-array/of-static-array-of-uint8.data.expect differ
diff --git a/tests/tracing/expect/basic/dynamic-array/of-static-array-of-uint8.metadata.expect b/tests/tracing/expect/basic/dynamic-array/of-static-array-of-uint8.metadata.expect
new file mode 100644 (file)
index 0000000..7eda6f2
--- /dev/null
@@ -0,0 +1,110 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } __array_len;
+               integer {
+                       signed = false;
+                       size = 8;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } array[__array_len][3];
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/dynamic-array/of-str.data.expect b/tests/tracing/expect/basic/dynamic-array/of-str.data.expect
new file mode 100644 (file)
index 0000000..04d3dfe
Binary files /dev/null and b/tests/tracing/expect/basic/dynamic-array/of-str.data.expect differ
diff --git a/tests/tracing/expect/basic/dynamic-array/of-str.metadata.expect b/tests/tracing/expect/basic/dynamic-array/of-str.metadata.expect
new file mode 100644 (file)
index 0000000..094bcfc
--- /dev/null
@@ -0,0 +1,106 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } __array_len;
+               string {
+                       encoding = UTF8;
+               } array[__array_len];
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/dynamic-array/of-uint3-middle.data.expect b/tests/tracing/expect/basic/dynamic-array/of-uint3-middle.data.expect
new file mode 100644 (file)
index 0000000..4748166
Binary files /dev/null and b/tests/tracing/expect/basic/dynamic-array/of-uint3-middle.data.expect differ
diff --git a/tests/tracing/expect/basic/dynamic-array/of-uint3-middle.metadata.expect b/tests/tracing/expect/basic/dynamic-array/of-uint3-middle.metadata.expect
new file mode 100644 (file)
index 0000000..9498de6
--- /dev/null
@@ -0,0 +1,120 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 32;
+                       byte_order = native;
+                       base = 10;
+               } before;
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } __array_len;
+               integer {
+                       signed = false;
+                       size = 3;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } array[__array_len];
+               string {
+                       encoding = UTF8;
+               } after;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/dynamic-array/of-uint3.data.expect b/tests/tracing/expect/basic/dynamic-array/of-uint3.data.expect
new file mode 100644 (file)
index 0000000..3a1a314
Binary files /dev/null and b/tests/tracing/expect/basic/dynamic-array/of-uint3.data.expect differ
diff --git a/tests/tracing/expect/basic/dynamic-array/of-uint3.metadata.expect b/tests/tracing/expect/basic/dynamic-array/of-uint3.metadata.expect
new file mode 100644 (file)
index 0000000..9a6da78
--- /dev/null
@@ -0,0 +1,110 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } __array_len;
+               integer {
+                       signed = false;
+                       size = 3;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } array[__array_len];
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/dynamic-array/of-uint8.data.expect b/tests/tracing/expect/basic/dynamic-array/of-uint8.data.expect
new file mode 100644 (file)
index 0000000..2b856bf
Binary files /dev/null and b/tests/tracing/expect/basic/dynamic-array/of-uint8.data.expect differ
diff --git a/tests/tracing/expect/basic/dynamic-array/of-uint8.metadata.expect b/tests/tracing/expect/basic/dynamic-array/of-uint8.metadata.expect
new file mode 100644 (file)
index 0000000..71582ee
--- /dev/null
@@ -0,0 +1,110 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } __array_len;
+               integer {
+                       signed = false;
+                       size = 8;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } array[__array_len];
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/dynamic-array/zero-len.data.expect b/tests/tracing/expect/basic/dynamic-array/zero-len.data.expect
new file mode 100644 (file)
index 0000000..338d48c
Binary files /dev/null and b/tests/tracing/expect/basic/dynamic-array/zero-len.data.expect differ
diff --git a/tests/tracing/expect/basic/dynamic-array/zero-len.metadata.expect b/tests/tracing/expect/basic/dynamic-array/zero-len.metadata.expect
new file mode 100644 (file)
index 0000000..9d35f75
--- /dev/null
@@ -0,0 +1,124 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 8;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } before;
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } __array_len;
+               integer {
+                       signed = false;
+                       size = 8;
+                       align = 64;
+                       byte_order = native;
+                       base = 10;
+               } array[__array_len];
+               integer {
+                       signed = false;
+                       size = 8;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } after;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/enum/senum16.data.expect b/tests/tracing/expect/basic/enum/senum16.data.expect
new file mode 100644 (file)
index 0000000..d51d842
Binary files /dev/null and b/tests/tracing/expect/basic/enum/senum16.data.expect differ
diff --git a/tests/tracing/expect/basic/enum/senum16.metadata.expect b/tests/tracing/expect/basic/enum/senum16.metadata.expect
new file mode 100644 (file)
index 0000000..a954af7
--- /dev/null
@@ -0,0 +1,105 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               enum : integer {
+                       signed = true;
+                       size = 16;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } {
+                       "A" = 0,
+               } e;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/enum/senum32.data.expect b/tests/tracing/expect/basic/enum/senum32.data.expect
new file mode 100644 (file)
index 0000000..4b4e6ed
Binary files /dev/null and b/tests/tracing/expect/basic/enum/senum32.data.expect differ
diff --git a/tests/tracing/expect/basic/enum/senum32.metadata.expect b/tests/tracing/expect/basic/enum/senum32.metadata.expect
new file mode 100644 (file)
index 0000000..59d5276
--- /dev/null
@@ -0,0 +1,105 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               enum : integer {
+                       signed = true;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } {
+                       "A" = 0,
+               } e;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/enum/senum64.data.expect b/tests/tracing/expect/basic/enum/senum64.data.expect
new file mode 100644 (file)
index 0000000..c0bad78
Binary files /dev/null and b/tests/tracing/expect/basic/enum/senum64.data.expect differ
diff --git a/tests/tracing/expect/basic/enum/senum64.metadata.expect b/tests/tracing/expect/basic/enum/senum64.metadata.expect
new file mode 100644 (file)
index 0000000..12c6ded
--- /dev/null
@@ -0,0 +1,105 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               enum : integer {
+                       signed = true;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } {
+                       "A" = 0,
+               } e;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/enum/senum8.data.expect b/tests/tracing/expect/basic/enum/senum8.data.expect
new file mode 100644 (file)
index 0000000..bdde9fb
Binary files /dev/null and b/tests/tracing/expect/basic/enum/senum8.data.expect differ
diff --git a/tests/tracing/expect/basic/enum/senum8.metadata.expect b/tests/tracing/expect/basic/enum/senum8.metadata.expect
new file mode 100644 (file)
index 0000000..ab45750
--- /dev/null
@@ -0,0 +1,105 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               enum : integer {
+                       signed = true;
+                       size = 8;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } {
+                       "A" = 0,
+               } e;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/enum/uenum16.data.expect b/tests/tracing/expect/basic/enum/uenum16.data.expect
new file mode 100644 (file)
index 0000000..9b0c479
Binary files /dev/null and b/tests/tracing/expect/basic/enum/uenum16.data.expect differ
diff --git a/tests/tracing/expect/basic/enum/uenum16.metadata.expect b/tests/tracing/expect/basic/enum/uenum16.metadata.expect
new file mode 100644 (file)
index 0000000..886c4da
--- /dev/null
@@ -0,0 +1,105 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               enum : integer {
+                       signed = false;
+                       size = 16;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } {
+                       "A" = 0,
+               } e;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/enum/uenum32.data.expect b/tests/tracing/expect/basic/enum/uenum32.data.expect
new file mode 100644 (file)
index 0000000..f4b9806
Binary files /dev/null and b/tests/tracing/expect/basic/enum/uenum32.data.expect differ
diff --git a/tests/tracing/expect/basic/enum/uenum32.metadata.expect b/tests/tracing/expect/basic/enum/uenum32.metadata.expect
new file mode 100644 (file)
index 0000000..6699281
--- /dev/null
@@ -0,0 +1,105 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               enum : integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } {
+                       "A" = 0,
+               } e;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/enum/uenum64.data.expect b/tests/tracing/expect/basic/enum/uenum64.data.expect
new file mode 100644 (file)
index 0000000..e831460
Binary files /dev/null and b/tests/tracing/expect/basic/enum/uenum64.data.expect differ
diff --git a/tests/tracing/expect/basic/enum/uenum64.metadata.expect b/tests/tracing/expect/basic/enum/uenum64.metadata.expect
new file mode 100644 (file)
index 0000000..a43a1b1
--- /dev/null
@@ -0,0 +1,105 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               enum : integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } {
+                       "A" = 0,
+               } e;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/enum/uenum8.data.expect b/tests/tracing/expect/basic/enum/uenum8.data.expect
new file mode 100644 (file)
index 0000000..35dae12
Binary files /dev/null and b/tests/tracing/expect/basic/enum/uenum8.data.expect differ
diff --git a/tests/tracing/expect/basic/enum/uenum8.metadata.expect b/tests/tracing/expect/basic/enum/uenum8.metadata.expect
new file mode 100644 (file)
index 0000000..33d3633
--- /dev/null
@@ -0,0 +1,105 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               enum : integer {
+                       signed = false;
+                       size = 8;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } {
+                       "A" = 0,
+               } e;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/int/sint-bit-fields-wrap.data.expect b/tests/tracing/expect/basic/int/sint-bit-fields-wrap.data.expect
new file mode 100644 (file)
index 0000000..2a70287
Binary files /dev/null and b/tests/tracing/expect/basic/int/sint-bit-fields-wrap.data.expect differ
diff --git a/tests/tracing/expect/basic/int/sint-bit-fields-wrap.metadata.expect b/tests/tracing/expect/basic/int/sint-bit-fields-wrap.metadata.expect
new file mode 100644 (file)
index 0000000..872d1ce
--- /dev/null
@@ -0,0 +1,159 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = true;
+                       size = 1;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } i1;
+               integer {
+                       signed = true;
+                       size = 3;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } i3;
+               integer {
+                       signed = true;
+                       size = 2;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } i2;
+               integer {
+                       signed = true;
+                       size = 5;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } i5;
+               integer {
+                       signed = true;
+                       size = 4;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } i4;
+               integer {
+                       signed = true;
+                       size = 7;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } i7;
+               integer {
+                       signed = true;
+                       size = 6;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } i6;
+               integer {
+                       signed = true;
+                       size = 23;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } i23;
+               integer {
+                       signed = true;
+                       size = 55;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } i55;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/int/sint-bit-fields.data.expect b/tests/tracing/expect/basic/int/sint-bit-fields.data.expect
new file mode 100644 (file)
index 0000000..5b54d71
Binary files /dev/null and b/tests/tracing/expect/basic/int/sint-bit-fields.data.expect differ
diff --git a/tests/tracing/expect/basic/int/sint-bit-fields.metadata.expect b/tests/tracing/expect/basic/int/sint-bit-fields.metadata.expect
new file mode 100644 (file)
index 0000000..872d1ce
--- /dev/null
@@ -0,0 +1,159 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = true;
+                       size = 1;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } i1;
+               integer {
+                       signed = true;
+                       size = 3;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } i3;
+               integer {
+                       signed = true;
+                       size = 2;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } i2;
+               integer {
+                       signed = true;
+                       size = 5;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } i5;
+               integer {
+                       signed = true;
+                       size = 4;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } i4;
+               integer {
+                       signed = true;
+                       size = 7;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } i7;
+               integer {
+                       signed = true;
+                       size = 6;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } i6;
+               integer {
+                       signed = true;
+                       size = 23;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } i23;
+               integer {
+                       signed = true;
+                       size = 55;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } i55;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/int/sint16.data.expect b/tests/tracing/expect/basic/int/sint16.data.expect
new file mode 100644 (file)
index 0000000..d51d842
Binary files /dev/null and b/tests/tracing/expect/basic/int/sint16.data.expect differ
diff --git a/tests/tracing/expect/basic/int/sint16.metadata.expect b/tests/tracing/expect/basic/int/sint16.metadata.expect
new file mode 100644 (file)
index 0000000..c2bcbab
--- /dev/null
@@ -0,0 +1,103 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = true;
+                       size = 16;
+                       align = 16;
+                       byte_order = native;
+                       base = 10;
+               } i;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/int/sint32.data.expect b/tests/tracing/expect/basic/int/sint32.data.expect
new file mode 100644 (file)
index 0000000..4b4e6ed
Binary files /dev/null and b/tests/tracing/expect/basic/int/sint32.data.expect differ
diff --git a/tests/tracing/expect/basic/int/sint32.metadata.expect b/tests/tracing/expect/basic/int/sint32.metadata.expect
new file mode 100644 (file)
index 0000000..4867381
--- /dev/null
@@ -0,0 +1,103 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = true;
+                       size = 32;
+                       align = 32;
+                       byte_order = native;
+                       base = 10;
+               } i;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/int/sint64.data.expect b/tests/tracing/expect/basic/int/sint64.data.expect
new file mode 100644 (file)
index 0000000..29d6882
Binary files /dev/null and b/tests/tracing/expect/basic/int/sint64.data.expect differ
diff --git a/tests/tracing/expect/basic/int/sint64.metadata.expect b/tests/tracing/expect/basic/int/sint64.metadata.expect
new file mode 100644 (file)
index 0000000..ec6910d
--- /dev/null
@@ -0,0 +1,103 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = true;
+                       size = 64;
+                       align = 64;
+                       byte_order = native;
+                       base = 10;
+               } i;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/int/sint8.data.expect b/tests/tracing/expect/basic/int/sint8.data.expect
new file mode 100644 (file)
index 0000000..bdde9fb
Binary files /dev/null and b/tests/tracing/expect/basic/int/sint8.data.expect differ
diff --git a/tests/tracing/expect/basic/int/sint8.metadata.expect b/tests/tracing/expect/basic/int/sint8.metadata.expect
new file mode 100644 (file)
index 0000000..bbe3199
--- /dev/null
@@ -0,0 +1,103 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = true;
+                       size = 8;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } i;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/int/uint-bit-fields-wrap.data.expect b/tests/tracing/expect/basic/int/uint-bit-fields-wrap.data.expect
new file mode 100644 (file)
index 0000000..b5f5577
Binary files /dev/null and b/tests/tracing/expect/basic/int/uint-bit-fields-wrap.data.expect differ
diff --git a/tests/tracing/expect/basic/int/uint-bit-fields-wrap.metadata.expect b/tests/tracing/expect/basic/int/uint-bit-fields-wrap.metadata.expect
new file mode 100644 (file)
index 0000000..323b9b4
--- /dev/null
@@ -0,0 +1,159 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 1;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } u1;
+               integer {
+                       signed = false;
+                       size = 3;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } u3;
+               integer {
+                       signed = false;
+                       size = 2;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } u2;
+               integer {
+                       signed = false;
+                       size = 5;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } u5;
+               integer {
+                       signed = false;
+                       size = 4;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } u4;
+               integer {
+                       signed = false;
+                       size = 7;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } u7;
+               integer {
+                       signed = false;
+                       size = 6;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } u6;
+               integer {
+                       signed = false;
+                       size = 23;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } u23;
+               integer {
+                       signed = false;
+                       size = 55;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } u55;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/int/uint-bit-fields.data.expect b/tests/tracing/expect/basic/int/uint-bit-fields.data.expect
new file mode 100644 (file)
index 0000000..249084d
Binary files /dev/null and b/tests/tracing/expect/basic/int/uint-bit-fields.data.expect differ
diff --git a/tests/tracing/expect/basic/int/uint-bit-fields.metadata.expect b/tests/tracing/expect/basic/int/uint-bit-fields.metadata.expect
new file mode 100644 (file)
index 0000000..323b9b4
--- /dev/null
@@ -0,0 +1,159 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 1;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } u1;
+               integer {
+                       signed = false;
+                       size = 3;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } u3;
+               integer {
+                       signed = false;
+                       size = 2;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } u2;
+               integer {
+                       signed = false;
+                       size = 5;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } u5;
+               integer {
+                       signed = false;
+                       size = 4;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } u4;
+               integer {
+                       signed = false;
+                       size = 7;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } u7;
+               integer {
+                       signed = false;
+                       size = 6;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } u6;
+               integer {
+                       signed = false;
+                       size = 23;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } u23;
+               integer {
+                       signed = false;
+                       size = 55;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } u55;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/int/uint16.data.expect b/tests/tracing/expect/basic/int/uint16.data.expect
new file mode 100644 (file)
index 0000000..9b0c479
Binary files /dev/null and b/tests/tracing/expect/basic/int/uint16.data.expect differ
diff --git a/tests/tracing/expect/basic/int/uint16.metadata.expect b/tests/tracing/expect/basic/int/uint16.metadata.expect
new file mode 100644 (file)
index 0000000..4624023
--- /dev/null
@@ -0,0 +1,103 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 16;
+                       align = 16;
+                       byte_order = native;
+                       base = 10;
+               } u;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/int/uint32.data.expect b/tests/tracing/expect/basic/int/uint32.data.expect
new file mode 100644 (file)
index 0000000..f4b9806
Binary files /dev/null and b/tests/tracing/expect/basic/int/uint32.data.expect differ
diff --git a/tests/tracing/expect/basic/int/uint32.metadata.expect b/tests/tracing/expect/basic/int/uint32.metadata.expect
new file mode 100644 (file)
index 0000000..f60c4d1
--- /dev/null
@@ -0,0 +1,103 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 32;
+                       byte_order = native;
+                       base = 10;
+               } u;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/int/uint64.data.expect b/tests/tracing/expect/basic/int/uint64.data.expect
new file mode 100644 (file)
index 0000000..f133608
Binary files /dev/null and b/tests/tracing/expect/basic/int/uint64.data.expect differ
diff --git a/tests/tracing/expect/basic/int/uint64.metadata.expect b/tests/tracing/expect/basic/int/uint64.metadata.expect
new file mode 100644 (file)
index 0000000..4bc74f9
--- /dev/null
@@ -0,0 +1,103 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 64;
+                       byte_order = native;
+                       base = 10;
+               } u;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/int/uint8.data.expect b/tests/tracing/expect/basic/int/uint8.data.expect
new file mode 100644 (file)
index 0000000..35dae12
Binary files /dev/null and b/tests/tracing/expect/basic/int/uint8.data.expect differ
diff --git a/tests/tracing/expect/basic/int/uint8.metadata.expect b/tests/tracing/expect/basic/int/uint8.metadata.expect
new file mode 100644 (file)
index 0000000..ea0b22e
--- /dev/null
@@ -0,0 +1,103 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 8;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } u;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/real/double.data.expect b/tests/tracing/expect/basic/real/double.data.expect
new file mode 100644 (file)
index 0000000..0909567
Binary files /dev/null and b/tests/tracing/expect/basic/real/double.data.expect differ
diff --git a/tests/tracing/expect/basic/real/double.metadata.expect b/tests/tracing/expect/basic/real/double.metadata.expect
new file mode 100644 (file)
index 0000000..aa87246
--- /dev/null
@@ -0,0 +1,102 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               floating_point {
+                       mant_dig = 53;
+                       exp_dig = 11;
+                       align = 64;
+                       byte_order = native;
+               } r;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/real/float.data.expect b/tests/tracing/expect/basic/real/float.data.expect
new file mode 100644 (file)
index 0000000..ad08679
Binary files /dev/null and b/tests/tracing/expect/basic/real/float.data.expect differ
diff --git a/tests/tracing/expect/basic/real/float.metadata.expect b/tests/tracing/expect/basic/real/float.metadata.expect
new file mode 100644 (file)
index 0000000..07e5fd4
--- /dev/null
@@ -0,0 +1,102 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               floating_point {
+                       mant_dig = 24;
+                       exp_dig = 8;
+                       align = 32;
+                       byte_order = native;
+               } r;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/static-array/nested-5-uint8.data.expect b/tests/tracing/expect/basic/static-array/nested-5-uint8.data.expect
new file mode 100644 (file)
index 0000000..f5709c9
Binary files /dev/null and b/tests/tracing/expect/basic/static-array/nested-5-uint8.data.expect differ
diff --git a/tests/tracing/expect/basic/static-array/nested-5-uint8.metadata.expect b/tests/tracing/expect/basic/static-array/nested-5-uint8.metadata.expect
new file mode 100644 (file)
index 0000000..09000e2
--- /dev/null
@@ -0,0 +1,103 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 8;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } array[2][2][2][2][2];
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/static-array/of-double.data.expect b/tests/tracing/expect/basic/static-array/of-double.data.expect
new file mode 100644 (file)
index 0000000..fb88dff
Binary files /dev/null and b/tests/tracing/expect/basic/static-array/of-double.data.expect differ
diff --git a/tests/tracing/expect/basic/static-array/of-double.metadata.expect b/tests/tracing/expect/basic/static-array/of-double.metadata.expect
new file mode 100644 (file)
index 0000000..aa9d31a
--- /dev/null
@@ -0,0 +1,102 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               floating_point {
+                       mant_dig = 53;
+                       exp_dig = 11;
+                       align = 64;
+                       byte_order = native;
+               } array[4];
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/static-array/of-static-array-of-double.data.expect b/tests/tracing/expect/basic/static-array/of-static-array-of-double.data.expect
new file mode 100644 (file)
index 0000000..ca0b3b6
Binary files /dev/null and b/tests/tracing/expect/basic/static-array/of-static-array-of-double.data.expect differ
diff --git a/tests/tracing/expect/basic/static-array/of-static-array-of-double.metadata.expect b/tests/tracing/expect/basic/static-array/of-static-array-of-double.metadata.expect
new file mode 100644 (file)
index 0000000..17393f9
--- /dev/null
@@ -0,0 +1,102 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               floating_point {
+                       mant_dig = 53;
+                       exp_dig = 11;
+                       align = 64;
+                       byte_order = native;
+               } array[2][3];
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/static-array/of-static-array-of-str.data.expect b/tests/tracing/expect/basic/static-array/of-static-array-of-str.data.expect
new file mode 100644 (file)
index 0000000..b697fed
Binary files /dev/null and b/tests/tracing/expect/basic/static-array/of-static-array-of-str.data.expect differ
diff --git a/tests/tracing/expect/basic/static-array/of-static-array-of-str.metadata.expect b/tests/tracing/expect/basic/static-array/of-static-array-of-str.metadata.expect
new file mode 100644 (file)
index 0000000..36ac918
--- /dev/null
@@ -0,0 +1,99 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               string {
+                       encoding = UTF8;
+               } array[2][3];
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/static-array/of-static-array-of-uint8.data.expect b/tests/tracing/expect/basic/static-array/of-static-array-of-uint8.data.expect
new file mode 100644 (file)
index 0000000..c1f475d
Binary files /dev/null and b/tests/tracing/expect/basic/static-array/of-static-array-of-uint8.data.expect differ
diff --git a/tests/tracing/expect/basic/static-array/of-static-array-of-uint8.metadata.expect b/tests/tracing/expect/basic/static-array/of-static-array-of-uint8.metadata.expect
new file mode 100644 (file)
index 0000000..80ea4e0
--- /dev/null
@@ -0,0 +1,103 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 8;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } array[2][3];
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/static-array/of-str.data.expect b/tests/tracing/expect/basic/static-array/of-str.data.expect
new file mode 100644 (file)
index 0000000..4628e39
Binary files /dev/null and b/tests/tracing/expect/basic/static-array/of-str.data.expect differ
diff --git a/tests/tracing/expect/basic/static-array/of-str.metadata.expect b/tests/tracing/expect/basic/static-array/of-str.metadata.expect
new file mode 100644 (file)
index 0000000..cc11968
--- /dev/null
@@ -0,0 +1,99 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               string {
+                       encoding = UTF8;
+               } array[3];
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/static-array/of-uint3-middle.data.expect b/tests/tracing/expect/basic/static-array/of-uint3-middle.data.expect
new file mode 100644 (file)
index 0000000..2174552
Binary files /dev/null and b/tests/tracing/expect/basic/static-array/of-uint3-middle.data.expect differ
diff --git a/tests/tracing/expect/basic/static-array/of-uint3-middle.metadata.expect b/tests/tracing/expect/basic/static-array/of-uint3-middle.metadata.expect
new file mode 100644 (file)
index 0000000..cce6b5a
--- /dev/null
@@ -0,0 +1,113 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 32;
+                       byte_order = native;
+                       base = 10;
+               } before;
+               integer {
+                       signed = false;
+                       size = 3;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } array[5];
+               string {
+                       encoding = UTF8;
+               } after;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/static-array/of-uint3.data.expect b/tests/tracing/expect/basic/static-array/of-uint3.data.expect
new file mode 100644 (file)
index 0000000..38032a8
Binary files /dev/null and b/tests/tracing/expect/basic/static-array/of-uint3.data.expect differ
diff --git a/tests/tracing/expect/basic/static-array/of-uint3.metadata.expect b/tests/tracing/expect/basic/static-array/of-uint3.metadata.expect
new file mode 100644 (file)
index 0000000..d40c895
--- /dev/null
@@ -0,0 +1,103 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 3;
+                       align = 1;
+                       byte_order = native;
+                       base = 10;
+               } array[5];
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/static-array/of-uint8.data.expect b/tests/tracing/expect/basic/static-array/of-uint8.data.expect
new file mode 100644 (file)
index 0000000..846d841
Binary files /dev/null and b/tests/tracing/expect/basic/static-array/of-uint8.data.expect differ
diff --git a/tests/tracing/expect/basic/static-array/of-uint8.metadata.expect b/tests/tracing/expect/basic/static-array/of-uint8.metadata.expect
new file mode 100644 (file)
index 0000000..82e2c2c
--- /dev/null
@@ -0,0 +1,103 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 8;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } array[7];
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/static-array/zero-len.data.expect b/tests/tracing/expect/basic/static-array/zero-len.data.expect
new file mode 100644 (file)
index 0000000..338d48c
Binary files /dev/null and b/tests/tracing/expect/basic/static-array/zero-len.data.expect differ
diff --git a/tests/tracing/expect/basic/static-array/zero-len.metadata.expect b/tests/tracing/expect/basic/static-array/zero-len.metadata.expect
new file mode 100644 (file)
index 0000000..d5b1c21
--- /dev/null
@@ -0,0 +1,117 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 8;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } before;
+               integer {
+                       signed = false;
+                       size = 8;
+                       align = 64;
+                       byte_order = native;
+                       base = 10;
+               } array[0];
+               integer {
+                       signed = false;
+                       size = 8;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } after;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/string/empty.data.expect b/tests/tracing/expect/basic/string/empty.data.expect
new file mode 100644 (file)
index 0000000..234702f
Binary files /dev/null and b/tests/tracing/expect/basic/string/empty.data.expect differ
diff --git a/tests/tracing/expect/basic/string/empty.metadata.expect b/tests/tracing/expect/basic/string/empty.metadata.expect
new file mode 100644 (file)
index 0000000..78e0d07
--- /dev/null
@@ -0,0 +1,99 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               string {
+                       encoding = UTF8;
+               } s;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/string/string.data.expect b/tests/tracing/expect/basic/string/string.data.expect
new file mode 100644 (file)
index 0000000..b754176
Binary files /dev/null and b/tests/tracing/expect/basic/string/string.data.expect differ
diff --git a/tests/tracing/expect/basic/string/string.metadata.expect b/tests/tracing/expect/basic/string/string.metadata.expect
new file mode 100644 (file)
index 0000000..78e0d07
--- /dev/null
@@ -0,0 +1,99 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               string {
+                       encoding = UTF8;
+               } s;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/struct/empty.data.expect b/tests/tracing/expect/basic/struct/empty.data.expect
new file mode 100644 (file)
index 0000000..d64c8b1
Binary files /dev/null and b/tests/tracing/expect/basic/struct/empty.data.expect differ
diff --git a/tests/tracing/expect/basic/struct/empty.metadata.expect b/tests/tracing/expect/basic/struct/empty.metadata.expect
new file mode 100644 (file)
index 0000000..d68d5dd
--- /dev/null
@@ -0,0 +1,96 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/struct/five-members.data.expect b/tests/tracing/expect/basic/struct/five-members.data.expect
new file mode 100644 (file)
index 0000000..95c0054
Binary files /dev/null and b/tests/tracing/expect/basic/struct/five-members.data.expect differ
diff --git a/tests/tracing/expect/basic/struct/five-members.metadata.expect b/tests/tracing/expect/basic/struct/five-members.metadata.expect
new file mode 100644 (file)
index 0000000..0c78783
--- /dev/null
@@ -0,0 +1,125 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               integer {
+                       signed = false;
+                       size = 8;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } m1;
+               floating_point {
+                       mant_dig = 53;
+                       exp_dig = 11;
+                       align = 64;
+                       byte_order = native;
+               } m2;
+               string {
+                       encoding = UTF8;
+               } m3;
+               floating_point {
+                       mant_dig = 24;
+                       exp_dig = 8;
+                       align = 32;
+                       byte_order = native;
+               } m4[4];
+               integer {
+                       signed = true;
+                       size = 32;
+                       align = 32;
+                       byte_order = native;
+                       base = 10;
+               } m5;
+       } align(1);
+};
diff --git a/tests/tracing/expect/basic/struct/one-member.data.expect b/tests/tracing/expect/basic/struct/one-member.data.expect
new file mode 100644 (file)
index 0000000..7014019
Binary files /dev/null and b/tests/tracing/expect/basic/struct/one-member.data.expect differ
diff --git a/tests/tracing/expect/basic/struct/one-member.metadata.expect b/tests/tracing/expect/basic/struct/one-member.metadata.expect
new file mode 100644 (file)
index 0000000..78e0d07
--- /dev/null
@@ -0,0 +1,99 @@
+/* CTF 1.8 */
+
+/*
+ * The MIT License (MIT)
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ *
+ *
+ * For more details, see <https://barectf.org/>.
+ */
+
+trace {
+       major = 1;
+       minor = 8;
+       byte_order = le;
+       packet.header := struct {
+               integer {
+                       signed = false;
+                       size = 32;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } magic;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } stream_id;
+       } align(8);
+};
+
+env {
+       domain = "bare";
+       tracer_name = "barectf";
+};
+
+/* Data stream type `default` */
+stream {
+       id = 0;
+       packet.context := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } packet_size;
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } content_size;
+       } align(8);
+       event.header := struct {
+               integer {
+                       signed = false;
+                       size = 64;
+                       align = 8;
+                       byte_order = native;
+                       base = 10;
+               } id;
+       } align(8);
+};
+
+event {
+       stream_id = 0;
+       id = 0;
+       name = "ev";
+       fields := struct {
+               string {
+                       encoding = UTF8;
+               } s;
+       } align(1);
+};
diff --git a/tests/tracing/expect/succeed/ds/two-packets.data.expect b/tests/tracing/expect/succeed/ds/two-packets.data.expect
deleted file mode 100644 (file)
index 13616e5..0000000
Binary files a/tests/tracing/expect/succeed/ds/two-packets.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/ds/two-packets.metadata.expect b/tests/tracing/expect/succeed/ds/two-packets.metadata.expect
deleted file mode 100644 (file)
index 78e0d07..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               string {
-                       encoding = UTF8;
-               } s;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/dynamic-array/nested-5-uint8.data.expect b/tests/tracing/expect/succeed/dynamic-array/nested-5-uint8.data.expect
deleted file mode 100644 (file)
index 24c17df..0000000
Binary files a/tests/tracing/expect/succeed/dynamic-array/nested-5-uint8.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/dynamic-array/nested-5-uint8.metadata.expect b/tests/tracing/expect/succeed/dynamic-array/nested-5-uint8.metadata.expect
deleted file mode 100644 (file)
index 45b613f..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } __array_len;
-               integer {
-                       signed = false;
-                       size = 8;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } array[__array_len][2][2][2][2];
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/dynamic-array/of-double.data.expect b/tests/tracing/expect/succeed/dynamic-array/of-double.data.expect
deleted file mode 100644 (file)
index f3a676a..0000000
Binary files a/tests/tracing/expect/succeed/dynamic-array/of-double.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/dynamic-array/of-double.metadata.expect b/tests/tracing/expect/succeed/dynamic-array/of-double.metadata.expect
deleted file mode 100644 (file)
index c503db0..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } __array_len;
-               floating_point {
-                       mant_dig = 53;
-                       exp_dig = 11;
-                       align = 64;
-                       byte_order = native;
-               } array[__array_len];
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/dynamic-array/of-static-array-of-double.data.expect b/tests/tracing/expect/succeed/dynamic-array/of-static-array-of-double.data.expect
deleted file mode 100644 (file)
index eb1afbb..0000000
Binary files a/tests/tracing/expect/succeed/dynamic-array/of-static-array-of-double.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/dynamic-array/of-static-array-of-double.metadata.expect b/tests/tracing/expect/succeed/dynamic-array/of-static-array-of-double.metadata.expect
deleted file mode 100644 (file)
index 6b82319..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } __array_len;
-               floating_point {
-                       mant_dig = 53;
-                       exp_dig = 11;
-                       align = 64;
-                       byte_order = native;
-               } array[__array_len][3];
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/dynamic-array/of-static-array-of-str.data.expect b/tests/tracing/expect/succeed/dynamic-array/of-static-array-of-str.data.expect
deleted file mode 100644 (file)
index 18fcf61..0000000
Binary files a/tests/tracing/expect/succeed/dynamic-array/of-static-array-of-str.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/dynamic-array/of-static-array-of-str.metadata.expect b/tests/tracing/expect/succeed/dynamic-array/of-static-array-of-str.metadata.expect
deleted file mode 100644 (file)
index 163743a..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } __array_len;
-               string {
-                       encoding = UTF8;
-               } array[__array_len][3];
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/dynamic-array/of-static-array-of-uint8.data.expect b/tests/tracing/expect/succeed/dynamic-array/of-static-array-of-uint8.data.expect
deleted file mode 100644 (file)
index 666db48..0000000
Binary files a/tests/tracing/expect/succeed/dynamic-array/of-static-array-of-uint8.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/dynamic-array/of-static-array-of-uint8.metadata.expect b/tests/tracing/expect/succeed/dynamic-array/of-static-array-of-uint8.metadata.expect
deleted file mode 100644 (file)
index 7eda6f2..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } __array_len;
-               integer {
-                       signed = false;
-                       size = 8;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } array[__array_len][3];
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/dynamic-array/of-str.data.expect b/tests/tracing/expect/succeed/dynamic-array/of-str.data.expect
deleted file mode 100644 (file)
index 04d3dfe..0000000
Binary files a/tests/tracing/expect/succeed/dynamic-array/of-str.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/dynamic-array/of-str.metadata.expect b/tests/tracing/expect/succeed/dynamic-array/of-str.metadata.expect
deleted file mode 100644 (file)
index 094bcfc..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } __array_len;
-               string {
-                       encoding = UTF8;
-               } array[__array_len];
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/dynamic-array/of-uint3-middle.data.expect b/tests/tracing/expect/succeed/dynamic-array/of-uint3-middle.data.expect
deleted file mode 100644 (file)
index 4748166..0000000
Binary files a/tests/tracing/expect/succeed/dynamic-array/of-uint3-middle.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/dynamic-array/of-uint3-middle.metadata.expect b/tests/tracing/expect/succeed/dynamic-array/of-uint3-middle.metadata.expect
deleted file mode 100644 (file)
index 9498de6..0000000
+++ /dev/null
@@ -1,120 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 32;
-                       byte_order = native;
-                       base = 10;
-               } before;
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } __array_len;
-               integer {
-                       signed = false;
-                       size = 3;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } array[__array_len];
-               string {
-                       encoding = UTF8;
-               } after;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/dynamic-array/of-uint3.data.expect b/tests/tracing/expect/succeed/dynamic-array/of-uint3.data.expect
deleted file mode 100644 (file)
index 3a1a314..0000000
Binary files a/tests/tracing/expect/succeed/dynamic-array/of-uint3.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/dynamic-array/of-uint3.metadata.expect b/tests/tracing/expect/succeed/dynamic-array/of-uint3.metadata.expect
deleted file mode 100644 (file)
index 9a6da78..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } __array_len;
-               integer {
-                       signed = false;
-                       size = 3;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } array[__array_len];
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/dynamic-array/of-uint8.data.expect b/tests/tracing/expect/succeed/dynamic-array/of-uint8.data.expect
deleted file mode 100644 (file)
index 2b856bf..0000000
Binary files a/tests/tracing/expect/succeed/dynamic-array/of-uint8.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/dynamic-array/of-uint8.metadata.expect b/tests/tracing/expect/succeed/dynamic-array/of-uint8.metadata.expect
deleted file mode 100644 (file)
index 71582ee..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } __array_len;
-               integer {
-                       signed = false;
-                       size = 8;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } array[__array_len];
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/dynamic-array/zero-len.data.expect b/tests/tracing/expect/succeed/dynamic-array/zero-len.data.expect
deleted file mode 100644 (file)
index 338d48c..0000000
Binary files a/tests/tracing/expect/succeed/dynamic-array/zero-len.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/dynamic-array/zero-len.metadata.expect b/tests/tracing/expect/succeed/dynamic-array/zero-len.metadata.expect
deleted file mode 100644 (file)
index 9d35f75..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 8;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } before;
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } __array_len;
-               integer {
-                       signed = false;
-                       size = 8;
-                       align = 64;
-                       byte_order = native;
-                       base = 10;
-               } array[__array_len];
-               integer {
-                       signed = false;
-                       size = 8;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } after;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/enum/senum16.data.expect b/tests/tracing/expect/succeed/enum/senum16.data.expect
deleted file mode 100644 (file)
index d51d842..0000000
Binary files a/tests/tracing/expect/succeed/enum/senum16.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/enum/senum16.metadata.expect b/tests/tracing/expect/succeed/enum/senum16.metadata.expect
deleted file mode 100644 (file)
index a954af7..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               enum : integer {
-                       signed = true;
-                       size = 16;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } {
-                       "A" = 0,
-               } e;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/enum/senum32.data.expect b/tests/tracing/expect/succeed/enum/senum32.data.expect
deleted file mode 100644 (file)
index 4b4e6ed..0000000
Binary files a/tests/tracing/expect/succeed/enum/senum32.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/enum/senum32.metadata.expect b/tests/tracing/expect/succeed/enum/senum32.metadata.expect
deleted file mode 100644 (file)
index 59d5276..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               enum : integer {
-                       signed = true;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } {
-                       "A" = 0,
-               } e;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/enum/senum64.data.expect b/tests/tracing/expect/succeed/enum/senum64.data.expect
deleted file mode 100644 (file)
index c0bad78..0000000
Binary files a/tests/tracing/expect/succeed/enum/senum64.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/enum/senum64.metadata.expect b/tests/tracing/expect/succeed/enum/senum64.metadata.expect
deleted file mode 100644 (file)
index 12c6ded..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               enum : integer {
-                       signed = true;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } {
-                       "A" = 0,
-               } e;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/enum/senum8.data.expect b/tests/tracing/expect/succeed/enum/senum8.data.expect
deleted file mode 100644 (file)
index bdde9fb..0000000
Binary files a/tests/tracing/expect/succeed/enum/senum8.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/enum/senum8.metadata.expect b/tests/tracing/expect/succeed/enum/senum8.metadata.expect
deleted file mode 100644 (file)
index ab45750..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               enum : integer {
-                       signed = true;
-                       size = 8;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } {
-                       "A" = 0,
-               } e;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/enum/uenum16.data.expect b/tests/tracing/expect/succeed/enum/uenum16.data.expect
deleted file mode 100644 (file)
index 9b0c479..0000000
Binary files a/tests/tracing/expect/succeed/enum/uenum16.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/enum/uenum16.metadata.expect b/tests/tracing/expect/succeed/enum/uenum16.metadata.expect
deleted file mode 100644 (file)
index 886c4da..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               enum : integer {
-                       signed = false;
-                       size = 16;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } {
-                       "A" = 0,
-               } e;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/enum/uenum32.data.expect b/tests/tracing/expect/succeed/enum/uenum32.data.expect
deleted file mode 100644 (file)
index f4b9806..0000000
Binary files a/tests/tracing/expect/succeed/enum/uenum32.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/enum/uenum32.metadata.expect b/tests/tracing/expect/succeed/enum/uenum32.metadata.expect
deleted file mode 100644 (file)
index 6699281..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               enum : integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } {
-                       "A" = 0,
-               } e;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/enum/uenum64.data.expect b/tests/tracing/expect/succeed/enum/uenum64.data.expect
deleted file mode 100644 (file)
index e831460..0000000
Binary files a/tests/tracing/expect/succeed/enum/uenum64.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/enum/uenum64.metadata.expect b/tests/tracing/expect/succeed/enum/uenum64.metadata.expect
deleted file mode 100644 (file)
index a43a1b1..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               enum : integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } {
-                       "A" = 0,
-               } e;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/enum/uenum8.data.expect b/tests/tracing/expect/succeed/enum/uenum8.data.expect
deleted file mode 100644 (file)
index 35dae12..0000000
Binary files a/tests/tracing/expect/succeed/enum/uenum8.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/enum/uenum8.metadata.expect b/tests/tracing/expect/succeed/enum/uenum8.metadata.expect
deleted file mode 100644 (file)
index 33d3633..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               enum : integer {
-                       signed = false;
-                       size = 8;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } {
-                       "A" = 0,
-               } e;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/int/sint-bit-fields-wrap.data.expect b/tests/tracing/expect/succeed/int/sint-bit-fields-wrap.data.expect
deleted file mode 100644 (file)
index 2a70287..0000000
Binary files a/tests/tracing/expect/succeed/int/sint-bit-fields-wrap.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/int/sint-bit-fields-wrap.metadata.expect b/tests/tracing/expect/succeed/int/sint-bit-fields-wrap.metadata.expect
deleted file mode 100644 (file)
index 872d1ce..0000000
+++ /dev/null
@@ -1,159 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = true;
-                       size = 1;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } i1;
-               integer {
-                       signed = true;
-                       size = 3;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } i3;
-               integer {
-                       signed = true;
-                       size = 2;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } i2;
-               integer {
-                       signed = true;
-                       size = 5;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } i5;
-               integer {
-                       signed = true;
-                       size = 4;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } i4;
-               integer {
-                       signed = true;
-                       size = 7;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } i7;
-               integer {
-                       signed = true;
-                       size = 6;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } i6;
-               integer {
-                       signed = true;
-                       size = 23;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } i23;
-               integer {
-                       signed = true;
-                       size = 55;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } i55;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/int/sint-bit-fields.data.expect b/tests/tracing/expect/succeed/int/sint-bit-fields.data.expect
deleted file mode 100644 (file)
index 5b54d71..0000000
Binary files a/tests/tracing/expect/succeed/int/sint-bit-fields.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/int/sint-bit-fields.metadata.expect b/tests/tracing/expect/succeed/int/sint-bit-fields.metadata.expect
deleted file mode 100644 (file)
index 872d1ce..0000000
+++ /dev/null
@@ -1,159 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = true;
-                       size = 1;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } i1;
-               integer {
-                       signed = true;
-                       size = 3;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } i3;
-               integer {
-                       signed = true;
-                       size = 2;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } i2;
-               integer {
-                       signed = true;
-                       size = 5;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } i5;
-               integer {
-                       signed = true;
-                       size = 4;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } i4;
-               integer {
-                       signed = true;
-                       size = 7;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } i7;
-               integer {
-                       signed = true;
-                       size = 6;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } i6;
-               integer {
-                       signed = true;
-                       size = 23;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } i23;
-               integer {
-                       signed = true;
-                       size = 55;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } i55;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/int/sint16.data.expect b/tests/tracing/expect/succeed/int/sint16.data.expect
deleted file mode 100644 (file)
index d51d842..0000000
Binary files a/tests/tracing/expect/succeed/int/sint16.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/int/sint16.metadata.expect b/tests/tracing/expect/succeed/int/sint16.metadata.expect
deleted file mode 100644 (file)
index c2bcbab..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = true;
-                       size = 16;
-                       align = 16;
-                       byte_order = native;
-                       base = 10;
-               } i;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/int/sint32.data.expect b/tests/tracing/expect/succeed/int/sint32.data.expect
deleted file mode 100644 (file)
index 4b4e6ed..0000000
Binary files a/tests/tracing/expect/succeed/int/sint32.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/int/sint32.metadata.expect b/tests/tracing/expect/succeed/int/sint32.metadata.expect
deleted file mode 100644 (file)
index 4867381..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = true;
-                       size = 32;
-                       align = 32;
-                       byte_order = native;
-                       base = 10;
-               } i;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/int/sint64.data.expect b/tests/tracing/expect/succeed/int/sint64.data.expect
deleted file mode 100644 (file)
index 29d6882..0000000
Binary files a/tests/tracing/expect/succeed/int/sint64.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/int/sint64.metadata.expect b/tests/tracing/expect/succeed/int/sint64.metadata.expect
deleted file mode 100644 (file)
index ec6910d..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = true;
-                       size = 64;
-                       align = 64;
-                       byte_order = native;
-                       base = 10;
-               } i;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/int/sint8.data.expect b/tests/tracing/expect/succeed/int/sint8.data.expect
deleted file mode 100644 (file)
index bdde9fb..0000000
Binary files a/tests/tracing/expect/succeed/int/sint8.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/int/sint8.metadata.expect b/tests/tracing/expect/succeed/int/sint8.metadata.expect
deleted file mode 100644 (file)
index bbe3199..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = true;
-                       size = 8;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } i;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/int/uint-bit-fields-wrap.data.expect b/tests/tracing/expect/succeed/int/uint-bit-fields-wrap.data.expect
deleted file mode 100644 (file)
index b5f5577..0000000
Binary files a/tests/tracing/expect/succeed/int/uint-bit-fields-wrap.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/int/uint-bit-fields-wrap.metadata.expect b/tests/tracing/expect/succeed/int/uint-bit-fields-wrap.metadata.expect
deleted file mode 100644 (file)
index 323b9b4..0000000
+++ /dev/null
@@ -1,159 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 1;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } u1;
-               integer {
-                       signed = false;
-                       size = 3;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } u3;
-               integer {
-                       signed = false;
-                       size = 2;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } u2;
-               integer {
-                       signed = false;
-                       size = 5;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } u5;
-               integer {
-                       signed = false;
-                       size = 4;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } u4;
-               integer {
-                       signed = false;
-                       size = 7;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } u7;
-               integer {
-                       signed = false;
-                       size = 6;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } u6;
-               integer {
-                       signed = false;
-                       size = 23;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } u23;
-               integer {
-                       signed = false;
-                       size = 55;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } u55;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/int/uint-bit-fields.data.expect b/tests/tracing/expect/succeed/int/uint-bit-fields.data.expect
deleted file mode 100644 (file)
index 249084d..0000000
Binary files a/tests/tracing/expect/succeed/int/uint-bit-fields.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/int/uint-bit-fields.metadata.expect b/tests/tracing/expect/succeed/int/uint-bit-fields.metadata.expect
deleted file mode 100644 (file)
index 323b9b4..0000000
+++ /dev/null
@@ -1,159 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 1;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } u1;
-               integer {
-                       signed = false;
-                       size = 3;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } u3;
-               integer {
-                       signed = false;
-                       size = 2;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } u2;
-               integer {
-                       signed = false;
-                       size = 5;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } u5;
-               integer {
-                       signed = false;
-                       size = 4;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } u4;
-               integer {
-                       signed = false;
-                       size = 7;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } u7;
-               integer {
-                       signed = false;
-                       size = 6;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } u6;
-               integer {
-                       signed = false;
-                       size = 23;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } u23;
-               integer {
-                       signed = false;
-                       size = 55;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } u55;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/int/uint16.data.expect b/tests/tracing/expect/succeed/int/uint16.data.expect
deleted file mode 100644 (file)
index 9b0c479..0000000
Binary files a/tests/tracing/expect/succeed/int/uint16.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/int/uint16.metadata.expect b/tests/tracing/expect/succeed/int/uint16.metadata.expect
deleted file mode 100644 (file)
index 4624023..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 16;
-                       align = 16;
-                       byte_order = native;
-                       base = 10;
-               } u;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/int/uint32.data.expect b/tests/tracing/expect/succeed/int/uint32.data.expect
deleted file mode 100644 (file)
index f4b9806..0000000
Binary files a/tests/tracing/expect/succeed/int/uint32.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/int/uint32.metadata.expect b/tests/tracing/expect/succeed/int/uint32.metadata.expect
deleted file mode 100644 (file)
index f60c4d1..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 32;
-                       byte_order = native;
-                       base = 10;
-               } u;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/int/uint64.data.expect b/tests/tracing/expect/succeed/int/uint64.data.expect
deleted file mode 100644 (file)
index f133608..0000000
Binary files a/tests/tracing/expect/succeed/int/uint64.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/int/uint64.metadata.expect b/tests/tracing/expect/succeed/int/uint64.metadata.expect
deleted file mode 100644 (file)
index 4bc74f9..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 64;
-                       byte_order = native;
-                       base = 10;
-               } u;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/int/uint8.data.expect b/tests/tracing/expect/succeed/int/uint8.data.expect
deleted file mode 100644 (file)
index 35dae12..0000000
Binary files a/tests/tracing/expect/succeed/int/uint8.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/int/uint8.metadata.expect b/tests/tracing/expect/succeed/int/uint8.metadata.expect
deleted file mode 100644 (file)
index ea0b22e..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 8;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } u;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/real/double.data.expect b/tests/tracing/expect/succeed/real/double.data.expect
deleted file mode 100644 (file)
index 0909567..0000000
Binary files a/tests/tracing/expect/succeed/real/double.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/real/double.metadata.expect b/tests/tracing/expect/succeed/real/double.metadata.expect
deleted file mode 100644 (file)
index aa87246..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               floating_point {
-                       mant_dig = 53;
-                       exp_dig = 11;
-                       align = 64;
-                       byte_order = native;
-               } r;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/real/float.data.expect b/tests/tracing/expect/succeed/real/float.data.expect
deleted file mode 100644 (file)
index ad08679..0000000
Binary files a/tests/tracing/expect/succeed/real/float.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/real/float.metadata.expect b/tests/tracing/expect/succeed/real/float.metadata.expect
deleted file mode 100644 (file)
index 07e5fd4..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               floating_point {
-                       mant_dig = 24;
-                       exp_dig = 8;
-                       align = 32;
-                       byte_order = native;
-               } r;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/static-array/nested-5-uint8.data.expect b/tests/tracing/expect/succeed/static-array/nested-5-uint8.data.expect
deleted file mode 100644 (file)
index f5709c9..0000000
Binary files a/tests/tracing/expect/succeed/static-array/nested-5-uint8.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/static-array/nested-5-uint8.metadata.expect b/tests/tracing/expect/succeed/static-array/nested-5-uint8.metadata.expect
deleted file mode 100644 (file)
index 09000e2..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 8;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } array[2][2][2][2][2];
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/static-array/of-double.data.expect b/tests/tracing/expect/succeed/static-array/of-double.data.expect
deleted file mode 100644 (file)
index fb88dff..0000000
Binary files a/tests/tracing/expect/succeed/static-array/of-double.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/static-array/of-double.metadata.expect b/tests/tracing/expect/succeed/static-array/of-double.metadata.expect
deleted file mode 100644 (file)
index aa9d31a..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               floating_point {
-                       mant_dig = 53;
-                       exp_dig = 11;
-                       align = 64;
-                       byte_order = native;
-               } array[4];
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/static-array/of-static-array-of-double.data.expect b/tests/tracing/expect/succeed/static-array/of-static-array-of-double.data.expect
deleted file mode 100644 (file)
index ca0b3b6..0000000
Binary files a/tests/tracing/expect/succeed/static-array/of-static-array-of-double.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/static-array/of-static-array-of-double.metadata.expect b/tests/tracing/expect/succeed/static-array/of-static-array-of-double.metadata.expect
deleted file mode 100644 (file)
index 17393f9..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               floating_point {
-                       mant_dig = 53;
-                       exp_dig = 11;
-                       align = 64;
-                       byte_order = native;
-               } array[2][3];
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/static-array/of-static-array-of-str.data.expect b/tests/tracing/expect/succeed/static-array/of-static-array-of-str.data.expect
deleted file mode 100644 (file)
index b697fed..0000000
Binary files a/tests/tracing/expect/succeed/static-array/of-static-array-of-str.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/static-array/of-static-array-of-str.metadata.expect b/tests/tracing/expect/succeed/static-array/of-static-array-of-str.metadata.expect
deleted file mode 100644 (file)
index 36ac918..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               string {
-                       encoding = UTF8;
-               } array[2][3];
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/static-array/of-static-array-of-uint8.data.expect b/tests/tracing/expect/succeed/static-array/of-static-array-of-uint8.data.expect
deleted file mode 100644 (file)
index c1f475d..0000000
Binary files a/tests/tracing/expect/succeed/static-array/of-static-array-of-uint8.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/static-array/of-static-array-of-uint8.metadata.expect b/tests/tracing/expect/succeed/static-array/of-static-array-of-uint8.metadata.expect
deleted file mode 100644 (file)
index 80ea4e0..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 8;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } array[2][3];
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/static-array/of-str.data.expect b/tests/tracing/expect/succeed/static-array/of-str.data.expect
deleted file mode 100644 (file)
index 4628e39..0000000
Binary files a/tests/tracing/expect/succeed/static-array/of-str.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/static-array/of-str.metadata.expect b/tests/tracing/expect/succeed/static-array/of-str.metadata.expect
deleted file mode 100644 (file)
index cc11968..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               string {
-                       encoding = UTF8;
-               } array[3];
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/static-array/of-uint3-middle.data.expect b/tests/tracing/expect/succeed/static-array/of-uint3-middle.data.expect
deleted file mode 100644 (file)
index 2174552..0000000
Binary files a/tests/tracing/expect/succeed/static-array/of-uint3-middle.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/static-array/of-uint3-middle.metadata.expect b/tests/tracing/expect/succeed/static-array/of-uint3-middle.metadata.expect
deleted file mode 100644 (file)
index cce6b5a..0000000
+++ /dev/null
@@ -1,113 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 32;
-                       byte_order = native;
-                       base = 10;
-               } before;
-               integer {
-                       signed = false;
-                       size = 3;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } array[5];
-               string {
-                       encoding = UTF8;
-               } after;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/static-array/of-uint3.data.expect b/tests/tracing/expect/succeed/static-array/of-uint3.data.expect
deleted file mode 100644 (file)
index 38032a8..0000000
Binary files a/tests/tracing/expect/succeed/static-array/of-uint3.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/static-array/of-uint3.metadata.expect b/tests/tracing/expect/succeed/static-array/of-uint3.metadata.expect
deleted file mode 100644 (file)
index d40c895..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 3;
-                       align = 1;
-                       byte_order = native;
-                       base = 10;
-               } array[5];
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/static-array/of-uint8.data.expect b/tests/tracing/expect/succeed/static-array/of-uint8.data.expect
deleted file mode 100644 (file)
index 846d841..0000000
Binary files a/tests/tracing/expect/succeed/static-array/of-uint8.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/static-array/of-uint8.metadata.expect b/tests/tracing/expect/succeed/static-array/of-uint8.metadata.expect
deleted file mode 100644 (file)
index 82e2c2c..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 8;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } array[7];
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/static-array/zero-len.data.expect b/tests/tracing/expect/succeed/static-array/zero-len.data.expect
deleted file mode 100644 (file)
index 338d48c..0000000
Binary files a/tests/tracing/expect/succeed/static-array/zero-len.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/static-array/zero-len.metadata.expect b/tests/tracing/expect/succeed/static-array/zero-len.metadata.expect
deleted file mode 100644 (file)
index d5b1c21..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 8;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } before;
-               integer {
-                       signed = false;
-                       size = 8;
-                       align = 64;
-                       byte_order = native;
-                       base = 10;
-               } array[0];
-               integer {
-                       signed = false;
-                       size = 8;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } after;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/string/empty.data.expect b/tests/tracing/expect/succeed/string/empty.data.expect
deleted file mode 100644 (file)
index 234702f..0000000
Binary files a/tests/tracing/expect/succeed/string/empty.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/string/empty.metadata.expect b/tests/tracing/expect/succeed/string/empty.metadata.expect
deleted file mode 100644 (file)
index 78e0d07..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               string {
-                       encoding = UTF8;
-               } s;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/string/string.data.expect b/tests/tracing/expect/succeed/string/string.data.expect
deleted file mode 100644 (file)
index b754176..0000000
Binary files a/tests/tracing/expect/succeed/string/string.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/string/string.metadata.expect b/tests/tracing/expect/succeed/string/string.metadata.expect
deleted file mode 100644 (file)
index 78e0d07..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               string {
-                       encoding = UTF8;
-               } s;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/struct/empty.data.expect b/tests/tracing/expect/succeed/struct/empty.data.expect
deleted file mode 100644 (file)
index d64c8b1..0000000
Binary files a/tests/tracing/expect/succeed/struct/empty.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/struct/empty.metadata.expect b/tests/tracing/expect/succeed/struct/empty.metadata.expect
deleted file mode 100644 (file)
index d68d5dd..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/struct/five-members.data.expect b/tests/tracing/expect/succeed/struct/five-members.data.expect
deleted file mode 100644 (file)
index 95c0054..0000000
Binary files a/tests/tracing/expect/succeed/struct/five-members.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/struct/five-members.metadata.expect b/tests/tracing/expect/succeed/struct/five-members.metadata.expect
deleted file mode 100644 (file)
index 0c78783..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               integer {
-                       signed = false;
-                       size = 8;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } m1;
-               floating_point {
-                       mant_dig = 53;
-                       exp_dig = 11;
-                       align = 64;
-                       byte_order = native;
-               } m2;
-               string {
-                       encoding = UTF8;
-               } m3;
-               floating_point {
-                       mant_dig = 24;
-                       exp_dig = 8;
-                       align = 32;
-                       byte_order = native;
-               } m4[4];
-               integer {
-                       signed = true;
-                       size = 32;
-                       align = 32;
-                       byte_order = native;
-                       base = 10;
-               } m5;
-       } align(1);
-};
diff --git a/tests/tracing/expect/succeed/struct/one-member.data.expect b/tests/tracing/expect/succeed/struct/one-member.data.expect
deleted file mode 100644 (file)
index 7014019..0000000
Binary files a/tests/tracing/expect/succeed/struct/one-member.data.expect and /dev/null differ
diff --git a/tests/tracing/expect/succeed/struct/one-member.metadata.expect b/tests/tracing/expect/succeed/struct/one-member.metadata.expect
deleted file mode 100644 (file)
index 78e0d07..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-/* CTF 1.8 */
-
-/*
- * The MIT License (MIT)
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- *
- *
- * For more details, see <https://barectf.org/>.
- */
-
-trace {
-       major = 1;
-       minor = 8;
-       byte_order = le;
-       packet.header := struct {
-               integer {
-                       signed = false;
-                       size = 32;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } magic;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } stream_id;
-       } align(8);
-};
-
-env {
-       domain = "bare";
-       tracer_name = "barectf";
-};
-
-/* Data stream type `default` */
-stream {
-       id = 0;
-       packet.context := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } packet_size;
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } content_size;
-       } align(8);
-       event.header := struct {
-               integer {
-                       signed = false;
-                       size = 64;
-                       align = 8;
-                       byte_order = native;
-                       base = 10;
-               } id;
-       } align(8);
-};
-
-event {
-       stream_id = 0;
-       id = 0;
-       name = "ev";
-       fields := struct {
-               string {
-                       encoding = UTF8;
-               } s;
-       } align(1);
-};
diff --git a/tests/tracing/src/basic/ds/two-packets.c b/tests/tracing/src/basic/ds/two-packets.c
new file mode 100644 (file)
index 0000000..e39c2a3
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(128);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
+               "The things you used to own, now they own you.");
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
+               "May I never be complete. May I never be content. May I never be perfect.");
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/dynamic-array/nested-5-uint8.c b/tests/tracing/src/basic/dynamic-array/nested-5-uint8.c
new file mode 100644 (file)
index 0000000..a8023f2
--- /dev/null
@@ -0,0 +1,72 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+       const uint8_t subsubsubsubarray1[] = {1, 2};
+       const uint8_t subsubsubsubarray2[] = {3, 4};
+       const uint8_t subsubsubsubarray3[] = {5, 6};
+       const uint8_t subsubsubsubarray4[] = {7, 8};
+       const uint8_t subsubsubsubarray5[] = {9, 10};
+       const uint8_t subsubsubsubarray6[] = {11, 12};
+       const uint8_t subsubsubsubarray7[] = {13, 14};
+       const uint8_t subsubsubsubarray8[] = {15, 16};
+       const uint8_t subsubsubsubarray9[] = {17, 18};
+       const uint8_t subsubsubsubarray10[] = {19, 20};
+       const uint8_t subsubsubsubarray11[] = {21, 22};
+       const uint8_t subsubsubsubarray12[] = {23, 24};
+       const uint8_t subsubsubsubarray13[] = {25, 26};
+       const uint8_t subsubsubsubarray14[] = {27, 28};
+       const uint8_t subsubsubsubarray15[] = {29, 30};
+       const uint8_t subsubsubsubarray16[] = {31, 32};
+       const uint8_t * const subsubsubarray1[] = {subsubsubsubarray1, subsubsubsubarray2};
+       const uint8_t * const subsubsubarray2[] = {subsubsubsubarray3, subsubsubsubarray4};
+       const uint8_t * const subsubsubarray3[] = {subsubsubsubarray5, subsubsubsubarray6};
+       const uint8_t * const subsubsubarray4[] = {subsubsubsubarray7, subsubsubsubarray8};
+       const uint8_t * const subsubsubarray5[] = {subsubsubsubarray9, subsubsubsubarray10};
+       const uint8_t * const subsubsubarray6[] = {subsubsubsubarray11, subsubsubsubarray12};
+       const uint8_t * const subsubsubarray7[] = {subsubsubsubarray13, subsubsubsubarray14};
+       const uint8_t * const subsubsubarray8[] = {subsubsubsubarray15, subsubsubsubarray16};
+       const uint8_t * const * const subsubarray1[] = {subsubsubarray1, subsubsubarray2};
+       const uint8_t * const * const subsubarray2[] = {subsubsubarray3, subsubsubarray4};
+       const uint8_t * const * const subsubarray3[] = {subsubsubarray5, subsubsubarray6};
+       const uint8_t * const * const subsubarray4[] = {subsubsubarray7, subsubsubarray8};
+       const uint8_t * const * const * const subarray1[] = {subsubarray1, subsubarray2};
+       const uint8_t * const * const * const subarray2[] = {subsubarray3, subsubarray4};
+       const uint8_t * const * const * const subarray3[] = {subsubarray1, subsubarray4};
+       const uint8_t * const * const * const * const array[] = {subarray1, subarray2, subarray3};
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 3, array);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/dynamic-array/of-double.c b/tests/tracing/src/basic/dynamic-array/of-double.c
new file mode 100644 (file)
index 0000000..0a0ff18
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+       const double array[] = {3.14, 6.62, 299792458., 0.2229};
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 4, array);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/dynamic-array/of-static-array-of-double.c b/tests/tracing/src/basic/dynamic-array/of-static-array-of-double.c
new file mode 100644 (file)
index 0000000..19364f2
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+       const double subarray1[] = {-17.5, 15.48, 1001.};
+       const double subarray2[] = {.1534, 555.555, 1e9};
+       const double * const array[] = {subarray1, subarray2, subarray1};
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 3, array);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/dynamic-array/of-static-array-of-str.c b/tests/tracing/src/basic/dynamic-array/of-static-array-of-str.c
new file mode 100644 (file)
index 0000000..51c16df
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+       const char * const str1[] = {"Officia", "sit", "labore"};
+       const char * const str2[] = {"Excepteur", "labore", "non"};
+       const char * const * const array[] = {str1, str2};
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 2, array);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/dynamic-array/of-static-array-of-uint8.c b/tests/tracing/src/basic/dynamic-array/of-static-array-of-uint8.c
new file mode 100644 (file)
index 0000000..6d0aadc
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+       const uint8_t subarray1[] = {1, 2, 3};
+       const uint8_t subarray2[] = {4, 5, 6};
+       const uint8_t * const array[] = {subarray1, subarray2, subarray1};
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 3, array);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/dynamic-array/of-str.c b/tests/tracing/src/basic/dynamic-array/of-str.c
new file mode 100644 (file)
index 0000000..97e94a7
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+       const char * const array[] = {"Lorem", "ipsum", "quis"};
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 3, array);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/dynamic-array/of-uint3-middle.c b/tests/tracing/src/basic/dynamic-array/of-uint3-middle.c
new file mode 100644 (file)
index 0000000..166f5d9
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+       const uint8_t array[] = {7, 5, 3, 2, 1};
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 123456,
+               5, array, "hello!");
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/dynamic-array/of-uint3.c b/tests/tracing/src/basic/dynamic-array/of-uint3.c
new file mode 100644 (file)
index 0000000..f9713eb
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+       const uint8_t array[] = {7, 5, 3, 2, 1, 0, 4};
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 7, array);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/dynamic-array/of-uint8.c b/tests/tracing/src/basic/dynamic-array/of-uint8.c
new file mode 100644 (file)
index 0000000..5ffa3b3
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+       const uint8_t array[] = {1, 1, 2, 3, 5, 8, 13};
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 7, array);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/dynamic-array/zero-len.c b/tests/tracing/src/basic/dynamic-array/zero-len.c
new file mode 100644 (file)
index 0000000..058ea88
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdlib.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 23,
+               0, NULL, 177);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/enum/senum16.c b/tests/tracing/src/basic/enum/senum16.c
new file mode 100644 (file)
index 0000000..a9a921c
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), -11111);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/enum/senum32.c b/tests/tracing/src/basic/enum/senum32.c
new file mode 100644 (file)
index 0000000..5f99643
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), -123456789);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/enum/senum64.c b/tests/tracing/src/basic/enum/senum64.c
new file mode 100644 (file)
index 0000000..8efb1b6
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
+               UINT64_C(-0xacedecadeadbeef));
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/enum/senum8.c b/tests/tracing/src/basic/enum/senum8.c
new file mode 100644 (file)
index 0000000..eccadd1
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), -128);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/enum/uenum16.c b/tests/tracing/src/basic/enum/uenum16.c
new file mode 100644 (file)
index 0000000..edc7753
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 27381);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/enum/uenum32.c b/tests/tracing/src/basic/enum/uenum32.c
new file mode 100644 (file)
index 0000000..8097baf
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 0xdeadbeef);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/enum/uenum64.c b/tests/tracing/src/basic/enum/uenum64.c
new file mode 100644 (file)
index 0000000..bf3ae5b
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
+               UINT64_C(0xfacedecadeadbeef));
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/enum/uenum8.c b/tests/tracing/src/basic/enum/uenum8.c
new file mode 100644 (file)
index 0000000..3b503d8
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 144);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/int/sint-bit-fields-wrap.c b/tests/tracing/src/basic/int/sint-bit-fields-wrap.c
new file mode 100644 (file)
index 0000000..710e55e
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
+               1, 4, 2, 16, 8, 64, 32, 4194304, UINT64_C(18014398509481984));
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/int/sint-bit-fields.c b/tests/tracing/src/basic/int/sint-bit-fields.c
new file mode 100644 (file)
index 0000000..715ca0f
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
+               -1, -3, 1, -6, 5, -50, 18, -2388132, UINT64_C(8712631872362));
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/int/sint16.c b/tests/tracing/src/basic/int/sint16.c
new file mode 100644 (file)
index 0000000..a9a921c
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), -11111);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/int/sint32.c b/tests/tracing/src/basic/int/sint32.c
new file mode 100644 (file)
index 0000000..5f99643
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), -123456789);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/int/sint64.c b/tests/tracing/src/basic/int/sint64.c
new file mode 100644 (file)
index 0000000..8efb1b6
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
+               UINT64_C(-0xacedecadeadbeef));
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/int/sint8.c b/tests/tracing/src/basic/int/sint8.c
new file mode 100644 (file)
index 0000000..eccadd1
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), -128);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/int/uint-bit-fields-wrap.c b/tests/tracing/src/basic/int/uint-bit-fields-wrap.c
new file mode 100644 (file)
index 0000000..0ba3020
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
+               2, 8, 4, 32, 16, 128, 64, 8388608, UINT64_C(36028797018963968));
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/int/uint-bit-fields.c b/tests/tracing/src/basic/int/uint-bit-fields.c
new file mode 100644 (file)
index 0000000..c9fcff3
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
+               1, 5, 3, 13, 9, 100, 45, 8388132, UINT64_C(36028797018963967));
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/int/uint16.c b/tests/tracing/src/basic/int/uint16.c
new file mode 100644 (file)
index 0000000..edc7753
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 27381);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/int/uint32.c b/tests/tracing/src/basic/int/uint32.c
new file mode 100644 (file)
index 0000000..8097baf
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 0xdeadbeef);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/int/uint64.c b/tests/tracing/src/basic/int/uint64.c
new file mode 100644 (file)
index 0000000..bf3ae5b
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
+               UINT64_C(0xfacedecadeadbeef));
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/int/uint8.c b/tests/tracing/src/basic/int/uint8.c
new file mode 100644 (file)
index 0000000..3b503d8
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 144);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/real/double.c b/tests/tracing/src/basic/real/double.c
new file mode 100644 (file)
index 0000000..8b6f6dd
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 3.1415926535);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/real/float.c b/tests/tracing/src/basic/real/float.c
new file mode 100644 (file)
index 0000000..bdc0ab2
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 3.1415926535f);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/static-array/nested-5-uint8.c b/tests/tracing/src/basic/static-array/nested-5-uint8.c
new file mode 100644 (file)
index 0000000..0bcd653
--- /dev/null
@@ -0,0 +1,71 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+       const uint8_t subsubsubsubarray1[] = {1, 2};
+       const uint8_t subsubsubsubarray2[] = {3, 4};
+       const uint8_t subsubsubsubarray3[] = {5, 6};
+       const uint8_t subsubsubsubarray4[] = {7, 8};
+       const uint8_t subsubsubsubarray5[] = {9, 10};
+       const uint8_t subsubsubsubarray6[] = {11, 12};
+       const uint8_t subsubsubsubarray7[] = {13, 14};
+       const uint8_t subsubsubsubarray8[] = {15, 16};
+       const uint8_t subsubsubsubarray9[] = {17, 18};
+       const uint8_t subsubsubsubarray10[] = {19, 20};
+       const uint8_t subsubsubsubarray11[] = {21, 22};
+       const uint8_t subsubsubsubarray12[] = {23, 24};
+       const uint8_t subsubsubsubarray13[] = {25, 26};
+       const uint8_t subsubsubsubarray14[] = {27, 28};
+       const uint8_t subsubsubsubarray15[] = {29, 30};
+       const uint8_t subsubsubsubarray16[] = {31, 32};
+       const uint8_t * const subsubsubarray1[] = {subsubsubsubarray1, subsubsubsubarray2};
+       const uint8_t * const subsubsubarray2[] = {subsubsubsubarray3, subsubsubsubarray4};
+       const uint8_t * const subsubsubarray3[] = {subsubsubsubarray5, subsubsubsubarray6};
+       const uint8_t * const subsubsubarray4[] = {subsubsubsubarray7, subsubsubsubarray8};
+       const uint8_t * const subsubsubarray5[] = {subsubsubsubarray9, subsubsubsubarray10};
+       const uint8_t * const subsubsubarray6[] = {subsubsubsubarray11, subsubsubsubarray12};
+       const uint8_t * const subsubsubarray7[] = {subsubsubsubarray13, subsubsubsubarray14};
+       const uint8_t * const subsubsubarray8[] = {subsubsubsubarray15, subsubsubsubarray16};
+       const uint8_t * const * const subsubarray1[] = {subsubsubarray1, subsubsubarray2};
+       const uint8_t * const * const subsubarray2[] = {subsubsubarray3, subsubsubarray4};
+       const uint8_t * const * const subsubarray3[] = {subsubsubarray5, subsubsubarray6};
+       const uint8_t * const * const subsubarray4[] = {subsubsubarray7, subsubsubarray8};
+       const uint8_t * const * const * const subarray1[] = {subsubarray1, subsubarray2};
+       const uint8_t * const * const * const subarray2[] = {subsubarray3, subsubarray4};
+       const uint8_t * const * const * const * const array[] = {subarray1, subarray2};
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), array);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/static-array/of-double.c b/tests/tracing/src/basic/static-array/of-double.c
new file mode 100644 (file)
index 0000000..9cbdebe
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+       const double array[] = {3.14, 6.62, 299792458., 0.2229};
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), array);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/static-array/of-static-array-of-double.c b/tests/tracing/src/basic/static-array/of-static-array-of-double.c
new file mode 100644 (file)
index 0000000..0b38d10
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+       const double subarray1[] = {-17.5, 15.48, 1001.};
+       const double subarray2[] = {.1534, 555.555, 1e9};
+       const double * const array[] = {subarray1, subarray2};
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), array);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/static-array/of-static-array-of-str.c b/tests/tracing/src/basic/static-array/of-static-array-of-str.c
new file mode 100644 (file)
index 0000000..ca98dc3
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+       const char * const str1[] = {"Officia", "sit", "labore"};
+       const char * const str2[] = {"Excepteur", "labore", "non"};
+       const char * const * const array[] = {str1, str2};
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), array);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/static-array/of-static-array-of-uint8.c b/tests/tracing/src/basic/static-array/of-static-array-of-uint8.c
new file mode 100644 (file)
index 0000000..d98cfa5
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+       const uint8_t subarray1[] = {1, 2, 3};
+       const uint8_t subarray2[] = {4, 5, 6};
+       const uint8_t * const array[] = {subarray1, subarray2};
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), array);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/static-array/of-str.c b/tests/tracing/src/basic/static-array/of-str.c
new file mode 100644 (file)
index 0000000..9f4d4d4
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+       const char * const array[] = {"Lorem", "ipsum", "quis"};
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), array);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/static-array/of-uint3-middle.c b/tests/tracing/src/basic/static-array/of-uint3-middle.c
new file mode 100644 (file)
index 0000000..25c8b86
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+       const uint8_t array[] = {7, 5, 3, 2, 1};
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 123456,
+               array, "hello!");
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/static-array/of-uint3.c b/tests/tracing/src/basic/static-array/of-uint3.c
new file mode 100644 (file)
index 0000000..32c4444
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+       const uint8_t array[] = {7, 5, 3, 2, 1};
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), array);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/static-array/of-uint8.c b/tests/tracing/src/basic/static-array/of-uint8.c
new file mode 100644 (file)
index 0000000..b27f1a8
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdint.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+       const uint8_t array[] = {1, 1, 2, 3, 5, 8, 13};
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), array);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/static-array/zero-len.c b/tests/tracing/src/basic/static-array/zero-len.c
new file mode 100644 (file)
index 0000000..457c15c
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <stdlib.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx *platform_ctx;
+
+       platform_ctx = test_platform_init(512);
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 23, NULL, 177);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/string/empty.c b/tests/tracing/src/basic/string/empty.c
new file mode 100644 (file)
index 0000000..de586b7
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), "");
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/string/string.c b/tests/tracing/src/basic/string/string.c
new file mode 100644 (file)
index 0000000..af3870f
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
+               "You are not special.");
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/struct/empty.c b/tests/tracing/src/basic/struct/empty.c
new file mode 100644 (file)
index 0000000..6b0cd23
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx));
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/struct/five-members.c b/tests/tracing/src/basic/struct/five-members.c
new file mode 100644 (file)
index 0000000..cf12cd7
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       const float array[] = {1.f, 2.5f, 1000.423f, -77.99f};
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 144,
+               123.456, "This was freedom. Losing all hope was freedom.",
+               array, -0xacebeef);
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/basic/struct/one-member.c b/tests/tracing/src/basic/struct/one-member.c
new file mode 100644 (file)
index 0000000..2dffdc0
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include <assert.h>
+
+#include "test-platform.h"
+#include "barectf.h"
+
+int main()
+{
+       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
+
+       assert(platform_ctx);
+       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
+               "The lower you fall, the higher you'll fly.");
+       test_platform_fini(platform_ctx);
+       return 0;
+}
diff --git a/tests/tracing/src/succeed/ds/two-packets.c b/tests/tracing/src/succeed/ds/two-packets.c
deleted file mode 100644 (file)
index e39c2a3..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(128);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
-               "The things you used to own, now they own you.");
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
-               "May I never be complete. May I never be content. May I never be perfect.");
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/dynamic-array/nested-5-uint8.c b/tests/tracing/src/succeed/dynamic-array/nested-5-uint8.c
deleted file mode 100644 (file)
index a8023f2..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-       const uint8_t subsubsubsubarray1[] = {1, 2};
-       const uint8_t subsubsubsubarray2[] = {3, 4};
-       const uint8_t subsubsubsubarray3[] = {5, 6};
-       const uint8_t subsubsubsubarray4[] = {7, 8};
-       const uint8_t subsubsubsubarray5[] = {9, 10};
-       const uint8_t subsubsubsubarray6[] = {11, 12};
-       const uint8_t subsubsubsubarray7[] = {13, 14};
-       const uint8_t subsubsubsubarray8[] = {15, 16};
-       const uint8_t subsubsubsubarray9[] = {17, 18};
-       const uint8_t subsubsubsubarray10[] = {19, 20};
-       const uint8_t subsubsubsubarray11[] = {21, 22};
-       const uint8_t subsubsubsubarray12[] = {23, 24};
-       const uint8_t subsubsubsubarray13[] = {25, 26};
-       const uint8_t subsubsubsubarray14[] = {27, 28};
-       const uint8_t subsubsubsubarray15[] = {29, 30};
-       const uint8_t subsubsubsubarray16[] = {31, 32};
-       const uint8_t * const subsubsubarray1[] = {subsubsubsubarray1, subsubsubsubarray2};
-       const uint8_t * const subsubsubarray2[] = {subsubsubsubarray3, subsubsubsubarray4};
-       const uint8_t * const subsubsubarray3[] = {subsubsubsubarray5, subsubsubsubarray6};
-       const uint8_t * const subsubsubarray4[] = {subsubsubsubarray7, subsubsubsubarray8};
-       const uint8_t * const subsubsubarray5[] = {subsubsubsubarray9, subsubsubsubarray10};
-       const uint8_t * const subsubsubarray6[] = {subsubsubsubarray11, subsubsubsubarray12};
-       const uint8_t * const subsubsubarray7[] = {subsubsubsubarray13, subsubsubsubarray14};
-       const uint8_t * const subsubsubarray8[] = {subsubsubsubarray15, subsubsubsubarray16};
-       const uint8_t * const * const subsubarray1[] = {subsubsubarray1, subsubsubarray2};
-       const uint8_t * const * const subsubarray2[] = {subsubsubarray3, subsubsubarray4};
-       const uint8_t * const * const subsubarray3[] = {subsubsubarray5, subsubsubarray6};
-       const uint8_t * const * const subsubarray4[] = {subsubsubarray7, subsubsubarray8};
-       const uint8_t * const * const * const subarray1[] = {subsubarray1, subsubarray2};
-       const uint8_t * const * const * const subarray2[] = {subsubarray3, subsubarray4};
-       const uint8_t * const * const * const subarray3[] = {subsubarray1, subsubarray4};
-       const uint8_t * const * const * const * const array[] = {subarray1, subarray2, subarray3};
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 3, array);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/dynamic-array/of-double.c b/tests/tracing/src/succeed/dynamic-array/of-double.c
deleted file mode 100644 (file)
index 0a0ff18..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-       const double array[] = {3.14, 6.62, 299792458., 0.2229};
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 4, array);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/dynamic-array/of-static-array-of-double.c b/tests/tracing/src/succeed/dynamic-array/of-static-array-of-double.c
deleted file mode 100644 (file)
index 19364f2..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-       const double subarray1[] = {-17.5, 15.48, 1001.};
-       const double subarray2[] = {.1534, 555.555, 1e9};
-       const double * const array[] = {subarray1, subarray2, subarray1};
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 3, array);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/dynamic-array/of-static-array-of-str.c b/tests/tracing/src/succeed/dynamic-array/of-static-array-of-str.c
deleted file mode 100644 (file)
index 51c16df..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-       const char * const str1[] = {"Officia", "sit", "labore"};
-       const char * const str2[] = {"Excepteur", "labore", "non"};
-       const char * const * const array[] = {str1, str2};
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 2, array);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/dynamic-array/of-static-array-of-uint8.c b/tests/tracing/src/succeed/dynamic-array/of-static-array-of-uint8.c
deleted file mode 100644 (file)
index 6d0aadc..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-       const uint8_t subarray1[] = {1, 2, 3};
-       const uint8_t subarray2[] = {4, 5, 6};
-       const uint8_t * const array[] = {subarray1, subarray2, subarray1};
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 3, array);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/dynamic-array/of-str.c b/tests/tracing/src/succeed/dynamic-array/of-str.c
deleted file mode 100644 (file)
index 97e94a7..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-       const char * const array[] = {"Lorem", "ipsum", "quis"};
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 3, array);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/dynamic-array/of-uint3-middle.c b/tests/tracing/src/succeed/dynamic-array/of-uint3-middle.c
deleted file mode 100644 (file)
index 166f5d9..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-       const uint8_t array[] = {7, 5, 3, 2, 1};
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 123456,
-               5, array, "hello!");
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/dynamic-array/of-uint3.c b/tests/tracing/src/succeed/dynamic-array/of-uint3.c
deleted file mode 100644 (file)
index f9713eb..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-       const uint8_t array[] = {7, 5, 3, 2, 1, 0, 4};
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 7, array);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/dynamic-array/of-uint8.c b/tests/tracing/src/succeed/dynamic-array/of-uint8.c
deleted file mode 100644 (file)
index 5ffa3b3..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-       const uint8_t array[] = {1, 1, 2, 3, 5, 8, 13};
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 7, array);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/dynamic-array/zero-len.c b/tests/tracing/src/succeed/dynamic-array/zero-len.c
deleted file mode 100644 (file)
index 058ea88..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdlib.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 23,
-               0, NULL, 177);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/enum/senum16.c b/tests/tracing/src/succeed/enum/senum16.c
deleted file mode 100644 (file)
index a9a921c..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), -11111);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/enum/senum32.c b/tests/tracing/src/succeed/enum/senum32.c
deleted file mode 100644 (file)
index 5f99643..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), -123456789);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/enum/senum64.c b/tests/tracing/src/succeed/enum/senum64.c
deleted file mode 100644 (file)
index 8efb1b6..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
-               UINT64_C(-0xacedecadeadbeef));
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/enum/senum8.c b/tests/tracing/src/succeed/enum/senum8.c
deleted file mode 100644 (file)
index eccadd1..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), -128);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/enum/uenum16.c b/tests/tracing/src/succeed/enum/uenum16.c
deleted file mode 100644 (file)
index edc7753..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 27381);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/enum/uenum32.c b/tests/tracing/src/succeed/enum/uenum32.c
deleted file mode 100644 (file)
index 8097baf..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 0xdeadbeef);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/enum/uenum64.c b/tests/tracing/src/succeed/enum/uenum64.c
deleted file mode 100644 (file)
index bf3ae5b..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
-               UINT64_C(0xfacedecadeadbeef));
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/enum/uenum8.c b/tests/tracing/src/succeed/enum/uenum8.c
deleted file mode 100644 (file)
index 3b503d8..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 144);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/int/sint-bit-fields-wrap.c b/tests/tracing/src/succeed/int/sint-bit-fields-wrap.c
deleted file mode 100644 (file)
index 710e55e..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
-               1, 4, 2, 16, 8, 64, 32, 4194304, UINT64_C(18014398509481984));
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/int/sint-bit-fields.c b/tests/tracing/src/succeed/int/sint-bit-fields.c
deleted file mode 100644 (file)
index 715ca0f..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
-               -1, -3, 1, -6, 5, -50, 18, -2388132, UINT64_C(8712631872362));
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/int/sint16.c b/tests/tracing/src/succeed/int/sint16.c
deleted file mode 100644 (file)
index a9a921c..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), -11111);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/int/sint32.c b/tests/tracing/src/succeed/int/sint32.c
deleted file mode 100644 (file)
index 5f99643..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), -123456789);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/int/sint64.c b/tests/tracing/src/succeed/int/sint64.c
deleted file mode 100644 (file)
index 8efb1b6..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
-               UINT64_C(-0xacedecadeadbeef));
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/int/sint8.c b/tests/tracing/src/succeed/int/sint8.c
deleted file mode 100644 (file)
index eccadd1..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), -128);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/int/uint-bit-fields-wrap.c b/tests/tracing/src/succeed/int/uint-bit-fields-wrap.c
deleted file mode 100644 (file)
index 0ba3020..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
-               2, 8, 4, 32, 16, 128, 64, 8388608, UINT64_C(36028797018963968));
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/int/uint-bit-fields.c b/tests/tracing/src/succeed/int/uint-bit-fields.c
deleted file mode 100644 (file)
index c9fcff3..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
-               1, 5, 3, 13, 9, 100, 45, 8388132, UINT64_C(36028797018963967));
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/int/uint16.c b/tests/tracing/src/succeed/int/uint16.c
deleted file mode 100644 (file)
index edc7753..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 27381);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/int/uint32.c b/tests/tracing/src/succeed/int/uint32.c
deleted file mode 100644 (file)
index 8097baf..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 0xdeadbeef);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/int/uint64.c b/tests/tracing/src/succeed/int/uint64.c
deleted file mode 100644 (file)
index bf3ae5b..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
-               UINT64_C(0xfacedecadeadbeef));
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/int/uint8.c b/tests/tracing/src/succeed/int/uint8.c
deleted file mode 100644 (file)
index 3b503d8..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 144);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/real/double.c b/tests/tracing/src/succeed/real/double.c
deleted file mode 100644 (file)
index 8b6f6dd..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 3.1415926535);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/real/float.c b/tests/tracing/src/succeed/real/float.c
deleted file mode 100644 (file)
index bdc0ab2..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 3.1415926535f);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/static-array/nested-5-uint8.c b/tests/tracing/src/succeed/static-array/nested-5-uint8.c
deleted file mode 100644 (file)
index 0bcd653..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-       const uint8_t subsubsubsubarray1[] = {1, 2};
-       const uint8_t subsubsubsubarray2[] = {3, 4};
-       const uint8_t subsubsubsubarray3[] = {5, 6};
-       const uint8_t subsubsubsubarray4[] = {7, 8};
-       const uint8_t subsubsubsubarray5[] = {9, 10};
-       const uint8_t subsubsubsubarray6[] = {11, 12};
-       const uint8_t subsubsubsubarray7[] = {13, 14};
-       const uint8_t subsubsubsubarray8[] = {15, 16};
-       const uint8_t subsubsubsubarray9[] = {17, 18};
-       const uint8_t subsubsubsubarray10[] = {19, 20};
-       const uint8_t subsubsubsubarray11[] = {21, 22};
-       const uint8_t subsubsubsubarray12[] = {23, 24};
-       const uint8_t subsubsubsubarray13[] = {25, 26};
-       const uint8_t subsubsubsubarray14[] = {27, 28};
-       const uint8_t subsubsubsubarray15[] = {29, 30};
-       const uint8_t subsubsubsubarray16[] = {31, 32};
-       const uint8_t * const subsubsubarray1[] = {subsubsubsubarray1, subsubsubsubarray2};
-       const uint8_t * const subsubsubarray2[] = {subsubsubsubarray3, subsubsubsubarray4};
-       const uint8_t * const subsubsubarray3[] = {subsubsubsubarray5, subsubsubsubarray6};
-       const uint8_t * const subsubsubarray4[] = {subsubsubsubarray7, subsubsubsubarray8};
-       const uint8_t * const subsubsubarray5[] = {subsubsubsubarray9, subsubsubsubarray10};
-       const uint8_t * const subsubsubarray6[] = {subsubsubsubarray11, subsubsubsubarray12};
-       const uint8_t * const subsubsubarray7[] = {subsubsubsubarray13, subsubsubsubarray14};
-       const uint8_t * const subsubsubarray8[] = {subsubsubsubarray15, subsubsubsubarray16};
-       const uint8_t * const * const subsubarray1[] = {subsubsubarray1, subsubsubarray2};
-       const uint8_t * const * const subsubarray2[] = {subsubsubarray3, subsubsubarray4};
-       const uint8_t * const * const subsubarray3[] = {subsubsubarray5, subsubsubarray6};
-       const uint8_t * const * const subsubarray4[] = {subsubsubarray7, subsubsubarray8};
-       const uint8_t * const * const * const subarray1[] = {subsubarray1, subsubarray2};
-       const uint8_t * const * const * const subarray2[] = {subsubarray3, subsubarray4};
-       const uint8_t * const * const * const * const array[] = {subarray1, subarray2};
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), array);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/static-array/of-double.c b/tests/tracing/src/succeed/static-array/of-double.c
deleted file mode 100644 (file)
index 9cbdebe..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-       const double array[] = {3.14, 6.62, 299792458., 0.2229};
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), array);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/static-array/of-static-array-of-double.c b/tests/tracing/src/succeed/static-array/of-static-array-of-double.c
deleted file mode 100644 (file)
index 0b38d10..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-       const double subarray1[] = {-17.5, 15.48, 1001.};
-       const double subarray2[] = {.1534, 555.555, 1e9};
-       const double * const array[] = {subarray1, subarray2};
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), array);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/static-array/of-static-array-of-str.c b/tests/tracing/src/succeed/static-array/of-static-array-of-str.c
deleted file mode 100644 (file)
index ca98dc3..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-       const char * const str1[] = {"Officia", "sit", "labore"};
-       const char * const str2[] = {"Excepteur", "labore", "non"};
-       const char * const * const array[] = {str1, str2};
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), array);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/static-array/of-static-array-of-uint8.c b/tests/tracing/src/succeed/static-array/of-static-array-of-uint8.c
deleted file mode 100644 (file)
index d98cfa5..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-       const uint8_t subarray1[] = {1, 2, 3};
-       const uint8_t subarray2[] = {4, 5, 6};
-       const uint8_t * const array[] = {subarray1, subarray2};
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), array);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/static-array/of-str.c b/tests/tracing/src/succeed/static-array/of-str.c
deleted file mode 100644 (file)
index 9f4d4d4..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-       const char * const array[] = {"Lorem", "ipsum", "quis"};
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), array);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/static-array/of-uint3-middle.c b/tests/tracing/src/succeed/static-array/of-uint3-middle.c
deleted file mode 100644 (file)
index 25c8b86..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-       const uint8_t array[] = {7, 5, 3, 2, 1};
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 123456,
-               array, "hello!");
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/static-array/of-uint3.c b/tests/tracing/src/succeed/static-array/of-uint3.c
deleted file mode 100644 (file)
index 32c4444..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-       const uint8_t array[] = {7, 5, 3, 2, 1};
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), array);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/static-array/of-uint8.c b/tests/tracing/src/succeed/static-array/of-uint8.c
deleted file mode 100644 (file)
index b27f1a8..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdint.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-       const uint8_t array[] = {1, 1, 2, 3, 5, 8, 13};
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), array);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/static-array/zero-len.c b/tests/tracing/src/succeed/static-array/zero-len.c
deleted file mode 100644 (file)
index 457c15c..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdlib.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx *platform_ctx;
-
-       platform_ctx = test_platform_init(512);
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 23, NULL, 177);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/string/empty.c b/tests/tracing/src/succeed/string/empty.c
deleted file mode 100644 (file)
index de586b7..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), "");
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/string/string.c b/tests/tracing/src/succeed/string/string.c
deleted file mode 100644 (file)
index af3870f..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
-               "You are not special.");
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/struct/empty.c b/tests/tracing/src/succeed/struct/empty.c
deleted file mode 100644 (file)
index 6b0cd23..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx));
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/struct/five-members.c b/tests/tracing/src/succeed/struct/five-members.c
deleted file mode 100644 (file)
index cf12cd7..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       const float array[] = {1.f, 2.5f, 1000.423f, -77.99f};
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx), 144,
-               123.456, "This was freedom. Losing all hope was freedom.",
-               array, -0xacebeef);
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/src/succeed/struct/one-member.c b/tests/tracing/src/succeed/struct/one-member.c
deleted file mode 100644 (file)
index 2dffdc0..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include <assert.h>
-
-#include "test-platform.h"
-#include "barectf.h"
-
-int main()
-{
-       struct test_platform_ctx * const platform_ctx = test_platform_init(512);
-
-       assert(platform_ctx);
-       barectf_trace_ev(test_platform_barectf_ctx(platform_ctx),
-               "The lower you fall, the higher you'll fly.");
-       test_platform_fini(platform_ctx);
-       return 0;
-}
diff --git a/tests/tracing/support/Makefile b/tests/tracing/support/Makefile
deleted file mode 100644 (file)
index a572962..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-# The MIT License (MIT)
-#
-# Copyright (c) 2016-2020 Philippe Proulx <pproulx@efficios.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-CFLAGS += -O0 -g -Wall -pedantic -Wno-unused-function
-TARGET = test
-OBJS = $(TARGET).o barectf.o test-platform.o
-
-$(TARGET): $(OBJS)
-       $(CC) -o $@ $(LDFLAGS) $^
-
-barectf.o: barectf.c
-       $(CC) $(CFLAGS) -ansi -c $<
diff --git a/tests/tracing/support/base.yaml b/tests/tracing/support/base.yaml
deleted file mode 100644 (file)
index 6c56d9e..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-native-byte-order: le
-data-stream-types:
-  default:
-    $is-default: true
-    $features:
-      packet:
-        discarded-event-records-counter-snapshot-field-type: false
diff --git a/tests/tracing/support/basic/Makefile b/tests/tracing/support/basic/Makefile
new file mode 100644 (file)
index 0000000..a572962
--- /dev/null
@@ -0,0 +1,31 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2016-2020 Philippe Proulx <pproulx@efficios.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+CFLAGS += -O0 -g -Wall -pedantic -Wno-unused-function
+TARGET = test
+OBJS = $(TARGET).o barectf.o test-platform.o
+
+$(TARGET): $(OBJS)
+       $(CC) -o $@ $(LDFLAGS) $^
+
+barectf.o: barectf.c
+       $(CC) $(CFLAGS) -ansi -c $<
diff --git a/tests/tracing/support/basic/base.yaml b/tests/tracing/support/basic/base.yaml
new file mode 100644 (file)
index 0000000..6c56d9e
--- /dev/null
@@ -0,0 +1,7 @@
+native-byte-order: le
+data-stream-types:
+  default:
+    $is-default: true
+    $features:
+      packet:
+        discarded-event-records-counter-snapshot-field-type: false
diff --git a/tests/tracing/support/basic/test-platform.c b/tests/tracing/support/basic/test-platform.c
new file mode 100644 (file)
index 0000000..9fd6d0e
--- /dev/null
@@ -0,0 +1,104 @@
+/*
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <string.h>
+#include <assert.h>
+
+#include "barectf.h"
+#include "test-platform.h"
+
+struct test_platform_ctx {
+       struct barectf_default_ctx ctx;
+       FILE *fh;
+};
+
+static void write_packet(struct test_platform_ctx * const platform_ctx)
+{
+       const size_t nmemb = fwrite(barectf_packet_buf(&platform_ctx->ctx),
+               barectf_packet_buf_size(&platform_ctx->ctx), 1,
+                       platform_ctx->fh);
+
+       assert(nmemb == 1);
+}
+
+static int is_backend_full(void * const data)
+{
+       return 0;
+}
+
+static void open_packet(void * const data)
+{
+       struct test_platform_ctx * const platform_ctx = (void *) data;
+
+       memset(barectf_packet_buf(&platform_ctx->ctx), 0,
+               barectf_packet_buf_size(&platform_ctx->ctx));
+       barectf_default_open_packet(&platform_ctx->ctx);
+}
+
+static void close_packet(void * const data)
+{
+       struct test_platform_ctx * const platform_ctx = (void *) data;
+
+       barectf_default_close_packet(&platform_ctx->ctx);
+       write_packet(platform_ctx);
+}
+
+struct test_platform_ctx *test_platform_init(const size_t buf_size)
+{
+       uint8_t *buf;
+       struct test_platform_ctx *platform_ctx;
+       struct barectf_platform_callbacks cbs;
+
+       cbs.is_backend_full = is_backend_full;
+       cbs.open_packet = open_packet;
+       cbs.close_packet = close_packet;
+       platform_ctx = malloc(sizeof(*platform_ctx));
+       assert(platform_ctx);
+       buf = malloc(buf_size);
+       assert(buf);
+       platform_ctx->fh = fopen("stream", "wb");
+       assert(platform_ctx->fh);
+       barectf_init(&platform_ctx->ctx, buf, buf_size, cbs, platform_ctx);
+       open_packet(platform_ctx);
+       return platform_ctx;
+}
+
+void test_platform_fini(struct test_platform_ctx * const platform_ctx)
+{
+       if (barectf_packet_is_open(&platform_ctx->ctx) &&
+                       !barectf_packet_is_empty(&platform_ctx->ctx)) {
+               close_packet(platform_ctx);
+       }
+
+       fclose(platform_ctx->fh);
+       free(barectf_packet_buf(&platform_ctx->ctx));
+       free(platform_ctx);
+}
+
+struct barectf_default_ctx *test_platform_barectf_ctx(
+       struct test_platform_ctx * const platform_ctx)
+{
+       return &platform_ctx->ctx;
+}
diff --git a/tests/tracing/support/basic/test-platform.h b/tests/tracing/support/basic/test-platform.h
new file mode 100644 (file)
index 0000000..7bd857e
--- /dev/null
@@ -0,0 +1,36 @@
+#ifndef _BARECTF_TEST_PLATFORM_H
+#define _BARECTF_TEST_PLATFORM_H
+
+/*
+ * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+#include <stdlib.h>
+
+struct test_platform_ctx;
+struct barectf_default_ctx;
+
+struct test_platform_ctx *test_platform_init(size_t buf_size);
+void test_platform_fini(struct test_platform_ctx *ctx);
+struct barectf_default_ctx *test_platform_barectf_ctx(
+       struct test_platform_ctx *ctx);
+
+#endif /* _BARECTF_TEST_PLATFORM_H */
diff --git a/tests/tracing/support/test-platform.c b/tests/tracing/support/test-platform.c
deleted file mode 100644 (file)
index 9fd6d0e..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-/*
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdint.h>
-#include <string.h>
-#include <assert.h>
-
-#include "barectf.h"
-#include "test-platform.h"
-
-struct test_platform_ctx {
-       struct barectf_default_ctx ctx;
-       FILE *fh;
-};
-
-static void write_packet(struct test_platform_ctx * const platform_ctx)
-{
-       const size_t nmemb = fwrite(barectf_packet_buf(&platform_ctx->ctx),
-               barectf_packet_buf_size(&platform_ctx->ctx), 1,
-                       platform_ctx->fh);
-
-       assert(nmemb == 1);
-}
-
-static int is_backend_full(void * const data)
-{
-       return 0;
-}
-
-static void open_packet(void * const data)
-{
-       struct test_platform_ctx * const platform_ctx = (void *) data;
-
-       memset(barectf_packet_buf(&platform_ctx->ctx), 0,
-               barectf_packet_buf_size(&platform_ctx->ctx));
-       barectf_default_open_packet(&platform_ctx->ctx);
-}
-
-static void close_packet(void * const data)
-{
-       struct test_platform_ctx * const platform_ctx = (void *) data;
-
-       barectf_default_close_packet(&platform_ctx->ctx);
-       write_packet(platform_ctx);
-}
-
-struct test_platform_ctx *test_platform_init(const size_t buf_size)
-{
-       uint8_t *buf;
-       struct test_platform_ctx *platform_ctx;
-       struct barectf_platform_callbacks cbs;
-
-       cbs.is_backend_full = is_backend_full;
-       cbs.open_packet = open_packet;
-       cbs.close_packet = close_packet;
-       platform_ctx = malloc(sizeof(*platform_ctx));
-       assert(platform_ctx);
-       buf = malloc(buf_size);
-       assert(buf);
-       platform_ctx->fh = fopen("stream", "wb");
-       assert(platform_ctx->fh);
-       barectf_init(&platform_ctx->ctx, buf, buf_size, cbs, platform_ctx);
-       open_packet(platform_ctx);
-       return platform_ctx;
-}
-
-void test_platform_fini(struct test_platform_ctx * const platform_ctx)
-{
-       if (barectf_packet_is_open(&platform_ctx->ctx) &&
-                       !barectf_packet_is_empty(&platform_ctx->ctx)) {
-               close_packet(platform_ctx);
-       }
-
-       fclose(platform_ctx->fh);
-       free(barectf_packet_buf(&platform_ctx->ctx));
-       free(platform_ctx);
-}
-
-struct barectf_default_ctx *test_platform_barectf_ctx(
-       struct test_platform_ctx * const platform_ctx)
-{
-       return &platform_ctx->ctx;
-}
diff --git a/tests/tracing/support/test-platform.h b/tests/tracing/support/test-platform.h
deleted file mode 100644 (file)
index 7bd857e..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#ifndef _BARECTF_TEST_PLATFORM_H
-#define _BARECTF_TEST_PLATFORM_H
-
-/*
- * Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-#include <stdlib.h>
-
-struct test_platform_ctx;
-struct barectf_default_ctx;
-
-struct test_platform_ctx *test_platform_init(size_t buf_size);
-void test_platform_fini(struct test_platform_ctx *ctx);
-struct barectf_default_ctx *test_platform_barectf_ctx(
-       struct test_platform_ctx *ctx);
-
-#endif /* _BARECTF_TEST_PLATFORM_H */
This page took 0.292524 seconds and 4 git commands to generate.