aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/helpers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/helpers.sh')
-rw-r--r--tests/helpers.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/helpers.sh b/tests/helpers.sh
index eaccd5c..a69e213 100644
--- a/tests/helpers.sh
+++ b/tests/helpers.sh
@@ -49,6 +49,13 @@ function test_compile_error() {
diff -u expected output
}
+function test_cpp() {
+ cat > main.c
+
+ "$ducc" -E main.c > output
+ diff -u -Z expected output
+}
+
function test_example() {
filename="../../../examples/$1.c"