diff options
Diffstat (limited to 'unit-tests/varmod-root.mk')
-rw-r--r-- | unit-tests/varmod-root.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/unit-tests/varmod-root.mk b/unit-tests/varmod-root.mk new file mode 100644 index 000000000000..88af42d82510 --- /dev/null +++ b/unit-tests/varmod-root.mk @@ -0,0 +1,9 @@ +# $NetBSD: varmod-root.mk,v 1.3 2020/08/23 15:09:15 rillig Exp $ +# +# Tests for the :R variable modifier, which returns the filename root +# without the extension. + +all: +.for path in a/b/c def a.b.c a.b/c a a.a .gitignore a a.a + @echo "root of '"${path:Q}"' is '"${path:R:Q}"'" +.endfor |