summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2022-10-03 19:22:23 -0400
committerDavid Thompson <dthompson2@worcester.edu>2022-10-22 11:48:39 -0400
commit14464dee966fe415d4c8e1fb8b5205653b22003f (patch)
tree986a7b03a089a4545465901cadce4d671f3032c1 /tests
parentdcf869ccd7ec9d33c937507fe96e9e09f517bded (diff)
Add prototype catbird modules.
Diffstat (limited to 'tests')
-rw-r--r--tests/node.scm7
-rw-r--r--tests/scene.scm7
-rw-r--r--tests/utils.scm9
3 files changed, 23 insertions, 0 deletions
diff --git a/tests/node.scm b/tests/node.scm
new file mode 100644
index 0000000..6cdd223
--- /dev/null
+++ b/tests/node.scm
@@ -0,0 +1,7 @@
+(define-module (tests node)
+ #:use-module (catbird node)
+ #:use-module (srfi srfi-64)
+ #:use-module (tests utils))
+
+(with-tests "node"
+ #t)
diff --git a/tests/scene.scm b/tests/scene.scm
new file mode 100644
index 0000000..20a8301
--- /dev/null
+++ b/tests/scene.scm
@@ -0,0 +1,7 @@
+(define-module (tests scene)
+ #:use-module (catbird scene)
+ #:use-module (srfi srfi-64)
+ #:use-module (tests utils))
+
+(with-tests "scene"
+ #t)
diff --git a/tests/utils.scm b/tests/utils.scm
new file mode 100644
index 0000000..b05f70c
--- /dev/null
+++ b/tests/utils.scm
@@ -0,0 +1,9 @@
+(define-module (tests utils)
+ #:use-module (srfi srfi-64)
+ #:export (with-tests))
+
+(define-syntax-rule (with-tests name body ...)
+ (begin
+ (test-begin name)
+ body ...
+ (exit (zero? (test-runner-fail-count (test-end))))))