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)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 12 Aug 2019 02:19:51 +0000 (22:19 -0400)
commit216b7cc7012d58632a085d2813f1573f09532ac5
tree594ab0ade0875c794f745fb42ff405c0d3e8e732
parentea458b95e10c319e47b8c6e70395b147066b2357
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.025627 seconds and 4 git commands to generate.