From: fennecdjay Date: Fri, 13 Nov 2020 13:05:15 +0000 (+0100) Subject: :wrench: Test preprocessor options X-Git-Tag: nightly~1153 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=de87834acdce99b2ab2956d28ba9637312c92626;p=gwion.git :wrench: Test preprocessor options --- 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 &