Add basic `sink.text.details` tests
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 20 Sep 2019 09:18:36 +0000 (05:18 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 3 Oct 2019 14:45:10 +0000 (10:45 -0400)
commit7b6519c7f453e1e1cfb997277feb65427fec7b7d
treede25d331da3aaaf1d36032bccb669b21a01b6aac
parentb9c58eba878bbcbeb521acd20228f4c74fc1c9fc
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.02606 seconds and 4 git commands to generate.