From de87834acdce99b2ab2956d28ba9637312c92626 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 13 Nov 2020 14:05:15 +0100 Subject: [PATCH] :wrench: Test preprocessor options --- tests/sh/opt.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/sh/opt.sh b/tests/sh/opt.sh index 4cf3e21d..1c86d66a 100644 --- a/tests/sh/opt.sh +++ b/tests/sh/opt.sh @@ -1,5 +1,5 @@ #!/bin/bash -# [test] #21 +# [test] #24 n=0 [ "$1" ] && n="$1" @@ -90,10 +90,22 @@ run "$n" "invalid global type" "examples/complex/invalid_type0.gw examples/compl n=$((n+1)) run "$n" "invalid global func" "examples/complex/invalid_func0.gw examples/complex/invalid_func1.gw" "file" -# comma in module argument +# comma in module argument, uses the now deprecated -mpp n=$((n+1)) run "$n" "comma in module argument" "-mpp=-Dtest='\"dqs\,qs\"',-Dtsdl" "file" +# define +n=$((n+1)) +run "$n" "define" "-Dtest(a)=#a" "file" + +# undef +n=$((n+1)) +run "$n" "undef" "-Utest" "nofile" + +# include path +n=$((n+1)) +run "$n" "include path" "-I../Gwion" "file" + # test signal # mask asan output for now ./gwion -l1 &>/dev/null & -- 2.43.0