Reenable C++ wrappers for some of the previously failing tests

Document the reason for failure for some of those that still fail
without -nocxx.
This commit is contained in:
Vadim Zeitlin 2021-12-08 00:35:09 +01:00
commit 74e8a6e729

View file

@ -99,97 +99,52 @@ SWIGOPT += -w524 # Suppress SWIGWARN_LANG_EXPERIMENTAL warning
%.ctest: SWIGOPT += -nocxx %.ctest: SWIGOPT += -nocxx
# Tests for which C++ wrappers currently don't compile. # Tests for which C++ wrappers currently don't compile.
apply_strings.cpptest \ contract.cpptest: SWIG_NOCXX = -nocxx # Class derived from a base class with multiple base classes and hence ignored.
autodoc.cpptest \ conversion.cpptest: SWIG_NOCXX = -nocxx # Conversion operator return type not handled specially.
class_scope_weird.cpptest \ conversion_namespace.cpptest: SWIG_NOCXX = -nocxx # Conversion operator name not handled correctly.
contract.cpptest \ conversion_ns_template.cpptest: SWIG_NOCXX = -nocxx # Conversion operator return not handled specially.
conversion.cpptest \ cpp11_default_delete.cpptest: SWIG_NOCXX = -nocxx # Assignment operator and r-value references not handled.
conversion_namespace.cpptest \ cpp11_explicit_conversion_operators.cpptest: SWIG_NOCXX = -nocxx # Conversion operator return type.
conversion_ns_template.cpptest \ cpp11_noexcept.cpptest: SWIG_NOCXX = -nocxx # Assignment operator.
cpp11_default_delete.cpptest \ default_constructor.cpptest: SWIG_NOCXX = -nocxx # Something weird with OSRSpatialReferenceShadow.
cpp11_explicit_conversion_operators.cpptest \ director_classes.cpptest: SWIG_NOCXX = -nocxx # Ref to pointer
cpp11_final_override.cpptest \ director_conversion_operators.cpptest: SWIG_NOCXX = -nocxx # Conversion operator return type.
cpp11_initializer_list.cpptest \ director_frob.cpptest: SWIG_NOCXX = -nocxx # Conversion operator return type.
cpp11_noexcept.cpptest \ extend_template_method.cpptest: SWIG_NOCXX = -nocxx # Wrong form of template function name.
cpp11_shared_ptr_upcast.cpptest \ features.cpptest: SWIG_NOCXX = -nocxx # Conversion operator return type not handled specially.
cpp11_strongly_typed_enumerations.cpptest \ global_namespace.cpptest: SWIG_NOCXX = -nocxx # Const const reference type.
cpp_typedef.cpptest \ li_boost_shared_ptr_director.cpptest: SWIG_NOCXX = -nocxx # Ref to pointer
default_constructor.cpptest \ li_std_vector_ptr.cpptest: SWIG_NOCXX = -nocxx # Ref to pointer
derived_nested.cpptest \ member_template.cpptest: SWIG_NOCXX = -nocxx # Wrong form of template function name.
director_basic.cpptest \ multiple_inheritance_abstract.cpptest: SWIG_NOCXX = -nocxx # Multiple inheritance not supported.
director_classes.cpptest \ multiple_inheritance_interfaces.cpptest: SWIG_NOCXX = -nocxx
director_conversion_operators.cpptest \ multiple_inheritance_nspace.cpptest: SWIG_NOCXX = -nocxx
director_frob.cpptest \ multiple_inheritance_shared_ptr.cpptest: SWIG_NOCXX = -nocxx
director_property.cpptest \ namespace_class.cpptest: SWIG_NOCXX = -nocxx # Many broken type names.
director_string.cpptest \ operator_pointer_ref.cpptest: SWIG_NOCXX = -nocxx
extend_template_method.cpptest \ operbool.cpptest: SWIG_NOCXX = -nocxx
features.cpptest \ overload_null.cpptest: SWIG_NOCXX = -nocxx
global_namespace.cpptest \ overload_template.cpptest: SWIG_NOCXX = -nocxx
ignore_parameter.cpptest \ overload_template_fast.cpptest: SWIG_NOCXX = -nocxx
inherit_target_language.cpptest \ pure_virtual.cpptest: SWIG_NOCXX = -nocxx
kind.cpptest \ rename1.cpptest: SWIG_NOCXX = -nocxx
li_boost_shared_ptr_bits.cpptest \ rename2.cpptest: SWIG_NOCXX = -nocxx
li_boost_shared_ptr_director.cpptest \ rename3.cpptest: SWIG_NOCXX = -nocxx
li_std_except.cpptest \ rename4.cpptest: SWIG_NOCXX = -nocxx
li_std_map.cpptest \ rename_wildcard.cpptest: SWIG_NOCXX = -nocxx
li_std_vector.cpptest \ return_const_value.cpptest: SWIG_NOCXX = -nocxx
li_std_vector_enum.cpptest \ smart_pointer_member.cpptest: SWIG_NOCXX = -nocxx
li_std_vector_ptr.cpptest \ smart_pointer_template_const_overload.cpptest: SWIG_NOCXX = -nocxx
li_swigtype_inout.cpptest \ smart_pointer_templatemethods.cpptest: SWIG_NOCXX = -nocxx # Wrong form of template function name.
member_template.cpptest \ template_const_ref.cpptest: SWIG_NOCXX = -nocxx
multiple_inheritance_abstract.cpptest \ template_default_arg_overloaded.cpptest: SWIG_NOCXX = -nocxx
multiple_inheritance_interfaces.cpptest \ template_inherit_abstract.cpptest: SWIG_NOCXX = -nocxx
multiple_inheritance_nspace.cpptest \ template_methods.cpptest: SWIG_NOCXX = -nocxx
multiple_inheritance_shared_ptr.cpptest \ template_nested.cpptest: SWIG_NOCXX = -nocxx
namespace_class.cpptest \ template_nested_flat.cpptest: SWIG_NOCXX = -nocxx
namespace_virtual_method.cpptest \ template_qualifier.cpptest: SWIG_NOCXX = -nocxx
naturalvar_more.cpptest \ template_static.cpptest: SWIG_NOCXX = -nocxx
nested_ignore.cpptest \ valuewrapper_const.cpptest: SWIG_NOCXX = -nocxx # Misplaced const.
nested_scope_flat.cpptest \
operator_pointer_ref.cpptest \
operbool.cpptest \
overload_arrays.cpptest \
overload_complicated.cpptest \
overload_null.cpptest \
overload_template.cpptest \
overload_template_fast.cpptest \
pure_virtual.cpptest \
refcount.cpptest \
rename1.cpptest \
rename2.cpptest \
rename3.cpptest \
rename4.cpptest \
rename_wildcard.cpptest \
return_const_value.cpptest \
smart_pointer_ignore.cpptest \
smart_pointer_member.cpptest \
smart_pointer_multi_typedef.cpptest \
smart_pointer_template_const_overload.cpptest \
smart_pointer_templatemethods.cpptest \
smart_pointer_typedef.cpptest \
template_arg_scope.cpptest \
template_const_ref.cpptest \
template_default_arg.cpptest \
template_default_arg_overloaded.cpptest \
template_default_vw.cpptest \
template_extend_overload.cpptest \
template_inherit_abstract.cpptest \
template_methods.cpptest \
template_nested.cpptest \
template_nested_flat.cpptest \
template_ns_enum2.cpptest \
template_opaque.cpptest \
template_qualifier.cpptest \
template_retvalue.cpptest \
template_static.cpptest \
template_typedef_class_template.cpptest \
template_typedef_cplx5.cpptest \
template_typemaps.cpptest \
template_typemaps_typedef.cpptest \
template_typemaps_typedef2.cpptest \
valuewrapper_const.cpptest \
valuewrapper_opaque.cpptest \
: SWIGOPT += -nocxx
# Avoid conflict with the C++ keyword for some tests. # Avoid conflict with the C++ keyword for some tests.
SWIG_NS = $* SWIG_NS = $*
@ -199,7 +154,7 @@ typename.cpptest: SWIG_NS = type_name
%.multicpptest: SWIGOPT += -namespace $* %.multicpptest: SWIGOPT += -namespace $*
%.cpptest: SWIGOPT += -namespace $(SWIG_NS) %.cpptest: SWIGOPT += -namespace $(SWIG_NS) $(SWIG_NOCXX)
SRCDIR = ../$(srcdir)/ SRCDIR = ../$(srcdir)/