From: fennecdjay Date: Tue, 8 Oct 2019 15:46:45 +0000 (+0200) Subject: :art: More and More testing X-Git-Tag: nightly~2198^2~90 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=612070083c292ed3f5c781f8b124695e0f28fbbe;p=gwion.git :art: More and More testing --- diff --git a/examples/complex/invalid_type0.gw b/examples/complex/invalid_type0.gw new file mode 100644 index 00000000..344b6dcb --- /dev/null +++ b/examples/complex/invalid_type0.gw @@ -0,0 +1,3 @@ +class global InvalidGlobalClass { + inkrt i; +} diff --git a/examples/complex/invalid_type1.gw b/examples/complex/invalid_type1.gw new file mode 100644 index 00000000..12ef4531 --- /dev/null +++ b/examples/complex/invalid_type1.gw @@ -0,0 +1 @@ +InvalidGlobalClass c; diff --git a/tests/sh/opt.sh b/tests/sh/opt.sh index 61d44117..5e02f181 100644 --- a/tests/sh/opt.sh +++ b/tests/sh/opt.sh @@ -1,5 +1,5 @@ #!/bin/bash -# [test] #18 +# [test] #19 n=0 [ "$1" ] && n="$1" @@ -75,11 +75,15 @@ run "$n" "just check" "-g check" "file" # set compilation passes n=$((n+1)) -run "$n" "just check" "-g nopass" "file" +run "$n" "no pass" "-g nopass" "file" # option needs argument n=$((n+1)) -run "$n" "just check" "-p" "file" +run "$n" "option needs argument" "-p" "file" + +# invalid global type +n=$((n+1)) +run "$n" "invalid global type" "tests/complex/invalid_type0.gw tests/complex/invalid_type1.gw" "file" # test signal ./gwion -l1 &