This test case bypasses autoconf and runs generate directly.
It also gives us somewhere to write examples of each of the
&-expansions without further cluttering test-example.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
--- /dev/null
+# autogenerated - do not edit
+# test cases for generate script
+
+all:: $(TOP_TARGETS)
+.PHONY: all
--- /dev/null
+# test cases for generate script
--- /dev/null
+#!/bin/sh
+set -e
+
+cd tests/filter
+../../generate
+files=$(find -name \*.expected)
+for f in $files; do diff -u $f ${f%.expected}.tmp; done
+
+echo ok.
--- /dev/null
+# autogenerated - do not edit
+top_srcdir=@top_srcdir@
+abs_top_srcdir=@abs_top_srcdir@
+SUBDIRMK_MAKEFILES :=
+MAKEFILE_TEMPLATES :=
+SUBDIRMK_MAKEFILES += Subdir.mk
+MAKEFILE_TEMPLATES += ./Subdir.sd.mk
+include $(SUBDIRMK_MAKEFILES)
--- /dev/null
+#!/bin/sh
+#
+# Usual approach to updating the expected outputs is
+# tests/filter/check
+# tests/filter/update-expected
+# selectively git-add the things that are right, after inspecting them
+
+set -e
+files=$(find tests/filter -name \*.tmp)
+for f in $files; do cp $f ${f%.tmp}.expected; done