diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2019-11-05 22:26:23 +0000 |
---|---|---|
committer | Alex Kiernan <alex.kiernan@gmail.com> | 2019-11-08 06:51:36 +0000 |
commit | f07838fa089c9039fcf8b699f6658de5365d3971 (patch) | |
tree | b1e7258c4d061673aa948ceb4e2d0dd7aae9970a /buildutil/glib-tap.mk | |
parent | 49513ccc1b520220bc89382d751c9a7b9879f2d0 (diff) | |
download | ostree-f07838fa089c9039fcf8b699f6658de5365d3971.tar.gz |
build: create tests directory for split builds
When `--disable-dependency-tracking` is in effect with separate build
directory, the tests directory isn't created as a result of the
dependency generation, which leads to a build race for the tests
directory being created and failures:
Making all in .
make[2]: Entering directory 'TOPDIR/build/tmp/work/riscv64-yoe-linux-musl/ostree/2019.5-r0/build'
(echo '[Test]' > tests/test-local-pull-depth.sh.test.tmp; \
echo 'Type=session' >> tests/test-local-pull-depth.sh.test.tmp; \
echo 'Exec=env G_TEST_SRCDIR=/usr/libexec/installed-tests/libostree G_TEST_BUILDDIR=/usr/libexec/installed-tests/libostree /usr/libexec/installed-tests/libostree/test-local-pull-depth.sh' >> tests/test-local-pull-depth.sh.test.tmp; \
mv tests/test-local-pull-depth.sh.test.tmp tests/test-local-pull-depth.sh.test)
/bin/sh: tests/test-local-pull-depth.sh.test.tmp: No such file or directory
/bin/sh: line 1: tests/test-local-pull-depth.sh.test.tmp: No such file or directory
/bin/sh: line 2: tests/test-local-pull-depth.sh.test.tmp: No such file or directory
mv: cannot stat 'tests/test-local-pull-depth.sh.test.tmp': No such file or directory
make[2]: *** [Makefile:9282: tests/test-local-pull-depth.sh.test] Error 1
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Diffstat (limited to 'buildutil/glib-tap.mk')
-rw-r--r-- | buildutil/glib-tap.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/buildutil/glib-tap.mk b/buildutil/glib-tap.mk index 34b8f21e..9a944a0a 100644 --- a/buildutil/glib-tap.mk +++ b/buildutil/glib-tap.mk @@ -116,6 +116,7 @@ installed_testcases = $(test_programs) $(installed_test_programs) \ installed_test_meta_DATA = $(installed_testcases:=.test) %.test: %$(EXEEXT) Makefile + @$(MKDIR_P) $(dir $@) $(AM_V_GEN) (echo '[Test]' > $@.tmp; \ echo 'Type=session' >> $@.tmp; \ echo 'Exec=env G_TEST_SRCDIR=$(installed_testdir) G_TEST_BUILDDIR=$(installed_testdir) $(installed_testdir)/$(notdir $<)' >> $@.tmp; \ |