tests: improve flt.utils.trimmer/test_trimming to test streams without packets
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 17 Feb 2020 22:30:59 +0000 (17:30 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 19 Feb 2020 20:22:13 +0000 (15:22 -0500)
commite90ed87f10f39cabed0190ac06cfc3f4bfae73f0
tree167f4481a2e08fdefef91d60dc3d356581aa5055
parent21f6a44aa276c89662ff38acd13d84239493d6de
tests: improve flt.utils.trimmer/test_trimming to test streams without packets

Augment the test to make it test streams without packet support.  A new
parameter 'with-packet-msgs' must be passed to the test source component to
control whether it will emit packet messages.

There are now two configuration axis in this test (with and without
stream message clock snapshots, with and without packet messages), which
gives 4 configurations.  I think it's still manageable to have them all
written explicitly.  However, if we are to add a third configuration
axis, I think we'll need to refactor the test to avoid having all the
expected outputs written explicitly, as it will become too big to be
manageable.

Change-Id: I0b488aa3f1506e9d43f320c1643a65db5317d63c
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/3106
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
tests/data/plugins/flt.utils.trimmer/bt_plugin_trimmer_test.py
tests/plugins/flt.utils.trimmer/test_trimming
This page took 0.025385 seconds and 4 git commands to generate.