Changed test cases to open Swig.
Changed test case runme line a bit to link swig.cmo. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5207 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b770c69ebc
commit
c283f61209
15 changed files with 14 additions and 233 deletions
|
|
@ -15,7 +15,7 @@ C_TEST_CASES =
|
||||||
run_testcase = \
|
run_testcase = \
|
||||||
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
|
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
|
||||||
ocamlc -c $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX); \
|
ocamlc -c $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX); \
|
||||||
ocamlc -custom -g -cc '$(CXX)' -o runme $(srcdir)/$*\.cmo $(srcdir)/$*\_runme.cmo $(srcdir)/$*\_wrap.o ; \
|
ocamlc swig.cmo -custom -g -cc '$(CXX)' -o runme $(srcdir)/$*\.cmo $(srcdir)/$*\_runme.cmo $(srcdir)/$*\_wrap.o ; \
|
||||||
./runme) ; \
|
./runme) ; \
|
||||||
fi ;
|
fi ;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
open Swig
|
||||||
open Class_ignore
|
open Class_ignore
|
||||||
|
|
||||||
let a = new_Bar C_void
|
let a = new_Bar C_void
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
(* Stolen from the python tests *)
|
(* Stolen from the python tests *)
|
||||||
|
open Swig
|
||||||
open Minherit
|
open Minherit
|
||||||
|
|
||||||
let a = new_Foo C_void
|
let a = new_Foo C_void
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
open Swig
|
||||||
open Name
|
open Name
|
||||||
|
|
||||||
let _ = if (get_int _Baz_2) - (get_int (_bar_2 C_void)) == 30
|
let _ = if (get_int _Baz_2) - (get_int (_bar_2 C_void)) == 30
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
open Swig
|
||||||
open Newobject1
|
open Newobject1
|
||||||
|
|
||||||
exception RuntimeError of string * int
|
exception RuntimeError of string * int
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
open Swig
|
||||||
open Overload_copy
|
open Overload_copy
|
||||||
|
|
||||||
let f = new_Foo C_void
|
let f = new_Foo C_void
|
||||||
|
|
|
||||||
|
|
@ -1,232 +0,0 @@
|
||||||
Failed:
|
|
||||||
director_abstract.cpptest
|
|
||||||
template_array_numeric.cpptest
|
|
||||||
typedef_inherit.cpptest
|
|
||||||
template_typedef_import.multicpptest
|
|
||||||
Success:
|
|
||||||
abstract_inherit.cpptest
|
|
||||||
abstract_inherit_ok.cpptest
|
|
||||||
abstract_signature.cpptest
|
|
||||||
abstract_typedef.cpptest
|
|
||||||
abstract_typedef2.cpptest
|
|
||||||
abstract_virtual.cpptest
|
|
||||||
add_link.cpptest
|
|
||||||
anonymous_arg.cpptest
|
|
||||||
anonymous_bitfield.cpptest
|
|
||||||
argout.cpptest
|
|
||||||
arrayref.cpptest
|
|
||||||
arrays_dimensionless.cpptest
|
|
||||||
arrays_global.cpptest
|
|
||||||
arrays_global_twodim.cpptest
|
|
||||||
arrays_scope.cpptest
|
|
||||||
bloody_hell.cpptest
|
|
||||||
bool_default.cpptest
|
|
||||||
bools.cpptest
|
|
||||||
casts.cpptest
|
|
||||||
cast_operator.cpptest
|
|
||||||
class_ignore.cpptest
|
|
||||||
class_scope_weird.cpptest
|
|
||||||
const_const_2.cpptest
|
|
||||||
constant_pointers.cpptest
|
|
||||||
constover.cpptest
|
|
||||||
constructor_exception.cpptest
|
|
||||||
constructor_explicit.cpptest
|
|
||||||
constructor_value.cpptest
|
|
||||||
conversion.cpptest
|
|
||||||
conversion_namespace.cpptest
|
|
||||||
conversion_ns_template.cpptest
|
|
||||||
cplusplus_throw.cpptest
|
|
||||||
cpp_enum.cpptest
|
|
||||||
cpp_enum_scope.cpptest
|
|
||||||
cpp_namespace.cpptest
|
|
||||||
cpp_nodefault.cpptest
|
|
||||||
cpp_static.cpptest
|
|
||||||
cpp_typedef.cpptest
|
|
||||||
default_cast.cpptest
|
|
||||||
default_char.cpptest
|
|
||||||
default_constructor.cpptest
|
|
||||||
default_ns.cpptest
|
|
||||||
default_ref.cpptest
|
|
||||||
director_basic.cpptest
|
|
||||||
director_exception.cpptest
|
|
||||||
director_finalizer.cpptest
|
|
||||||
director_unroll.cpptest
|
|
||||||
director_wombat.cpptest
|
|
||||||
dynamic_cast.cpptest
|
|
||||||
enum_plus.cpptest
|
|
||||||
enum_scope.cpptest
|
|
||||||
enum_scope_template.cpptest
|
|
||||||
enum_var.cpptest
|
|
||||||
evil_diamond.cpptest
|
|
||||||
evil_diamond_ns.cpptest
|
|
||||||
evil_diamond_prop.cpptest
|
|
||||||
extend_placement.cpptest
|
|
||||||
extend_template.cpptest
|
|
||||||
extend_template_ns.cpptest
|
|
||||||
extern_throws.cpptest
|
|
||||||
global_ns_arg.cpptest
|
|
||||||
grouping.cpptest
|
|
||||||
ignore_parameter.cpptest
|
|
||||||
import_nomodule.cpptest
|
|
||||||
inherit_missing.cpptest
|
|
||||||
inline_initializer.cpptest
|
|
||||||
kind.cpptest
|
|
||||||
lib_carrays.cpptest
|
|
||||||
lib_cdata.cpptest
|
|
||||||
lib_cpointer.cpptest
|
|
||||||
lib_std_deque.cpptest
|
|
||||||
lib_std_pair.cpptest
|
|
||||||
lib_std_string.cpptest
|
|
||||||
lib_std_vector.cpptest
|
|
||||||
lib_typemaps.cpptest
|
|
||||||
long_long_apply.cpptest
|
|
||||||
member_template.cpptest
|
|
||||||
minherit.cpptest
|
|
||||||
name_cxx.cpptest
|
|
||||||
name_inherit.cpptest
|
|
||||||
namespace_enum.cpptest
|
|
||||||
namespace_extend.cpptest
|
|
||||||
namespace_nested.cpptest
|
|
||||||
namespace_spaces.cpptest
|
|
||||||
namespace_template.cpptest
|
|
||||||
namespace_typemap.cpptest
|
|
||||||
namespace_virtual_method.cpptest
|
|
||||||
newobject1.cpptest
|
|
||||||
overload_complicated.cpptest
|
|
||||||
overload_copy.cpptest
|
|
||||||
overload_extend.cpptest
|
|
||||||
overload_simple.cpptest
|
|
||||||
overload_subtype.cpptest
|
|
||||||
overload_template.cpptest
|
|
||||||
pointer_reference.cpptest
|
|
||||||
primitive_ref.cpptest
|
|
||||||
private_assign.cpptest
|
|
||||||
pure_virtual.cpptest
|
|
||||||
reference_global_vars.cpptest
|
|
||||||
rename_default.cpptest
|
|
||||||
rename_scope.cpptest
|
|
||||||
return_value_scope.cpptest
|
|
||||||
rname.cpptest
|
|
||||||
smart_pointer_const.cpptest
|
|
||||||
smart_pointer_const2.cpptest
|
|
||||||
smart_pointer_multi.cpptest
|
|
||||||
smart_pointer_multi_typedef.cpptest
|
|
||||||
smart_pointer_namespace.cpptest
|
|
||||||
smart_pointer_not.cpptest
|
|
||||||
smart_pointer_overload.cpptest
|
|
||||||
smart_pointer_protected.cpptest
|
|
||||||
smart_pointer_rename.cpptest
|
|
||||||
smart_pointer_simple.cpptest
|
|
||||||
smart_pointer_static.cpptest
|
|
||||||
smart_pointer_typedef.cpptest
|
|
||||||
static_array_member.cpptest
|
|
||||||
static_const_member.cpptest
|
|
||||||
static_const_member_2.cpptest
|
|
||||||
struct_value.cpptest
|
|
||||||
template.cpptest
|
|
||||||
template_arg_replace.cpptest
|
|
||||||
template_arg_scope.cpptest
|
|
||||||
template_arg_typename.cpptest
|
|
||||||
template_base_template.cpptest
|
|
||||||
template_classes.cpptest
|
|
||||||
template_const_ref.cpptest
|
|
||||||
template_construct.cpptest
|
|
||||||
template_default.cpptest
|
|
||||||
template_default2.cpptest
|
|
||||||
template_default_inherit.cpptest
|
|
||||||
template_default_qualify.cpptest
|
|
||||||
template_default_vw.cpptest
|
|
||||||
template_enum.cpptest
|
|
||||||
template_enum_ns_inherit.cpptest
|
|
||||||
template_enum_typedef.cpptest
|
|
||||||
template_explicit.cpptest
|
|
||||||
template_extend_overload.cpptest
|
|
||||||
template_extend_overload_2.cpptest
|
|
||||||
template_extend1.cpptest
|
|
||||||
template_extend2.cpptest
|
|
||||||
template_forward.cpptest
|
|
||||||
template_inherit.cpptest
|
|
||||||
template_inherit_abstract.cpptest
|
|
||||||
template_int_const.cpptest
|
|
||||||
template_ns2.cpptest
|
|
||||||
template_ns3.cpptest
|
|
||||||
template_ns4.cpptest
|
|
||||||
template_ns_enum.cpptest
|
|
||||||
template_ns_enum2.cpptest
|
|
||||||
template_ns_inherit.cpptest
|
|
||||||
template_ns_scope.cpptest
|
|
||||||
template_partial_arg.cpptest
|
|
||||||
template_qualifier.cpptest
|
|
||||||
template_ref_type.cpptest
|
|
||||||
template_rename.cpptest
|
|
||||||
template_retvalue.cpptest
|
|
||||||
template_specialization.cpptest
|
|
||||||
template_static.cpptest
|
|
||||||
template_tbase_template.cpptest
|
|
||||||
template_type_namespace.cpptest
|
|
||||||
template_typedef.cpptest
|
|
||||||
template_typedef_cplx.cpptest
|
|
||||||
template_typedef_cplx2.cpptest
|
|
||||||
template_typedef_cplx3.cpptest
|
|
||||||
template_typedef_cplx4.cpptest
|
|
||||||
template_virtual.cpptest
|
|
||||||
template_whitespace.cpptest
|
|
||||||
throw_exception.cpptest
|
|
||||||
typedef_array_member.cpptest
|
|
||||||
typedef_class.cpptest
|
|
||||||
typedef_funcptr.cpptest
|
|
||||||
typedef_mptr.cpptest
|
|
||||||
typedef_reference.cpptest
|
|
||||||
typedef_scope.cpptest
|
|
||||||
typemap_namespace.cpptest
|
|
||||||
typemap_ns_using.cpptest
|
|
||||||
typename.cpptest
|
|
||||||
union_scope.cpptest
|
|
||||||
using1.cpptest
|
|
||||||
using2.cpptest
|
|
||||||
using_composition.cpptest
|
|
||||||
using_extend.cpptest
|
|
||||||
using_inherit.cpptest
|
|
||||||
using_private.cpptest
|
|
||||||
using_protected.cpptest
|
|
||||||
valuewrapper.cpptest
|
|
||||||
valuewrapper_base.cpptest
|
|
||||||
valuewrapper_const.cpptest
|
|
||||||
valuewrapper_default.cpptest
|
|
||||||
varargs.cpptest
|
|
||||||
virtual_destructor.cpptest
|
|
||||||
voidtest.cpptest
|
|
||||||
arrayptr.ctest
|
|
||||||
arrays.ctest
|
|
||||||
char_constant.ctest
|
|
||||||
const_const.ctest
|
|
||||||
cpp_macro_noarg.ctest
|
|
||||||
defineop.ctest
|
|
||||||
defines.ctest
|
|
||||||
enums.ctest
|
|
||||||
function_typedef.ctest
|
|
||||||
lib_carrays.ctest
|
|
||||||
lib_cdata.ctest
|
|
||||||
lib_cmalloc.ctest
|
|
||||||
lib_constraints.ctest
|
|
||||||
lib_cpointer.ctest
|
|
||||||
lib_math.ctest
|
|
||||||
long_long.ctest
|
|
||||||
macro_2.ctest
|
|
||||||
name.ctest
|
|
||||||
nested.ctest
|
|
||||||
newobject2.ctest
|
|
||||||
overload_extendc.ctest
|
|
||||||
preproc_1.ctest
|
|
||||||
preproc_2.ctest
|
|
||||||
preproc_3.ctest
|
|
||||||
preproc_4.ctest
|
|
||||||
preproc_5.ctest
|
|
||||||
preproc_6.ctest
|
|
||||||
ret_by_value.ctest
|
|
||||||
sizeof_pointer.ctest
|
|
||||||
sneaky1.ctest
|
|
||||||
struct_rename.ctest
|
|
||||||
typemap_subst.ctest
|
|
||||||
unions.ctest
|
|
||||||
imports.multicpptest
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
(* Stolen from ruby test cases *)
|
(* Stolen from ruby test cases *)
|
||||||
|
|
||||||
|
open Swig
|
||||||
open Sneaky1
|
open Sneaky1
|
||||||
|
|
||||||
let x = Sneaky1._add (C_list [ C_int 3; C_int 4 ])
|
let x = Sneaky1._add (C_list [ C_int 3; C_int 4 ])
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
(* Throw exception test *)
|
(* Throw exception test *)
|
||||||
|
|
||||||
|
open Swig
|
||||||
open Throw_exception
|
open Throw_exception
|
||||||
|
|
||||||
let x = new_Foo C_void ;;
|
let x = new_Foo C_void ;;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
open Swig
|
||||||
open Typedef_mptr
|
open Typedef_mptr
|
||||||
|
|
||||||
let soci x = (string_of_int (get_int x))
|
let soci x = (string_of_int (get_int x))
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
(* Fun with type names -- stolen from the ruby runme *)
|
(* Fun with type names -- stolen from the ruby runme *)
|
||||||
|
|
||||||
|
open Swig
|
||||||
open Typename
|
open Typename
|
||||||
|
|
||||||
let f = new_Foo C_void
|
let f = new_Foo C_void
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
(* Test the unions example... *)
|
(* Test the unions example... *)
|
||||||
|
|
||||||
|
open Swig
|
||||||
open Unions
|
open Unions
|
||||||
|
|
||||||
let a = new_SmallStruct C_void
|
let a = new_SmallStruct C_void
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
open Swig
|
||||||
open Using_protected
|
open Using_protected
|
||||||
|
|
||||||
let f = new_FooBar C_void
|
let f = new_FooBar C_void
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
(* Test case stolen from the python directory *)
|
(* Test case stolen from the python directory *)
|
||||||
|
|
||||||
|
open Swig
|
||||||
open Varargs
|
open Varargs
|
||||||
|
|
||||||
let _ = if _test (C_string "Hello") <> (C_string "Hello") then
|
let _ = if _test (C_string "Hello") <> (C_string "Hello") then
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
open Swig
|
||||||
open Voidtest
|
open Voidtest
|
||||||
|
|
||||||
let _ = _globalfunc C_void
|
let _ = _globalfunc C_void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue