Remove regex functionality from rbcrun

As a first step to making .rbc files compatible with bazel,
remove regex support since bazel doesn't have it.

Fixes: 227384703
Test: ./out/rbcrun ./build/make/tests/run.rbc
Change-Id: I8b946c20cc42897a47a5516a167732f4e16b6158
This commit is contained in:
Cole Faust
2022-03-29 15:48:45 -07:00
parent d3a9957616
commit 62878a2cef
5 changed files with 40 additions and 57 deletions

View File

@@ -1,13 +0,0 @@
# Tests rblf_regex
load("assert.star", "assert")
def test():
pattern = "^(foo.*bar|abc.*d|1.*)$"
for w in ("foobar", "fooxbar", "abcxd", "123"):
assert.true(rblf_regex(pattern, w), "%s should match %s" % (w, pattern))
for w in ("afoobar", "abcde"):
assert.true(not rblf_regex(pattern, w), "%s should not match %s" % (w, pattern))
test()