diff options
author | Simon McVittie <smcv@collabora.com> | 2018-01-30 22:52:15 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2018-01-30 22:52:28 +0000 |
commit | cf961cbdc28a886fbaffb1d14bb73d8683ff8363 (patch) | |
tree | da3140f58705677d56131c77e43c255c3d78adb4 | |
parent | 94672070f0756c1c3123796761c74a5fb43325a9 (diff) |
Create directories to hold .test files
Some of the corresponding test scripts are in $(srcdir)/test, so there
is no guarantee that $(builddir)/test will exist before these recipes
run. This usually works, but can cause highly parallel builds to fail.
Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r-- | Makefile.am | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 13ad510..61c6c9e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -336,18 +336,21 @@ installed_test_metadata = \ CLEANFILES += $(installed_test_metadata) $(patsubst %,%.test,$(dist_test_py)): %.test: Makefile + @$(MKDIR_P) $(dir $@) $(AM_V_GEN) (echo '[Test]' > $@.tmp; \ echo 'Type=session' >> $@.tmp; \ echo 'Exec=$(installed_log_compiler) $(PYTHON) $(installed_testdir)/$*' >> $@.tmp; \ mv $@.tmp $@) $(patsubst %,%.test,$(dist_test_sh)): %.test: Makefile + @$(MKDIR_P) $(dir $@) $(AM_V_GEN) (echo '[Test]' > $@.tmp; \ echo 'Type=session' >> $@.tmp; \ echo 'Exec=$(installed_log_compiler) $(installed_testdir)/$*' >> $@.tmp; \ mv $@.tmp $@) $(patsubst %,%.test,$(test_programs)): %.test: Makefile + @$(MKDIR_P) $(dir $@) $(AM_V_GEN) (echo '[Test]' > $@.tmp; \ echo 'Type=session' >> $@.tmp; \ echo 'Exec=$(installed_log_compiler) $(installed_testdir)/$*$(EXEEXT)' >> $@.tmp; \ |