port: add support for BSD mktemp Use '-t' which is portable instead of the GNU specific '--tmpdir'. Change-Id: I430af6b96c27c2766a2cc4b5574af8563297d717 Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Tests: use babeltrace2 for all tests - Change value of `BABELTRACE_BIN` to `babeltrace2`, - Replace all direct calls to babeltrace with calls to `BABELTRACE_BIN` variable, - Add `bail_out_if_no_babeltrace` bash function to fail the test if Babeltrace 2 is needed but not found. Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com> Change-Id: Ieeffe4977660f47561732223e94a1b8f5a00ef0e
Cleanup: tests: name all temporary files to better identify leakage When using a template, we need to add `--tmpdir` to the `mktemp` arguments to place the tmp files in `/tmp` or `$TMPDIR`. Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com> Change-Id: Id107530578d91700b726ceec016a8cef772e94b0
tests: Move to kernel style SPDX license identifiers The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. See https://spdx.org/ids-how for details. Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Change-Id: I89cd4b4b7440f71f52426a5508252932bb46e796 Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Tests: Fix first line of output to follow TAP guidelines From the Test::Harness::TAP documentation [1]: The plan tells how many tests will be run, or how many tests have run. It's a check that the test file hasn't stopped prematurely. It must appear once, whether at the beginning or end of the output. The TAP plan *must* be the first line of output of any tests. Currently, most of the tests output their description and then the TAP plan. This can cause issues while parsing the test output for "strict" TAP parser such as the one used in the prove tool. This commit ensure that the first line outputted by any tests is the TAP plan. Signed-off-by: Christian Babeux <christian.babeux@efficios.com> Signed-off-by: David Goulet <dgoulet@efficios.com>