Add a single generated env file to the test suite
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 31 Aug 2021 15:25:18 +0000 (11:25 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 12 Nov 2021 15:31:07 +0000 (10:31 -0500)
commite46cbefe0605ab6e66e5c1d1487c823682d3ac10
tree92aa0d482b1a1d53d9cc80a5a69f29778eff5dd0
parent6a0b47baa475071e293285f5633bb577a2a34700
Add a single generated env file to the test suite

Regroup all the configure detected values relevant to the test suite in
a single generated file. This file will be automatically sourced by the
test suite in most scenarios but can also be sourced in the shell of a
user.

 * All user overridable variables start with 'BT_TESTS_'.
 * The priority for variables is :
     Environment -> env.sh -> utils.sh (defaults).
 * A user can source 'env.sh', override some of the values and manually
   run test scripts.
 * The test suite can run without an 'env.sh' file present.

Scenarios:

 * Manually running tests in an in-tree build:

   The test suite sources 'env.sh' relative to itself, no environment
   variables required.

 * Manually running tests in an out-of-tree build:

   The user sets BT_TESTS_BUILDDIR in its environment or sources 'env.sh'.

 * Running the test suite with 'make check' in either builds:

   The Makefile sets BT_TESTS_BUILDDIR in the environment which allows
   the test suite to source env.sh in either in-tree or out-of-tree builds.

Change-Id: I1ba3775ea3d724345cab769af9b2efc22ee53585
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/6314
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
CI-Build: Simon Marchi <simon.marchi@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
.gitignore
configure.ac
tests/Makefile.am
tests/utils/env.sh.in [new file with mode: 0644]
tests/utils/utils.sh
This page took 0.024624 seconds and 4 git commands to generate.