summaryrefslogtreecommitdiff
path: root/mk2rbc/mk2rbc_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'mk2rbc/mk2rbc_test.go')
-rw-r--r--mk2rbc/mk2rbc_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/mk2rbc/mk2rbc_test.go b/mk2rbc/mk2rbc_test.go
index de7512927..193e6357c 100644
--- a/mk2rbc/mk2rbc_test.go
+++ b/mk2rbc/mk2rbc_test.go
@@ -568,14 +568,18 @@ ifeq (,$(wildcard foo.mk))
endif
ifneq (,$(wildcard foo*.mk))
endif
+ifeq (foo1.mk foo2.mk barxyz.mk,$(wildcard foo*.mk bar*.mk))
+endif
`,
expected: `load("//build/make/core:product_config.rbc", "rblf")
def init(g, handle):
cfg = rblf.cfg(handle)
- if not rblf.file_exists("foo.mk"):
+ if not rblf.expand_wildcard("foo.mk"):
+ pass
+ if rblf.expand_wildcard("foo*.mk"):
pass
- if rblf.file_wildcard_exists("foo*.mk"):
+ if rblf.expand_wildcard("foo*.mk bar*.mk") == ["foo1.mk", "foo2.mk", "barxyz.mk"]:␤
pass
`,
},