run: set abs_builddir variables

test-lib.sh needs these to be set.

Export them so that the virsh-* tests can be run using:
  builddir$ ./run srcdir/tests/virsh-snapshot

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
Ján Tomko 2021-08-11 09:41:02 +02:00
parent 630b0dd6c3
commit c6bcc4753d
2 changed files with 4 additions and 0 deletions

View File

@ -2233,6 +2233,7 @@ configure_file(output: 'meson-config.h', configuration: conf)
# generate run helper # generate run helper
run_conf = configuration_data() run_conf = configuration_data()
run_conf.set('abs_builddir', meson.build_root()) run_conf.set('abs_builddir', meson.build_root())
run_conf.set('abs_top_builddir', meson.build_root())
configure_file( configure_file(
input: 'run.in', input: 'run.in',
output: '@BASENAME@', output: '@BASENAME@',

3
run.in
View File

@ -80,6 +80,9 @@ env["LIBVIRT_DIR_OVERRIDE"] = "1"
# read problems when using glibc. # read problems when using glibc.
env["MALLOC_PERTURB_"] = "%d" % random.randint(1, 255) env["MALLOC_PERTURB_"] = "%d" % random.randint(1, 255)
env["abs_builddir"] = "@abs_builddir@"
env["abs_top_builddir"] = "@abs_top_builddir@"
modular_daemons = [ modular_daemons = [
"virtinterfaced", "virtinterfaced",
"virtlxcd", "virtlxcd",