chiark / gitweb /
tests/filter: Add .../sub/dir
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 24 Dec 2019 00:18:46 +0000 (00:18 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 28 Dec 2019 22:19:08 +0000 (22:19 +0000)
This will let us test output which depends on the subdirectory,
which is kind of the whole point...

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/filter/Subdir.mk.expected
tests/filter/check
tests/filter/main.mk.expected
tests/filter/sub/Subdir.mk.expected [new file with mode: 0644]
tests/filter/sub/dir/Subdir.mk.expected [new file with mode: 0644]
tests/filter/sub/dir/Subdir.sd.mk [new file with mode: 0644]

index fe0e7aa..84f7309 100644 (file)
@@ -1,5 +1,5 @@
 # autogenerated - do not edit
 # test cases for generate script
 
-all:: $(TOP_TARGETS)
+all:: $(TOP_TARGETS) sub/all
 .PHONY: all
index 09b4196..2a5a8ee 100755 (executable)
@@ -2,7 +2,7 @@
 set -e
 
 cd tests/filter
-../../generate
+../../generate sub/dir
 files=$(find -name \*.expected)
 for f in $files; do diff -u $f ${f%.expected}.tmp; done
 
index a5b0e9d..90073a2 100644 (file)
@@ -4,5 +4,7 @@ abs_top_srcdir=@abs_top_srcdir@
 SUBDIRMK_MAKEFILES :=
 MAKEFILE_TEMPLATES :=
 SUBDIRMK_MAKEFILES += Subdir.mk
+SUBDIRMK_MAKEFILES += sub/dir/Subdir.mk
 MAKEFILE_TEMPLATES += ./Subdir.sd.mk
+MAKEFILE_TEMPLATES += ./sub/dir/Subdir.sd.mk
 include $(SUBDIRMK_MAKEFILES)
diff --git a/tests/filter/sub/Subdir.mk.expected b/tests/filter/sub/Subdir.mk.expected
new file mode 100644 (file)
index 0000000..f57787b
--- /dev/null
@@ -0,0 +1,4 @@
+# autogenerated - do not edit
+
+sub/all:: $(sub_TARGETS) sub/dir/all
+.PHONY: sub/all
diff --git a/tests/filter/sub/dir/Subdir.mk.expected b/tests/filter/sub/dir/Subdir.mk.expected
new file mode 100644 (file)
index 0000000..b0da72c
--- /dev/null
@@ -0,0 +1,5 @@
+# autogenerated - do not edit
+#
+
+sub/dir/all:: $(sub_dir_TARGETS)
+.PHONY: sub/dir/all
diff --git a/tests/filter/sub/dir/Subdir.sd.mk b/tests/filter/sub/dir/Subdir.sd.mk
new file mode 100644 (file)
index 0000000..792d600
--- /dev/null
@@ -0,0 +1 @@
+#