tests: make auto-source-discovery-grouping test use sink.text.details
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 9 Aug 2019 20:08:37 +0000 (16:08 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 4 Sep 2019 15:58:21 +0000 (11:58 -0400)
commit66024189190ae3795cafb8fa079389b61d252c41
tree2f45f3564599047602bbe3208f4bc6fbea916c0c
parent059e408b7bfaa119a2bc9264891496230f912079
tests: make auto-source-discovery-grouping test use sink.text.details

This patch changes the way that test component classes for the auto
source discovery grouping CLI test reports the inputs passed to each
instantiated component.

Currently, they print to stdout the input names
in the components' __init__.  That is then check by the test script
(test_auto_source_discovery_grouping).  The
TraceCollectionMessageIterator class in the Python bindings will soon
have the capability to automatically discover source components.
However, it's not practical to use the same test method in Python.

To facilitate this, make the test component classes report the inputs
they receive by sending a stream beginning message, where the stream
name contains the input names.  The eventual Python test will be able to
inspect the stream name to validate that the right inputs were passed to
each component.

Since the information is now passed in messages, the
test_auto_source_discovery_grouping test now uses the details sink.

Change-Id: Ie5c12e390f5b68fb50a6d18c53463860fb7a1c99
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1863
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
tests/cli/convert/test_auto_source_discovery_grouping
tests/data/cli/convert/auto-source-discovery-grouping/bt_plugin_test.py
tests/data/cli/convert/auto-source-discovery-grouping/stdout.expect [new file with mode: 0644]
This page took 0.025737 seconds and 4 git commands to generate.