aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/helpers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/helpers.sh')
-rw-r--r--tests/helpers.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/helpers.sh b/tests/helpers.sh
index b8de8a9..09de3df 100644
--- a/tests/helpers.sh
+++ b/tests/helpers.sh
@@ -74,3 +74,9 @@ function test_example() {
diff -u expected output
}
+
+function test_example_compile_only() {
+ filename="../../../examples/$1.c"
+
+ "$ducc" "${CFLAGS:-}" -I ../../../tests -o a.out "$filename"
+}