diff options
author | Simon McVittie <smcv@debian.org> | 2017-04-15 21:06:23 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2017-04-18 17:20:30 +0100 |
commit | 36fcd43005af375eea007becccd50662d3b61fba (patch) | |
tree | 1660eea84e0945229f70b2301b4d8e376f73921e /test | |
parent | 53959c9924a64c7031155ea74159dcacd7eedf7b (diff) | |
download | dbus-36fcd43005af375eea007becccd50662d3b61fba.tar.gz |
Pass in DBUS_TEST_EXEC via environment, not hard-coded into binaries
This avoids "capturing" the build directory in the built binaries
when built with embedded tests, which is good for reproducible builds.
See <https://reproducible-builds.org/> for more information.
Signed-off-by: Simon McVittie <smcv@debian.org>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=100692
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile.am | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 42f193b9..5beb1b29 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -235,6 +235,7 @@ installcheck_environment = \ export DBUS_TEST_DBUS_LAUNCH=$(DESTDIR)$(bindir)/dbus-launch$(EXEEXT); \ export DBUS_TEST_DBUS_MONITOR=$(DESTDIR)$(bindir)/dbus-monitor$(EXEEXT); \ export DBUS_TEST_DBUS_SEND=$(DESTDIR)$(bindir)/dbus-send$(EXEEXT); \ + export DBUS_TEST_EXEC=@abs_top_builddir@/test; \ export DBUS_TEST_HOMEDIR=@abs_top_builddir@/dbus; \ export DBUS_TEST_DATADIR=$(DESTDIR)$(datadir); \ ${NULL} @@ -253,6 +254,7 @@ AM_TESTS_ENVIRONMENT = \ export DBUS_TEST_DBUS_MONITOR=@abs_top_builddir@/tools/dbus-monitor$(EXEEXT); \ export DBUS_TEST_DBUS_SEND=@abs_top_builddir@/tools/dbus-send$(EXEEXT); \ export DBUS_TEST_DATA=@abs_top_builddir@/test/data; \ + export DBUS_TEST_EXEC=@abs_top_builddir@/test; \ export DBUS_TEST_HOMEDIR=@abs_top_builddir@/dbus; \ $(NULL) |