tests: Ensure that the testsuite is of non-zero size
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 14 Jan 2017 10:15:12 +0000 (11:15 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 14 Jan 2017 10:15:12 +0000 (11:15 +0100)
tests/automake.mk

index db14a142d9061ff30f869c4df7a7834af5d6520b..5158fee56d8163e79a5620f5ccab79b77e825ce6 100644 (file)
@@ -427,6 +427,7 @@ AUTOM4TE = $(SHELL) $(srcdir)/build-aux/missing --run autom4te
 AUTOTEST = $(AUTOM4TE) --language=autotest
 $(TESTSUITE): package.m4 $(srcdir)/tests/testsuite.at $(TESTSUITE_AT) 
        $(AM_V_GEN)$(AUTOTEST) -I '$(srcdir)' $@.at | $(SED) 's/@<00A0>@/ /g' > $@.tmp
+       test -s $@.tmp
        $(AM_V_at)mv $@.tmp $@
 
 # The `:;' works around a Bash 3.2 bug when the output is not writeable.