Add basic `sink.text.details` tests
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 20 Sep 2019 09:18:36 +0000 (05:18 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 25 Sep 2019 02:36:57 +0000 (22:36 -0400)
commit54d785facc63ded43f23e60b8acb46250d82cfbe
tree8c53ebb7a2d830c86bf94f3427b884bc1a253ada
parent340be5dd408640e5b2fd3fe3cbe22ec64bbe79d8
Add basic `sink.text.details` tests

This patch adds very basic `sink.text.details` tests to at least keep
track of the generated text's format. The tests test each initialization
parameter individually, and some combined with `compact=yes`.

As of this patch, all tests pass `with-stream-name=no` to initialize the
`sink.text.details` component because the `src.ctf.fs` component uses
absolute paths to set stream names and this is not compatible with
static expectation files.

Future tests should use a custom source to check how `sink.text.details`
writes the stream name property.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I79c4956e5d67dd922130443992de9daef2974f4e
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2075
CI-Build: Simon Marchi <simon.marchi@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
12 files changed:
tests/Makefile.am
tests/data/plugins/sink.text.details/succeed/default-compact-without-metadata.expect [new file with mode: 0644]
tests/data/plugins/sink.text.details/succeed/default-compact-without-time.expect [new file with mode: 0644]
tests/data/plugins/sink.text.details/succeed/default-compact.expect [new file with mode: 0644]
tests/data/plugins/sink.text.details/succeed/default-without-metadata.expect [new file with mode: 0644]
tests/data/plugins/sink.text.details/succeed/default-without-names.expect [new file with mode: 0644]
tests/data/plugins/sink.text.details/succeed/default-without-time.expect [new file with mode: 0644]
tests/data/plugins/sink.text.details/succeed/default-without-trace-name.expect [new file with mode: 0644]
tests/data/plugins/sink.text.details/succeed/default-without-uuid.expect [new file with mode: 0644]
tests/data/plugins/sink.text.details/succeed/default.expect [new file with mode: 0644]
tests/data/plugins/sink.text.details/succeed/no-packet-context.expect [new file with mode: 0644]
tests/plugins/sink.text.details/succeed/test_succeed [new file with mode: 0755]
This page took 0.024539 seconds and 4 git commands to generate.