]> Nishi Git Mirror - gwion.git/commitdiff
:art: More and More testing
authorfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 8 Oct 2019 15:46:45 +0000 (17:46 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 8 Oct 2019 15:46:45 +0000 (17:46 +0200)
examples/complex/invalid_type0.gw [new file with mode: 0644]
examples/complex/invalid_type1.gw [new file with mode: 0644]
tests/sh/opt.sh

diff --git a/examples/complex/invalid_type0.gw b/examples/complex/invalid_type0.gw
new file mode 100644 (file)
index 0000000..344b6dc
--- /dev/null
@@ -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 (file)
index 0000000..12ef453
--- /dev/null
@@ -0,0 +1 @@
+InvalidGlobalClass c;
index 61d44117d6b583ae7b6658a02a2b3b2be570f0fb..5e02f181533b635e60019b5b4e17fce8ed78b51e 100644 (file)
@@ -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 &