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
bash "$file" "$((n))"
n=$((n+count))
done
- async=$old_async
+# async=$old_async
fi
}
--- /dev/null
+#require array
+<<< __file__ >>>;
--- /dev/null
+#require array_in_var_name
+<<< __file__ >>>;
--- /dev/null
+#require array_in_var_name_fail
+<<< __file__ >>>;
--- /dev/null
+#require array_incoherent_in_var_name
+<<< __file__ >>>;
--- /dev/null
+#require array_invalid_in_var_name
+<<< __file__ >>>;
--- /dev/null
+#require callback
+<<< __file__ >>>;
+#require class_template
var ClassTemplate:[int, int] ct;
<<< ct.key >>>;
--- /dev/null
+#require class_template_fail
+<<< __file__ >>>;
--- /dev/null
+#require class_template_invalid
+<<< __file__ >>>;
--- /dev/null
+#require compile_file
+<<< __file__ >>>;
--- /dev/null
+#require compile_string
+<<< __file__ >>>;
+#require coverage
<<< var float f >>>;
var Coverage c;
c.s_i;
--- /dev/null
+#require empty_union
+<<< __file__ >>>;
--- /dev/null
+#require end_class
+<<< __file__ >>>;
+#require enum
#! untyped global enum
<<< ENUM0 >>>;
<<< ENUM1 >>>;
--- /dev/null
+#require enum_fail
+<<< __file__ >>>;
--- /dev/null
+#require enum_fail2
+<<< __file__ >>>;
--- /dev/null
+#require enum_fail3
+<<< __file__ >>>;
+#require extend_array
var ArrayExt a;
<<< a >>>;
<<< a.size() >>>;
--- /dev/null
+#require fail_on_next_arg
+<<< __file__ >>>;
--- /dev/null
+#require fail_on_next_arg2
+<<< __file__ >>>;
+#require fptr
fun void test(){ <<< "test" >>>; }
var PtrType ptr;
test();
var FuncTypedef.PtrType _ptr;
<<< FuncTypedef.ptr >>>;
FuncTypedef.ptr();
-
--- /dev/null
+#require fptr_tmpl
+<<< __file__ >>>;
--- /dev/null
+#require fptr_tmpl_fail
+<<< __file__ >>>;
--- /dev/null
+#require func_fail
+<<< __file__ >>>;
--- /dev/null
+#require func_fail2
+<<< __file__ >>>;
--- /dev/null
+#require func_fail3
+<<< __file__ >>>;
--- /dev/null
+#require func_fail4
+<<< __file__ >>>;
--- /dev/null
+#require func_subscript_not_empty
+<<< __file__ >>>;
+#require func_tmpl
test:[int](1);
test(1);
--- /dev/null
+#require func_tmpl_fail
+<<< __file__ >>>;
--- /dev/null
+#require func_too_many_arg
+<<< __file__ >>>;
+#require global_func
<<< test >>>;
<<< 1 => test >>>;
-
+#require global_var
<<< i >>>;
<<< "other test" => i >>>;
<<< 12 => f >>>;
--- /dev/null
+#require invalid_arg
+<<< __file__ >>>;
--- /dev/null
+#require invalid_array
+<<< __file__ >>>;
--- /dev/null
+#require invalid_func
+<<< __file__ >>>;
--- /dev/null
+#require invalid_names
+<<< __file__ >>>;
--- /dev/null
+#require invalid_names0
+<<< __file__ >>>;
--- /dev/null
+#require invalid_names1
+<<< __file__ >>>;
--- /dev/null
+#require invalid_names2
+<<< __file__ >>>;
--- /dev/null
+#require invalid_names3
+<<< __file__ >>>;
--- /dev/null
+#require invalid_type1
+<<< __file__ >>>;
--- /dev/null
+#require invalid_type2
+<<< __file__ >>>;
--- /dev/null
+#require invalid_type3
+<<< __file__ >>>;
--- /dev/null
+#require mk_type_array
+<<< __file__ >>>;
--- /dev/null
+#require no_import
+<<< __file__ >>>;
--- /dev/null
+#require not_importing
+<<< __file__ >>>;
-#! [contains] already imported
#require op_already_imported
+#! [contains] already imported
<<< 1 >>>;
--- /dev/null
+#require pass
+<<< __file__ >>>;
+#require specialid_emit
<<< testid >>>;
+#require static_string
#!<<< StaticString.self >>>;
<<< self >>>;
--- /dev/null
+#require str2decl
+<<< __file__ >>>;
--- /dev/null
+#require str2list_fail
+<<< __file__ >>>;
--- /dev/null
+#require template_arg
+<<< __file__ >>>;
+#require trig
var Trig trig => dac;
adc :=> trig;
adc :=< trig;
+#require typedef
var Typedef t;
#!fun int test(int i) { <<< i >>>; }
#!test @=> t;
--- /dev/null
+#require typedef_fail
+<<< __file__ >>>;
--- /dev/null
+#require typedef_tmpl
+<<< __file__ >>>;
--- /dev/null
+#require ugen_connect
+<<< __file__ >>>;
+#require union
var Union u;
<<< u.i >>>;
<<< 12 => u.f >>>;
--- /dev/null
+#require union_fail_exp
+<<< __file__ >>>;
--- /dev/null
+#require union_member
+<<< __file__ >>>;
+#require union_name
<<< my_union >>>;
<<<my_union.i>>>;
+#require union_tmpl
<<< var U:[Event] u>>>;
<<< u.a >>>;
--- /dev/null
+#require union_tmpl_fail
+<<< __file__ >>>;
--- /dev/null
+#require union_tmpl_fail2
+<<< __file__ >>>;
--- /dev/null
+#require union_tmpl_fail3
+<<< __file__ >>>;
+#require variadic
<<< "test builtin variadic fun" >>>;
var Variadic v;
"iiii" => var string format;
+#require vm_remove
test(12);
test(1);