Browse files

Introduce a `vtest-clean` make target

When a `distcheck` fails, the $(distdir) is not removed and this is how
we can collect test results. This directory is also left untouched by
the `distclean` target run from `autogen.des`.

So if the next commit checked by vtest fails before running inside the
$(distdir), it will report failures from the previous run. To avoid that
we can use $(am__remove_distdir) that deals with permissions but may not
be stable API.
  • Loading branch information...
1 parent d977207 commit 6cd97d1167353a5129ee39f9524fa39eb195a9f4 @Dridi Dridi committed Dec 23, 2016
Showing with 4 additions and 0 deletions.
  1. +3 −0
  2. +1 −0 tools/
@@ -32,6 +32,9 @@ distcleancheck_listfiles = \
find . -type f -exec sh -c 'test -f $(srcdir)/$$1 || echo $$1' \
sh '{}' ';'
+ $(am__remove_distdir)
# XXX: This is a hack to ensure we have a built source tree when
# running make dist If we had used non-recursive make we could have
# solved it better, but we don't, so use this at least for now.
@@ -76,6 +76,7 @@ autogen () (
makedistcheck () (
set -e
cd "${BUILDDIR}"
+ nice make vtest-clean
nice make distcheck

0 comments on commit 6cd97d1

Please sign in to comment.