From 11ed7c5750313827405504c9b4ba674de81a5248 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 4 Nov 2020 14:21:20 +0100 Subject: [PATCH] :white_check_mark: Update tests (parralel lib testing) --- scripts/test.sh | 6 +++--- tests/plug/array.gw | 2 ++ tests/plug/array_in_var_name.gw | 2 ++ tests/plug/array_in_var_name_fail.gw | 2 ++ tests/plug/array_incoherent_in_var_name.gw | 2 ++ tests/plug/array_invalid_in_var_name.gw | 2 ++ tests/plug/callback.gw | 2 ++ tests/plug/class_template.gw | 1 + tests/plug/class_template_fail.gw | 2 ++ tests/plug/class_template_invalid.gw | 2 ++ tests/plug/compile_file.gw | 2 ++ tests/plug/compile_string.gw | 2 ++ tests/plug/coverage.gw | 1 + tests/plug/empty_union.gw | 2 ++ tests/plug/end_class.gw | 2 ++ tests/plug/enum.gw | 1 + tests/plug/enum_fail.gw | 2 ++ tests/plug/enum_fail2.gw | 2 ++ tests/plug/enum_fail3.gw | 2 ++ tests/plug/extend_array.gw | 1 + tests/plug/fail_on_next_arg.gw | 2 ++ tests/plug/fail_on_next_arg2.gw | 2 ++ tests/plug/fptr.gw | 2 +- tests/plug/fptr_tmpl.gw | 2 ++ tests/plug/fptr_tmpl_fail.gw | 2 ++ tests/plug/func_fail.gw | 2 ++ tests/plug/func_fail2.gw | 2 ++ tests/plug/func_fail3.gw | 2 ++ tests/plug/func_fail4.gw | 2 ++ tests/plug/func_subscript_not_empty.gw | 2 ++ tests/plug/func_tmpl.gw | 1 + tests/plug/func_tmpl_fail.gw | 2 ++ tests/plug/func_too_many_arg.gw | 2 ++ tests/plug/global_func.gw | 2 +- tests/plug/global_var.gw | 1 + tests/plug/invalid_arg.gw | 2 ++ tests/plug/invalid_array.gw | 2 ++ tests/plug/invalid_func.gw | 2 ++ tests/plug/invalid_names.gw | 2 ++ tests/plug/invalid_names0.gw | 2 ++ tests/plug/invalid_names1.gw | 2 ++ tests/plug/invalid_names2.gw | 2 ++ tests/plug/invalid_names3.gw | 2 ++ tests/plug/invalid_type1.gw | 2 ++ tests/plug/invalid_type2.gw | 2 ++ tests/plug/invalid_type3.gw | 2 ++ tests/plug/mk_type_array.gw | 2 ++ tests/plug/no_import.gw | 2 ++ tests/plug/not_importing.gw | 2 ++ tests/plug/op_already_imported.gw | 2 +- tests/plug/pass.gw | 2 ++ tests/plug/specialid_emit.gw | 1 + tests/plug/static_string.gw | 1 + tests/plug/str2decl.gw | 2 ++ tests/plug/str2list_fail.gw | 2 ++ tests/plug/template_arg.gw | 2 ++ tests/plug/trig.gw | 1 + tests/plug/typedef.gw | 1 + tests/plug/typedef_fail.gw | 2 ++ tests/plug/typedef_tmpl.gw | 2 ++ tests/plug/ugen_connect.gw | 2 ++ tests/plug/union.gw | 1 + tests/plug/union_fail_exp.gw | 2 ++ tests/plug/union_member.gw | 2 ++ tests/plug/union_name.gw | 1 + tests/plug/union_tmpl.gw | 1 + tests/plug/union_tmpl_fail.gw | 2 ++ tests/plug/union_tmpl_fail2.gw | 2 ++ tests/plug/union_tmpl_fail3.gw | 2 ++ tests/plug/variadic.gw | 1 + tests/plug/vm_remove.gw | 1 + 71 files changed, 125 insertions(+), 6 deletions(-) create mode 100644 tests/plug/array.gw create mode 100644 tests/plug/array_in_var_name.gw create mode 100644 tests/plug/array_in_var_name_fail.gw create mode 100644 tests/plug/array_incoherent_in_var_name.gw create mode 100644 tests/plug/array_invalid_in_var_name.gw create mode 100644 tests/plug/callback.gw create mode 100644 tests/plug/class_template_fail.gw create mode 100644 tests/plug/class_template_invalid.gw create mode 100644 tests/plug/compile_file.gw create mode 100644 tests/plug/compile_string.gw create mode 100644 tests/plug/empty_union.gw create mode 100644 tests/plug/end_class.gw create mode 100644 tests/plug/enum_fail.gw create mode 100644 tests/plug/enum_fail2.gw create mode 100644 tests/plug/enum_fail3.gw create mode 100644 tests/plug/fail_on_next_arg.gw create mode 100644 tests/plug/fail_on_next_arg2.gw create mode 100644 tests/plug/fptr_tmpl.gw create mode 100644 tests/plug/fptr_tmpl_fail.gw create mode 100644 tests/plug/func_fail.gw create mode 100644 tests/plug/func_fail2.gw create mode 100644 tests/plug/func_fail3.gw create mode 100644 tests/plug/func_fail4.gw create mode 100644 tests/plug/func_subscript_not_empty.gw create mode 100644 tests/plug/func_tmpl_fail.gw create mode 100644 tests/plug/func_too_many_arg.gw create mode 100644 tests/plug/invalid_arg.gw create mode 100644 tests/plug/invalid_array.gw create mode 100644 tests/plug/invalid_func.gw create mode 100644 tests/plug/invalid_names.gw create mode 100644 tests/plug/invalid_names0.gw create mode 100644 tests/plug/invalid_names1.gw create mode 100644 tests/plug/invalid_names2.gw create mode 100644 tests/plug/invalid_names3.gw create mode 100644 tests/plug/invalid_type1.gw create mode 100644 tests/plug/invalid_type2.gw create mode 100644 tests/plug/invalid_type3.gw create mode 100644 tests/plug/mk_type_array.gw create mode 100644 tests/plug/no_import.gw create mode 100644 tests/plug/not_importing.gw create mode 100644 tests/plug/pass.gw create mode 100644 tests/plug/str2decl.gw create mode 100644 tests/plug/str2list_fail.gw create mode 100644 tests/plug/template_arg.gw create mode 100644 tests/plug/typedef_fail.gw create mode 100644 tests/plug/typedef_tmpl.gw create mode 100644 tests/plug/ugen_connect.gw create mode 100644 tests/plug/union_fail_exp.gw create mode 100644 tests/plug/union_member.gw create mode 100644 tests/plug/union_tmpl_fail.gw create mode 100644 tests/plug/union_tmpl_fail2.gw create mode 100644 tests/plug/union_tmpl_fail3.gw diff --git a/scripts/test.sh b/scripts/test.sh index f02f8bad..3cde06d2 100644 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -230,8 +230,8 @@ test_dir() { grep '\.sh' <<< "$(ls "$1")" &> /dev/null && found=1 if [ "$found" -eq 1 ] then - local old_async=$async - async=0; +# local old_async=$async +# async=0; # [ -f ${GWION_TEST_DIR}/${GWION_TEST_PREFIX}bailout ] && exit 1 for file in "$1"/*.sh do @@ -242,7 +242,7 @@ test_dir() { bash "$file" "$((n))" n=$((n+count)) done - async=$old_async +# async=$old_async fi } diff --git a/tests/plug/array.gw b/tests/plug/array.gw new file mode 100644 index 00000000..8958ace4 --- /dev/null +++ b/tests/plug/array.gw @@ -0,0 +1,2 @@ +#require array +<<< __file__ >>>; diff --git a/tests/plug/array_in_var_name.gw b/tests/plug/array_in_var_name.gw new file mode 100644 index 00000000..c6e79b56 --- /dev/null +++ b/tests/plug/array_in_var_name.gw @@ -0,0 +1,2 @@ +#require array_in_var_name +<<< __file__ >>>; diff --git a/tests/plug/array_in_var_name_fail.gw b/tests/plug/array_in_var_name_fail.gw new file mode 100644 index 00000000..122ac5fe --- /dev/null +++ b/tests/plug/array_in_var_name_fail.gw @@ -0,0 +1,2 @@ +#require array_in_var_name_fail +<<< __file__ >>>; diff --git a/tests/plug/array_incoherent_in_var_name.gw b/tests/plug/array_incoherent_in_var_name.gw new file mode 100644 index 00000000..a7e9493b --- /dev/null +++ b/tests/plug/array_incoherent_in_var_name.gw @@ -0,0 +1,2 @@ +#require array_incoherent_in_var_name +<<< __file__ >>>; diff --git a/tests/plug/array_invalid_in_var_name.gw b/tests/plug/array_invalid_in_var_name.gw new file mode 100644 index 00000000..0d9b7496 --- /dev/null +++ b/tests/plug/array_invalid_in_var_name.gw @@ -0,0 +1,2 @@ +#require array_invalid_in_var_name +<<< __file__ >>>; diff --git a/tests/plug/callback.gw b/tests/plug/callback.gw new file mode 100644 index 00000000..832778b6 --- /dev/null +++ b/tests/plug/callback.gw @@ -0,0 +1,2 @@ +#require callback +<<< __file__ >>>; diff --git a/tests/plug/class_template.gw b/tests/plug/class_template.gw index 38432690..264e0021 100644 --- a/tests/plug/class_template.gw +++ b/tests/plug/class_template.gw @@ -1,2 +1,3 @@ +#require class_template var ClassTemplate:[int, int] ct; <<< ct.key >>>; diff --git a/tests/plug/class_template_fail.gw b/tests/plug/class_template_fail.gw new file mode 100644 index 00000000..c07b0f83 --- /dev/null +++ b/tests/plug/class_template_fail.gw @@ -0,0 +1,2 @@ +#require class_template_fail +<<< __file__ >>>; diff --git a/tests/plug/class_template_invalid.gw b/tests/plug/class_template_invalid.gw new file mode 100644 index 00000000..55d995a9 --- /dev/null +++ b/tests/plug/class_template_invalid.gw @@ -0,0 +1,2 @@ +#require class_template_invalid +<<< __file__ >>>; diff --git a/tests/plug/compile_file.gw b/tests/plug/compile_file.gw new file mode 100644 index 00000000..ed03ba6a --- /dev/null +++ b/tests/plug/compile_file.gw @@ -0,0 +1,2 @@ +#require compile_file +<<< __file__ >>>; diff --git a/tests/plug/compile_string.gw b/tests/plug/compile_string.gw new file mode 100644 index 00000000..b6ea861d --- /dev/null +++ b/tests/plug/compile_string.gw @@ -0,0 +1,2 @@ +#require compile_string +<<< __file__ >>>; diff --git a/tests/plug/coverage.gw b/tests/plug/coverage.gw index 99b0ccf1..e0d54055 100644 --- a/tests/plug/coverage.gw +++ b/tests/plug/coverage.gw @@ -1,3 +1,4 @@ +#require coverage <<< var float f >>>; var Coverage c; c.s_i; diff --git a/tests/plug/empty_union.gw b/tests/plug/empty_union.gw new file mode 100644 index 00000000..6fb2d2c2 --- /dev/null +++ b/tests/plug/empty_union.gw @@ -0,0 +1,2 @@ +#require empty_union +<<< __file__ >>>; diff --git a/tests/plug/end_class.gw b/tests/plug/end_class.gw new file mode 100644 index 00000000..ff98b7fe --- /dev/null +++ b/tests/plug/end_class.gw @@ -0,0 +1,2 @@ +#require end_class +<<< __file__ >>>; diff --git a/tests/plug/enum.gw b/tests/plug/enum.gw index 0d8ddb59..a2682e7c 100644 --- a/tests/plug/enum.gw +++ b/tests/plug/enum.gw @@ -1,3 +1,4 @@ +#require enum #! untyped global enum <<< ENUM0 >>>; <<< ENUM1 >>>; diff --git a/tests/plug/enum_fail.gw b/tests/plug/enum_fail.gw new file mode 100644 index 00000000..8fc00484 --- /dev/null +++ b/tests/plug/enum_fail.gw @@ -0,0 +1,2 @@ +#require enum_fail +<<< __file__ >>>; diff --git a/tests/plug/enum_fail2.gw b/tests/plug/enum_fail2.gw new file mode 100644 index 00000000..d48ebc5e --- /dev/null +++ b/tests/plug/enum_fail2.gw @@ -0,0 +1,2 @@ +#require enum_fail2 +<<< __file__ >>>; diff --git a/tests/plug/enum_fail3.gw b/tests/plug/enum_fail3.gw new file mode 100644 index 00000000..8379ec6a --- /dev/null +++ b/tests/plug/enum_fail3.gw @@ -0,0 +1,2 @@ +#require enum_fail3 +<<< __file__ >>>; diff --git a/tests/plug/extend_array.gw b/tests/plug/extend_array.gw index d99718ce..67843c25 100644 --- a/tests/plug/extend_array.gw +++ b/tests/plug/extend_array.gw @@ -1,3 +1,4 @@ +#require extend_array var ArrayExt a; <<< a >>>; <<< a.size() >>>; diff --git a/tests/plug/fail_on_next_arg.gw b/tests/plug/fail_on_next_arg.gw new file mode 100644 index 00000000..3bb8daec --- /dev/null +++ b/tests/plug/fail_on_next_arg.gw @@ -0,0 +1,2 @@ +#require fail_on_next_arg +<<< __file__ >>>; diff --git a/tests/plug/fail_on_next_arg2.gw b/tests/plug/fail_on_next_arg2.gw new file mode 100644 index 00000000..fc189c80 --- /dev/null +++ b/tests/plug/fail_on_next_arg2.gw @@ -0,0 +1,2 @@ +#require fail_on_next_arg2 +<<< __file__ >>>; diff --git a/tests/plug/fptr.gw b/tests/plug/fptr.gw index 0acefb39..a427bc71 100644 --- a/tests/plug/fptr.gw +++ b/tests/plug/fptr.gw @@ -1,3 +1,4 @@ +#require fptr fun void test(){ <<< "test" >>>; } var PtrType ptr; test(); @@ -10,4 +11,3 @@ FuncTypedef.test_func(); var FuncTypedef.PtrType _ptr; <<< FuncTypedef.ptr >>>; FuncTypedef.ptr(); - diff --git a/tests/plug/fptr_tmpl.gw b/tests/plug/fptr_tmpl.gw new file mode 100644 index 00000000..c67df8af --- /dev/null +++ b/tests/plug/fptr_tmpl.gw @@ -0,0 +1,2 @@ +#require fptr_tmpl +<<< __file__ >>>; diff --git a/tests/plug/fptr_tmpl_fail.gw b/tests/plug/fptr_tmpl_fail.gw new file mode 100644 index 00000000..24e85719 --- /dev/null +++ b/tests/plug/fptr_tmpl_fail.gw @@ -0,0 +1,2 @@ +#require fptr_tmpl_fail +<<< __file__ >>>; diff --git a/tests/plug/func_fail.gw b/tests/plug/func_fail.gw new file mode 100644 index 00000000..5edc24f9 --- /dev/null +++ b/tests/plug/func_fail.gw @@ -0,0 +1,2 @@ +#require func_fail +<<< __file__ >>>; diff --git a/tests/plug/func_fail2.gw b/tests/plug/func_fail2.gw new file mode 100644 index 00000000..c2dc9433 --- /dev/null +++ b/tests/plug/func_fail2.gw @@ -0,0 +1,2 @@ +#require func_fail2 +<<< __file__ >>>; diff --git a/tests/plug/func_fail3.gw b/tests/plug/func_fail3.gw new file mode 100644 index 00000000..331e4702 --- /dev/null +++ b/tests/plug/func_fail3.gw @@ -0,0 +1,2 @@ +#require func_fail3 +<<< __file__ >>>; diff --git a/tests/plug/func_fail4.gw b/tests/plug/func_fail4.gw new file mode 100644 index 00000000..631c2a11 --- /dev/null +++ b/tests/plug/func_fail4.gw @@ -0,0 +1,2 @@ +#require func_fail4 +<<< __file__ >>>; diff --git a/tests/plug/func_subscript_not_empty.gw b/tests/plug/func_subscript_not_empty.gw new file mode 100644 index 00000000..cfeeab17 --- /dev/null +++ b/tests/plug/func_subscript_not_empty.gw @@ -0,0 +1,2 @@ +#require func_subscript_not_empty +<<< __file__ >>>; diff --git a/tests/plug/func_tmpl.gw b/tests/plug/func_tmpl.gw index 5916a402..83974670 100644 --- a/tests/plug/func_tmpl.gw +++ b/tests/plug/func_tmpl.gw @@ -1,2 +1,3 @@ +#require func_tmpl test:[int](1); test(1); diff --git a/tests/plug/func_tmpl_fail.gw b/tests/plug/func_tmpl_fail.gw new file mode 100644 index 00000000..1979793f --- /dev/null +++ b/tests/plug/func_tmpl_fail.gw @@ -0,0 +1,2 @@ +#require func_tmpl_fail +<<< __file__ >>>; diff --git a/tests/plug/func_too_many_arg.gw b/tests/plug/func_too_many_arg.gw new file mode 100644 index 00000000..b011054c --- /dev/null +++ b/tests/plug/func_too_many_arg.gw @@ -0,0 +1,2 @@ +#require func_too_many_arg +<<< __file__ >>>; diff --git a/tests/plug/global_func.gw b/tests/plug/global_func.gw index c4a56122..60703179 100644 --- a/tests/plug/global_func.gw +++ b/tests/plug/global_func.gw @@ -1,3 +1,3 @@ +#require global_func <<< test >>>; <<< 1 => test >>>; - diff --git a/tests/plug/global_var.gw b/tests/plug/global_var.gw index 3e401b0c..91f4674f 100644 --- a/tests/plug/global_var.gw +++ b/tests/plug/global_var.gw @@ -1,3 +1,4 @@ +#require global_var <<< i >>>; <<< "other test" => i >>>; <<< 12 => f >>>; diff --git a/tests/plug/invalid_arg.gw b/tests/plug/invalid_arg.gw new file mode 100644 index 00000000..9223e112 --- /dev/null +++ b/tests/plug/invalid_arg.gw @@ -0,0 +1,2 @@ +#require invalid_arg +<<< __file__ >>>; diff --git a/tests/plug/invalid_array.gw b/tests/plug/invalid_array.gw new file mode 100644 index 00000000..0fd80fbc --- /dev/null +++ b/tests/plug/invalid_array.gw @@ -0,0 +1,2 @@ +#require invalid_array +<<< __file__ >>>; diff --git a/tests/plug/invalid_func.gw b/tests/plug/invalid_func.gw new file mode 100644 index 00000000..2fc7ae7e --- /dev/null +++ b/tests/plug/invalid_func.gw @@ -0,0 +1,2 @@ +#require invalid_func +<<< __file__ >>>; diff --git a/tests/plug/invalid_names.gw b/tests/plug/invalid_names.gw new file mode 100644 index 00000000..6bc71724 --- /dev/null +++ b/tests/plug/invalid_names.gw @@ -0,0 +1,2 @@ +#require invalid_names +<<< __file__ >>>; diff --git a/tests/plug/invalid_names0.gw b/tests/plug/invalid_names0.gw new file mode 100644 index 00000000..76e1027a --- /dev/null +++ b/tests/plug/invalid_names0.gw @@ -0,0 +1,2 @@ +#require invalid_names0 +<<< __file__ >>>; diff --git a/tests/plug/invalid_names1.gw b/tests/plug/invalid_names1.gw new file mode 100644 index 00000000..b2dc86c2 --- /dev/null +++ b/tests/plug/invalid_names1.gw @@ -0,0 +1,2 @@ +#require invalid_names1 +<<< __file__ >>>; diff --git a/tests/plug/invalid_names2.gw b/tests/plug/invalid_names2.gw new file mode 100644 index 00000000..6be95ab7 --- /dev/null +++ b/tests/plug/invalid_names2.gw @@ -0,0 +1,2 @@ +#require invalid_names2 +<<< __file__ >>>; diff --git a/tests/plug/invalid_names3.gw b/tests/plug/invalid_names3.gw new file mode 100644 index 00000000..234a3b48 --- /dev/null +++ b/tests/plug/invalid_names3.gw @@ -0,0 +1,2 @@ +#require invalid_names3 +<<< __file__ >>>; diff --git a/tests/plug/invalid_type1.gw b/tests/plug/invalid_type1.gw new file mode 100644 index 00000000..0e7cd1f9 --- /dev/null +++ b/tests/plug/invalid_type1.gw @@ -0,0 +1,2 @@ +#require invalid_type1 +<<< __file__ >>>; diff --git a/tests/plug/invalid_type2.gw b/tests/plug/invalid_type2.gw new file mode 100644 index 00000000..62325e5b --- /dev/null +++ b/tests/plug/invalid_type2.gw @@ -0,0 +1,2 @@ +#require invalid_type2 +<<< __file__ >>>; diff --git a/tests/plug/invalid_type3.gw b/tests/plug/invalid_type3.gw new file mode 100644 index 00000000..d7413bb5 --- /dev/null +++ b/tests/plug/invalid_type3.gw @@ -0,0 +1,2 @@ +#require invalid_type3 +<<< __file__ >>>; diff --git a/tests/plug/mk_type_array.gw b/tests/plug/mk_type_array.gw new file mode 100644 index 00000000..28fda930 --- /dev/null +++ b/tests/plug/mk_type_array.gw @@ -0,0 +1,2 @@ +#require mk_type_array +<<< __file__ >>>; diff --git a/tests/plug/no_import.gw b/tests/plug/no_import.gw new file mode 100644 index 00000000..dd075818 --- /dev/null +++ b/tests/plug/no_import.gw @@ -0,0 +1,2 @@ +#require no_import +<<< __file__ >>>; diff --git a/tests/plug/not_importing.gw b/tests/plug/not_importing.gw new file mode 100644 index 00000000..933e07b6 --- /dev/null +++ b/tests/plug/not_importing.gw @@ -0,0 +1,2 @@ +#require not_importing +<<< __file__ >>>; diff --git a/tests/plug/op_already_imported.gw b/tests/plug/op_already_imported.gw index ddbb3b6a..9cd44406 100644 --- a/tests/plug/op_already_imported.gw +++ b/tests/plug/op_already_imported.gw @@ -1,3 +1,3 @@ -#! [contains] already imported #require op_already_imported +#! [contains] already imported <<< 1 >>>; diff --git a/tests/plug/pass.gw b/tests/plug/pass.gw new file mode 100644 index 00000000..233e1f2e --- /dev/null +++ b/tests/plug/pass.gw @@ -0,0 +1,2 @@ +#require pass +<<< __file__ >>>; diff --git a/tests/plug/specialid_emit.gw b/tests/plug/specialid_emit.gw index ae200733..0eec0eba 100644 --- a/tests/plug/specialid_emit.gw +++ b/tests/plug/specialid_emit.gw @@ -1 +1,2 @@ +#require specialid_emit <<< testid >>>; diff --git a/tests/plug/static_string.gw b/tests/plug/static_string.gw index dc3f911a..f94a3bd5 100644 --- a/tests/plug/static_string.gw +++ b/tests/plug/static_string.gw @@ -1,2 +1,3 @@ +#require static_string #!<<< StaticString.self >>>; <<< self >>>; diff --git a/tests/plug/str2decl.gw b/tests/plug/str2decl.gw new file mode 100644 index 00000000..9532ca7d --- /dev/null +++ b/tests/plug/str2decl.gw @@ -0,0 +1,2 @@ +#require str2decl +<<< __file__ >>>; diff --git a/tests/plug/str2list_fail.gw b/tests/plug/str2list_fail.gw new file mode 100644 index 00000000..57d81272 --- /dev/null +++ b/tests/plug/str2list_fail.gw @@ -0,0 +1,2 @@ +#require str2list_fail +<<< __file__ >>>; diff --git a/tests/plug/template_arg.gw b/tests/plug/template_arg.gw new file mode 100644 index 00000000..b65012fa --- /dev/null +++ b/tests/plug/template_arg.gw @@ -0,0 +1,2 @@ +#require template_arg +<<< __file__ >>>; diff --git a/tests/plug/trig.gw b/tests/plug/trig.gw index cbc5f36e..849d12aa 100644 --- a/tests/plug/trig.gw +++ b/tests/plug/trig.gw @@ -1,3 +1,4 @@ +#require trig var Trig trig => dac; adc :=> trig; adc :=< trig; diff --git a/tests/plug/typedef.gw b/tests/plug/typedef.gw index ea3d603e..8a3ec9b2 100644 --- a/tests/plug/typedef.gw +++ b/tests/plug/typedef.gw @@ -1,3 +1,4 @@ +#require typedef var Typedef t; #!fun int test(int i) { <<< i >>>; } #!test @=> t; diff --git a/tests/plug/typedef_fail.gw b/tests/plug/typedef_fail.gw new file mode 100644 index 00000000..c1b0f5ec --- /dev/null +++ b/tests/plug/typedef_fail.gw @@ -0,0 +1,2 @@ +#require typedef_fail +<<< __file__ >>>; diff --git a/tests/plug/typedef_tmpl.gw b/tests/plug/typedef_tmpl.gw new file mode 100644 index 00000000..c98fc082 --- /dev/null +++ b/tests/plug/typedef_tmpl.gw @@ -0,0 +1,2 @@ +#require typedef_tmpl +<<< __file__ >>>; diff --git a/tests/plug/ugen_connect.gw b/tests/plug/ugen_connect.gw new file mode 100644 index 00000000..cf2a999d --- /dev/null +++ b/tests/plug/ugen_connect.gw @@ -0,0 +1,2 @@ +#require ugen_connect +<<< __file__ >>>; diff --git a/tests/plug/union.gw b/tests/plug/union.gw index d32885de..591ef1cf 100644 --- a/tests/plug/union.gw +++ b/tests/plug/union.gw @@ -1,3 +1,4 @@ +#require union var Union u; <<< u.i >>>; <<< 12 => u.f >>>; diff --git a/tests/plug/union_fail_exp.gw b/tests/plug/union_fail_exp.gw new file mode 100644 index 00000000..27d1a699 --- /dev/null +++ b/tests/plug/union_fail_exp.gw @@ -0,0 +1,2 @@ +#require union_fail_exp +<<< __file__ >>>; diff --git a/tests/plug/union_member.gw b/tests/plug/union_member.gw new file mode 100644 index 00000000..a743ff4e --- /dev/null +++ b/tests/plug/union_member.gw @@ -0,0 +1,2 @@ +#require union_member +<<< __file__ >>>; diff --git a/tests/plug/union_name.gw b/tests/plug/union_name.gw index c5ad1d05..38216c55 100644 --- a/tests/plug/union_name.gw +++ b/tests/plug/union_name.gw @@ -1,2 +1,3 @@ +#require union_name <<< my_union >>>; <<>>; diff --git a/tests/plug/union_tmpl.gw b/tests/plug/union_tmpl.gw index 5d6c0c60..a7ac5d4d 100644 --- a/tests/plug/union_tmpl.gw +++ b/tests/plug/union_tmpl.gw @@ -1,2 +1,3 @@ +#require union_tmpl <<< var U:[Event] u>>>; <<< u.a >>>; diff --git a/tests/plug/union_tmpl_fail.gw b/tests/plug/union_tmpl_fail.gw new file mode 100644 index 00000000..c70c688b --- /dev/null +++ b/tests/plug/union_tmpl_fail.gw @@ -0,0 +1,2 @@ +#require union_tmpl_fail +<<< __file__ >>>; diff --git a/tests/plug/union_tmpl_fail2.gw b/tests/plug/union_tmpl_fail2.gw new file mode 100644 index 00000000..06566c78 --- /dev/null +++ b/tests/plug/union_tmpl_fail2.gw @@ -0,0 +1,2 @@ +#require union_tmpl_fail2 +<<< __file__ >>>; diff --git a/tests/plug/union_tmpl_fail3.gw b/tests/plug/union_tmpl_fail3.gw new file mode 100644 index 00000000..b888fa14 --- /dev/null +++ b/tests/plug/union_tmpl_fail3.gw @@ -0,0 +1,2 @@ +#require union_tmpl_fail3 +<<< __file__ >>>; diff --git a/tests/plug/variadic.gw b/tests/plug/variadic.gw index 3213c303..48f8b575 100644 --- a/tests/plug/variadic.gw +++ b/tests/plug/variadic.gw @@ -1,3 +1,4 @@ +#require variadic <<< "test builtin variadic fun" >>>; var Variadic v; "iiii" => var string format; diff --git a/tests/plug/vm_remove.gw b/tests/plug/vm_remove.gw index 31429431..85078c1a 100644 --- a/tests/plug/vm_remove.gw +++ b/tests/plug/vm_remove.gw @@ -1,2 +1,3 @@ +#require vm_remove test(12); test(1); -- 2.43.0