summaryrefslogtreecommitdiff
path: root/willow/unittest/willow_unittest.bzl
diff options
context:
space:
mode:
authorStefan Weigl-Bosker <stefan@s00.xyz>2026-02-03 14:59:53 -0500
committerGitHub <noreply@github.com>2026-02-03 14:59:53 -0500
commitadd95b14f74e6dbe04a6efe98ff0f20424930b73 (patch)
tree13ce413ee4190a4c8f8743c7740aaa8d04353f14 /willow/unittest/willow_unittest.bzl
parentc5b2905c5a64433f8519531a77d3acc42d881f17 (diff)
downloadcompiler-dev/stefan.tar.gz
[willow]: initial frontend work, unit tests (#8)dev/stefan
Diffstat (limited to 'willow/unittest/willow_unittest.bzl')
-rw-r--r--willow/unittest/willow_unittest.bzl8
1 files changed, 8 insertions, 0 deletions
diff --git a/willow/unittest/willow_unittest.bzl b/willow/unittest/willow_unittest.bzl
new file mode 100644
index 0000000..f1bb102
--- /dev/null
+++ b/willow/unittest/willow_unittest.bzl
@@ -0,0 +1,8 @@
+def willow_unittest(name, srcs, deps = [], tags = [], **kwargs):
+ native.cc_test(
+ name = name,
+ srcs = srcs,
+ deps = deps + ["@catch2//:catch2_main"],
+ tags = tags,
+ **kwargs
+ )