tests: Rework test suite
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 17 Jun 2019 20:48:02 +0000 (16:48 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 28 Jun 2019 19:37:34 +0000 (15:37 -0400)
commit644e036445497ef69ccf946f0700da20a5bae84f
tree419da5db9c54186951b7ec8ecea1d6749bb1c373
parent86f0fb5572a6a96b815793f7e39901047aac2ba9
tests: Rework test suite

  * Test script are not generated by autoconf anymore, instead the
    parameters are passed trought a set of environment variable prefixed
    with BT_TESTS_. This will enable the test suite to be used against
    a system installed version of babeltrace with minimal configuration.
  * Move all duplicated shell script code to 'utils.sh'.
  * Add 'set -u' to common.sh to catch undefined variables in test
    scripts. Variables that are expected to be undefined must be used as
    '${var:-}'.
  * All shell script is shellcheck tested.
  * Removed unused test 'test_trace_ir'
  * The python test runner now returns an error when no python test
    scripts are found.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Change-Id: I15dcda1d147c8c72c6e4ee00052591eb6f9e30bd
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1429
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
68 files changed:
.gitignore
configure.ac
tests/Makefile.am
tests/bindings/python/bt2/.gitignore
tests/bindings/python/bt2/test_plugin.py
tests/bindings/python/bt2/test_python_bt2 [new file with mode: 0755]
tests/bindings/python/bt2/test_python_bt2.in [deleted file]
tests/cli/test_convert_args [new file with mode: 0755]
tests/cli/test_convert_args.in [deleted file]
tests/cli/test_intersection [new file with mode: 0755]
tests/cli/test_intersection.in [deleted file]
tests/cli/test_output_ctf_metadata [new file with mode: 0755]
tests/cli/test_output_ctf_metadata.in [deleted file]
tests/cli/test_packet_seq_num [new file with mode: 0755]
tests/cli/test_packet_seq_num.in [deleted file]
tests/cli/test_trace_copy [new file with mode: 0755]
tests/cli/test_trace_copy.in [deleted file]
tests/cli/test_trace_read [new file with mode: 0755]
tests/cli/test_trace_read.in [deleted file]
tests/cli/test_trimmer [new file with mode: 0755]
tests/cli/test_trimmer.in [deleted file]
tests/ctf-writer/Makefile.am
tests/ctf-writer/test_ctf_writer [new file with mode: 0755]
tests/ctf-writer/test_ctf_writer.in [deleted file]
tests/lib/Makefile.am
tests/lib/plugin.c [new file with mode: 0644]
tests/lib/test_plugin [new file with mode: 0755]
tests/lib/test_plugin.c [deleted file]
tests/lib/test_plugin_complete [new file with mode: 0755]
tests/lib/test_plugin_complete.in [deleted file]
tests/lib/trace-ir/test_trace_ir [new file with mode: 0755]
tests/lib/trace-ir/test_trace_ir.in [deleted file]
tests/plugins/flt.lttng-utils.debug-info/Makefile.am
tests/plugins/flt.lttng-utils.debug-info/test_bin_info_i386-linux-gnu [new file with mode: 0755]
tests/plugins/flt.lttng-utils.debug-info/test_bin_info_i386-linux-gnu.in [deleted file]
tests/plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc-linux-gnu [new file with mode: 0755]
tests/plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc-linux-gnu.in [deleted file]
tests/plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc64le-linux-gnu [new file with mode: 0755]
tests/plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc64le-linux-gnu.in [deleted file]
tests/plugins/flt.lttng-utils.debug-info/test_bin_info_x86_64-linux-gnu [new file with mode: 0755]
tests/plugins/flt.lttng-utils.debug-info/test_bin_info_x86_64-linux-gnu.in [deleted file]
tests/plugins/flt.lttng-utils.debug-info/test_dwarf_i386-linux-gnu [new file with mode: 0755]
tests/plugins/flt.lttng-utils.debug-info/test_dwarf_i386-linux-gnu.in [deleted file]
tests/plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc-linux-gnu [new file with mode: 0755]
tests/plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc-linux-gnu.in [deleted file]
tests/plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc64le-linux-gnu [new file with mode: 0755]
tests/plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc64le-linux-gnu.in [deleted file]
tests/plugins/flt.lttng-utils.debug-info/test_dwarf_x86_64-linux-gnu [new file with mode: 0755]
tests/plugins/flt.lttng-utils.debug-info/test_dwarf_x86_64-linux-gnu.in [deleted file]
tests/plugins/flt.lttng-utils.debug-info/test_lttng_utils_debug_info [new file with mode: 0755]
tests/plugins/flt.lttng-utils.debug-info/test_lttng_utils_debug_info.in [deleted file]
tests/plugins/src.ctf.fs/Makefile.am
tests/plugins/src.ctf.fs/query/test_query [new file with mode: 0755]
tests/plugins/src.ctf.fs/query/test_query.in [deleted file]
tests/plugins/src.ctf.fs/succeed/test_succeed [new file with mode: 0755]
tests/plugins/src.ctf.fs/succeed/test_succeed.in [deleted file]
tests/python-plugin-provider/.gitignore
tests/python-plugin-provider/test_python_plugin_provider [new file with mode: 0755]
tests/python-plugin-provider/test_python_plugin_provider.in [deleted file]
tests/python-plugin-provider/test_python_plugin_provider_env.in [deleted file]
tests/utils/.gitignore [deleted file]
tests/utils/Makefile.am
tests/utils/common.sh.in [deleted file]
tests/utils/diff.sh.in [deleted file]
tests/utils/python/testrunner.py
tests/utils/run_python_bt2 [new file with mode: 0755]
tests/utils/test_python_bt2_env.in [deleted file]
tests/utils/utils.sh [new file with mode: 0644]
This page took 0.029135 seconds and 4 git commands to generate.