aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/dir-expand-path.mk
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2020-09-05 19:29:42 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2020-09-05 19:29:42 +0000
commit2c3632d14fe37fa35c262ee9fb66835be0a52621 (patch)
tree57d0bb7a1e21c84dc625ee2f42c7677174a79c81 /contrib/bmake/unit-tests/dir-expand-path.mk
parent08d0b468f14fec9d8d11eea0c7886f53df4eda2e (diff)
parent6bbc783f48498b808e19db4441299dc7d85a278b (diff)
downloadsrc-2c3632d14fe37fa35c262ee9fb66835be0a52621.tar.gz
src-2c3632d14fe37fa35c262ee9fb66835be0a52621.zip
Update to bmake-20200902
Lots of code refactoring, simplification and cleanup. Lots of new unit-tests providing much higher code coverage. All courtesy of rillig at netbsd. Other significant changes: o new read-only variable .SHELL which provides the path of the shell used to run scripts (as defined by the .SHELL target). o variable parsing detects more errors. o new debug option -dl: LINT mode, does the equivalent of := for all variable assignments so that file and line number are reported for variable parse errors.
Notes
Notes: svn path=/head/; revision=365366
Diffstat (limited to 'contrib/bmake/unit-tests/dir-expand-path.mk')
-rwxr-xr-xcontrib/bmake/unit-tests/dir-expand-path.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/contrib/bmake/unit-tests/dir-expand-path.mk b/contrib/bmake/unit-tests/dir-expand-path.mk
new file mode 100755
index 000000000000..1ce349cce385
--- /dev/null
+++ b/contrib/bmake/unit-tests/dir-expand-path.mk
@@ -0,0 +1,19 @@
+# $NetBSD: dir-expand-path.mk,v 1.1 2020/08/22 21:55:54 rillig Exp $
+#
+# Tests for filename expansion in the search path.
+
+_!= rm -rf dir-expand-path.dir.*
+_!= mkdir dir-expand-path.dir.1
+_!= mkdir dir-expand-path.dir.2
+_!= touch dir-expand-path.dir.1/file1.src
+_!= touch dir-expand-path.dir.1/file2.src
+_!= touch dir-expand-path.dir.2/file3.src
+
+.PATH: dir-expand-path.dir.1
+.PATH: dir-expand-path.dir.2
+
+all: *.src
+ @printf '%s\n' ${.ALLSRC:O}
+
+.END:
+ @rm -rf dir-expand-path.dir.*