aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/varmod-root.mk
blob: cf88491df799beb770465020503e507c2af61809 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $NetBSD: varmod-root.mk,v 1.5 2021/12/05 22:31:58 rillig Exp $
#
# Tests for the :R variable modifier, which returns the filename root
# without the extension.

.if ${a/b/c:L:R} != "a/b/c"
.  error
.endif

.if ${def:L:R} != "def"
.  error
.endif

.if ${a.b.c:L:R} != "a.b"
.  error
.endif

.if ${a.b/c:L:R} != "a"
.  error
.endif

.if ${a:L:R} != "a"
.  error
.endif

.if ${a.a:L:R} != "a"
.  error
.endif

.if ${.gitignore:L:R} != ""
.  error
.endif

.if ${trailing/:L:R} != "trailing/"
.  error
.endif

all: