summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2015-04-22 17:03:18 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2015-08-06 19:38:58 +0200
commite6b4283c6afb93eba5d628830a6b00545691ad53 (patch)
treef377134ccb7c9133d498ef02616ed2936f3f9dab /src/tests
parent8342f2bdefc5aebadf0315e2a679543c6a72d857 (diff)
downloadelementary-e6b4283c6afb93eba5d628830a6b00545691ad53.tar.gz
tests/build: Make sure tests are finding the theme file
Our tests require a theme file. So far they picked this just from the system where it was installed to in a previous run. We have situations where this would not work though. Running make check before install on a new system or during distcheck comes to mind. With AM_TESTS_ENVIRONMENT we make that the theme is also looked for in the not yet installed builddir. Thanks to Lukasz Stanislawski for pointing me to this. ref T2028
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/Makefile.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am
index 551a2556e..a33bfa5fb 100644
--- a/src/tests/Makefile.am
+++ b/src/tests/Makefile.am
@@ -1,3 +1,6 @@
+AM_TESTS_ENVIRONMENT = \
+ ELM_DATA_DIR=${top_builddir}/data
+
AUTOMAKE_OPTIONS = 1.4 foreign
MAINTAINERCLEANFILES = Makefile.in
EXTRA_DIST = \