diff options
author | Martin Pitt <martin@piware.de> | 2017-02-12 23:14:43 +0100 |
---|---|---|
committer | Martin Pitt <martin@piware.de> | 2017-02-13 22:31:13 +0100 |
commit | f853c6efb509589c8e3a82caa3af2ac5a370ae97 (patch) | |
tree | 4b5e46c4dfc6a9dfd701db8c29975d546b0b9ece /src/timedate/org.freedesktop.timedate1.service | |
parent | ee3c7ff7c303cdbc8fea18d3a6f3c4c6e7c450d8 (diff) |
test: make unit tests relocatable
It is useful to package test-* binaries and run them as root under
autopkgtest or manually on particular machines. They currently have a
built-in hardcoded absolute path to their test data, which does not work
when running the test programs from any other path than the original
build directory.
By default, make the tests look for their data in
<test_exe_directory>/testdata/ so that they can be called from any
directory (provided that the corresponding test data is installed
correctly). As we don't have a fixed static path in the build tree (as
build and source tree are independent), set $TEST_DIR with "make check"
to point to <srcdir>/test/, as we previously did with an automake
variable.
Diffstat (limited to 'src/timedate/org.freedesktop.timedate1.service')
0 files changed, 0 insertions, 0 deletions