Tests: sink.text.pretty: Add unit tests for enum fields printing
authorGeneviève Bastien <gbastien@versatic.net>
Wed, 26 Feb 2020 20:49:57 +0000 (15:49 -0500)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 6 Aug 2020 18:24:48 +0000 (14:24 -0400)
commited30eb8d59e3bc1d26808d3414a1fbc5f8bb23d8
treef16ec7b7338c845697c88e787f754b4c2296d9aa
parent101fde11a54b96fcc2e2bb63e55a0d44162642e4
Tests: sink.text.pretty: Add unit tests for enum fields printing

Adds a Python component class who creates an event class with an enum
field that contains the enumeration described by the test caller. The
script iterator has a single event with a value also sent in parameter.

The tests themselves are run from a bash script, for signed/unsigned
values.

This commit also renames the existing `test_pretty` test file to
`test_pretty_python` to control all future Python tests for the
`sink.text.pretty` component class.

Change-Id: I3f631224dd3bdf21dbb2ef2d233c9f2dc8da43fa
Signed-off-by: Geneviève Bastien <gbastien@versatic.net>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/3149
CI-Build: Francis Deslauriers <francis.deslauriers@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
configure.ac
tests/Makefile.am
tests/data/plugins/sink.text.pretty/bt_plugin_pretty_test.py [new file with mode: 0644]
tests/plugins/Makefile.am
tests/plugins/sink.text.pretty/Makefile.am [new file with mode: 0644]
tests/plugins/sink.text.pretty/test_enum [new file with mode: 0755]
tests/plugins/sink.text.pretty/test_pretty [deleted file]
tests/plugins/sink.text.pretty/test_pretty_python [new file with mode: 0755]
tests/utils/python/split_sort_compare.py [new file with mode: 0644]
This page took 0.024611 seconds and 4 git commands to generate.