• Home
  • Raw
  • Download

Lines Matching refs:verify

26 def verify(ffi, module_name, source, *args, **kwds):  function
137 lib = verify(ffi, 'test_math_sin', '#include <math.h>')
142 lib = verify(ffi, 'test_repr_lib', '')
148 lib = verify(ffi, 'test_funcarg_ptr', 'int foo(int *p) { return *p; }')
154 lib = verify(ffi, 'test_funcres_ptr',
161 lib = verify(ffi, 'test_global_var_array', 'int a[100] = { 9999 };')
169 lib = verify(ffi, 'test_verify_typedef', 'typedef int **foo_t;')
175 verify(ffi, 'test_verify_typedef_dotdotdot', 'typedef int **foo_t;')
180 verify(ffi, 'test_verify_typedef_star_dotdotdot', 'typedef int **foo_t;')
185 lib = verify(ffi, 'test_global_var_int', 'int a = 999, b, c;')
202 lib = verify(ffi, 'test_macro', "#define FOOBAR (-6912)")
225 lib = verify(ffi, 'test_macro_check_value_ok',
248 lib = verify(ffi, 'test_constant', "#define FOOBAR (-6912)")
255 lib = verify(ffi, 'test_check_value_of_static_const',
264 lib = verify(ffi, 'test_constant_nonint', "#define FOOBAR (-6912.5)")
271 lib = verify(ffi, 'test_constant_ptr', "#define FOOBAR NULL")
278 lib = verify(ffi, 'test_dir', """
298 lib = verify(ffi, 'test_verify_opaque_struct', "struct foo_s;")
304 lib = verify(ffi, 'test_verify_opaque_union', "union foo_s;")
311 lib = verify(ffi, 'test_verify_struct',
336 lib = verify(ffi, 'test_verify_exact_field_offset',
346 lib1 = verify(ffi1, 'test_type_caching_1', 'struct foo_s;')
347 lib2 = verify(ffi2, 'test_type_caching_2', 'struct foo_s;')
363 lib = verify(ffi, 'test_verify_enum',
379 py.test.raises(VerificationError, verify, ffi, 'test_duplicate_enum',
385 verify(ffi, 'test_dotdotdot_length_of_array_field',
396 lib = verify(ffi, 'test_dotdotdot_global_array',
408 verify(ffi, 'test_misdeclared_field_1',
426 verify(ffi, 'test_open_array_in_struct',
437 lib = verify(ffi, 'test_math_sin_type', """
464 verify(ffi, 'test_verify_anonymous_struct_with_typedef',
473 verify(ffi, 'test_verify_anonymous_struct_with_star_typedef',
481 lib = verify(ffi, 'test_verify_anonymous_enum_with_typedef1',
489 lib = verify(ffi, 'test_verify_anonymous_enum_with_typedef2',
496 ffi1 = FFI(); ffi1.cdef(CDEF); verify(ffi1, "test_unique_types_1", CDEF) function
497 ffi2 = FFI(); ffi2.cdef(CDEF); verify(ffi2, "test_unique_types_2", CDEF) function
549 py.test.raises(VerificationError, verify, ffi,
555 py.test.raises(VerificationError, verify, ffi,
561 lib = verify(ffi, "test_unspecified_size_of_global_1", "int glob[10];")
567 lib = verify(ffi, "test_unspecified_size_of_global_2", "int glob[10][5];")
573 lib = verify(ffi, "test_unspecified_size_of_global_3", "int glob[10][5];")
579 lib = verify(ffi, "test_unspecified_size_of_global_4", "int glob[10][5];")
585 verify(ffi1, "test_include_1_parent", "typedef double foo_t;")
589 lib = verify(ffi, "test_include_1", "double ff1(double x) { return 42.5; }")
596 lib1 = verify(ffi1, "test_include_1b_parent",
601 lib = verify(ffi, "test_include_1b", "int foo2(int x) { return x - 5; }")
609 verify(ffi1, "test_include_2_parent", "struct foo_s { int x, y; };")
613 lib = verify(ffi, "test_include_2",
626 verify(ffi1, "test_include_3_parent", "typedef short sshort_t;")
630 lib = verify(ffi, "test_include_3",
640 verify(ffi1, "test_include_4_parent",
645 lib = verify(ffi, "test_include_4",
657 verify(ffi1, "test_include_5_parent",
662 lib = verify(ffi, "test_include_5",
678 verify(ffi1, "test_include_6_parent",
683 lib = verify(ffi, "test_include_6",
697 verify(ffi1, "test_include_7_parent",
703 lib = verify(ffi, "test_include_7",
714 verify(ffi1, "test_include_8_parent", "struct foo_s;")
718 verify(ffi, "test_include_8", "struct foo_s { int x, y; };")
740 lib = verify(ffi, 'test_math_sin_unicode', unicode('#include <math.h>'),
747 lib = verify(ffi, "test_incomplete_struct_as_arg",
760 lib = verify(ffi, "test_incomplete_struct_as_result",
771 lib = verify(ffi, "test_incomplete_struct_as_both",
790 verify(ffi, "test_name_of_unnamed_struct",
806 lib = verify(ffi, "test_address_of_global_var", """
841 lib = verify(ffi, "test_defines__CFFI_", """
851 lib = verify(ffi, "test_unpack_args", """
883 lib = verify(ffi, "test_addressof_function", """
899 lib = verify(ffi, "test_addressof_function_with_struct", """
919 lib = verify(ffi, 'test_issue198', """
933 lib = verify(ffi, 'test_constant_is_not_a_compiler_constant', """
945 lib = verify(ffi, 'test_constant_of_unknown_size',
958 lib = verify(ffi, 'test_variable_of_unknown_size', """
980 lib = verify(ffi, 'test_constant_of_value_unknown_to_the_compiler', """
991 lib = verify(ffi, 'test_dotdot_in_source_file_names', """
1004 lib = verify(ffi, 'test_call_with_incomplete_structs', """
1016 lib = verify(ffi, 'test_struct_array_guess_length_2',
1031 lib = verify(ffi, 'test_struct_array_guess_length_3',
1043 lib = verify(ffi, 'test_global_var_array_2', 'int a[10][8];')
1054 lib = verify(ffi, 'test_global_var_array_3', 'int a[10][8];')
1064 lib = verify(ffi, 'test_global_var_array_4', 'int a[10][8];')
1082 lib = verify(ffi, 'test_some_integer_type', """
1115 lib = verify(ffi, 'test_some_float_type', """
1136 lib = verify(ffi, 'test_some_float_invalid_2', """
1147 lib = verify(ffi, 'test_some_float_invalid_3', """
1165 lib = verify(ffi, 'test_issue200', """
1177 lib = verify(ffi, 'test_alignment_of_longlong',
1185 lib = verify(ffi, 'test_import_from_lib',
1201 lib = verify(ffi, 'test_macro_var_callback',
1250 lib = verify(ffi, 'test_const_fields', """
1261 lib = verify(ffi, 'test_restrict_fields', """
1270 lib = verify(ffi, 'test_volatile_fields', """
1279 lib = verify(ffi, 'test_const_array_fields', """
1288 lib = verify(ffi, 'test_const_array_fields_varlength', """
1297 lib = verify(ffi, 'test_const_array_fields_unknownlength', """
1306 lib = verify(ffi, 'test_const_function_args', """
1316 lib = verify(ffi, 'test_const_function_type_args', """
1327 lib = verify(ffi, 'test_const_constant', """
1336 lib = verify(ffi, 'test_const_via_typedef', """
1349 lib = verify(ffi, 'test_win32_calling_convention_0', r"""
1399 lib = verify(ffi, 'test_win32_calling_convention_1', r"""
1448 lib = verify(ffi, 'test_win32_calling_convention_2', """
1491 lib = verify(ffi, 'test_win32_calling_convention_3', r"""
1553 lib = verify(ffi, 'test_extern_python_1', """
1605 lib = verify(ffi, 'test_extern_python_bogus_name', "int abc;")
1629 lib = verify(ffi, 'test_extern_python_bogus_result_type', "")
1645 lib = verify(ffi, 'test_extern_python_redefine', "")
1665 lib = verify(ffi, 'test_extern_python_struct',
1695 lib = verify(ffi, 'test_extern_python_long_double', "")
1721 lib = verify(ffi, 'test_extern_python_signature', "")
1730 lib = verify(ffi, 'test_extern_python_errors', "")
1768 lib = verify(ffi, 'test_extern_python_stdcall', """
1797 lib = verify(ffi, 'test_extern_python_plus_c', """
1822 lib = verify(ffi, 'test_introspect_function', """
1835 lib = verify(ffi, 'test_introspect_global_var', """
1846 lib = verify(ffi, 'test_introspect_global_var_array', """
1859 lib = verify(ffi, 'test_introspect_integer_const', """
1868 lib = verify(ffi, 'test_introspect_typedef', """
1878 lib = verify(ffi, 'test_introspect_typedef_multiple', """
1886 lib = verify(ffi, 'test_introspect_struct', """
1896 lib = verify(ffi, 'test_introspect_union', """
1906 lib = verify(ffi, 'test_introspect_struct_and_typedef', """
1922 verify(ffi1, "test_introspect_included_type_parent", SOURCE)
1923 verify(ffi2, "test_introspect_included_type", SOURCE)
1932 verify(ffi, "test_introspect_order", """
1945 lib = verify(ffi, "test_bool_in_cpp", "char f(void) { return 2; }")
1951 lib = verify(ffi, "test_bool_bug_cpp", '''
1963 e = py.test.raises(TypeError, verify,
1969 e = py.test.raises(TypeError, verify,
1975 e = py.test.raises(TypeError, verify,
1987 e = py.test.raises(TypeError, verify,
1995 lib = verify(ffi, "test_function_returns_union", """
2004 lib = verify(ffi, "test_function_returns_partial_struct", """
2015 lib = verify(ffi, "test_function_returns_float_complex", """
2029 lib = verify(ffi, "test_function_returns_double_complex", """
2043 lib = verify(ffi, "test_function_argument_float_complex", """
2056 lib = verify(ffi, "test_function_argument_double_complex", """
2072 lib = verify(ffi, "test_typedef_array_dotdotdot", """
2097 lib = verify(ffi, "test_call_with_custom_field_pos", """
2125 lib = verify(ffi, "test_call_with_nested_anonymous_struct", """
2152 lib = verify(ffi, "test_call_with_bitfield", """
2178 lib = verify(ffi, "test_call_with_zero_length_field", """
2202 lib = verify(ffi, "test_call_with_union", """
2227 lib = verify(ffi, "test_call_with_packed_struct", """
2251 py.test.raises(NotImplementedError, verify,
2261 lib = verify(ffi, "test_gcc_visibility_hidden", """
2269 lib = verify(ffi, "test_override_default_definition", "")
2281 lib = verify(ffi, "test_char16_char32_type" + no_cpp * "_nocpp", """
2302 lib = verify(ffi, "test_loader_spec", "")
2313 lib = verify(ffi, "test_realize_struct_error", """