From 9fe205d0f119a64f3a14045920b8229f8ee7687d Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 2 Jul 2009 22:40:49 +0000 Subject: [PATCH] reverse merge last commit - 11348 git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11349 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/common.mk | 7 +++---- Examples/test-suite/csharp/Makefile.in | 10 +++++----- ...ib_arrays_runme.cs => csharp_lib_arrays_runme.cs} | 10 +++++----- ...name_runme.cs => intermediary_classname_runme.cs} | 10 +++++----- ...ustom_csharp_lib_arrays.i => csharp_lib_arrays.i} | 2 +- ...rmediary_classname.i => intermediary_classname.i} | 2 +- Examples/test-suite/java/Makefile.in | 2 +- ..._runme.java => intermediary_classname_runme.java} | 12 ++++++------ 8 files changed, 27 insertions(+), 28 deletions(-) rename Examples/test-suite/csharp/{custom_csharp_lib_arrays_runme.cs => csharp_lib_arrays_runme.cs} (77%) rename Examples/test-suite/csharp/{custom_intermediary_classname_runme.cs => intermediary_classname_runme.cs} (60%) rename Examples/test-suite/{custom_csharp_lib_arrays.i => csharp_lib_arrays.i} (97%) rename Examples/test-suite/{custom_intermediary_classname.i => intermediary_classname.i} (94%) rename Examples/test-suite/java/{custom_intermediary_classname_runme.java => intermediary_classname_runme.java} (58%) diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index 744ffc1c3..9b54765ef 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -9,8 +9,7 @@ # then builds the object code for use by the language. # To complete a test in a language follow these guidelines: # 1) Add testcases to CPP_TEST_CASES (c++) or C_TEST_CASES (c) or -# MULTI_CPP_TEST_CASES (multi-module c++ tests) or -# CUSTOM_TEST_CASES (mainly for customised SWIG comandline options) +# MULTI_CPP_TEST_CASES (multi-module c++ tests) # 2) If not already done, create a makefile which: # a) Defines LANGUAGE matching a language rule in Examples/Makefile, # for example LANGUAGE = java @@ -472,8 +471,8 @@ MULTI_CPP_TEST_CASES += \ # Non standard testcases, usually using custom commandline options # Testcase names are prefixed with custom_ and can be run individually using make testcase.customtest -CUSTOM_TEST_CASES += \ - custom_wallkw \ +CUSTOM_TEST_CASES = \ + custom_allkw \ # individual custom tests - any kind of customisation allowed here # Note: $(basename $@) strips everything after and including the . in the target name diff --git a/Examples/test-suite/csharp/Makefile.in b/Examples/test-suite/csharp/Makefile.in index 0c5ff5520..df5f1a7fd 100644 --- a/Examples/test-suite/csharp/Makefile.in +++ b/Examples/test-suite/csharp/Makefile.in @@ -22,8 +22,8 @@ CPP_TEST_CASES = \ exception_partial_info CUSTOM_TEST_CASES = \ - custom_csharp_lib_arrays \ - custom_intermediary_classname + csharp_lib_arrays \ + intermediary_classname include $(srcdir)/../common.mk @@ -50,9 +50,9 @@ CSHARPFLAGSSPECIAL = +$(run_testcase) # Rules for custom tests -custom_intermediary_classname.customtest: - $(MAKE) $(basename $@).cpptest SWIGOPTCUSTOM="-dllimport custom_intermediary_classname" -custom_csharp_lib_arrays.customtest: +intermediary_classname.customtest: + $(MAKE) $(basename $@).cpptest SWIGOPTCUSTOM="-dllimport intermediary_classname" +csharp_lib_arrays.customtest: $(MAKE) $(basename $@).cpptest CSHARPFLAGSSPECIAL="-unsafe" # Makes a directory for the testcase if it does not exist diff --git a/Examples/test-suite/csharp/custom_csharp_lib_arrays_runme.cs b/Examples/test-suite/csharp/csharp_lib_arrays_runme.cs similarity index 77% rename from Examples/test-suite/csharp/custom_csharp_lib_arrays_runme.cs rename to Examples/test-suite/csharp/csharp_lib_arrays_runme.cs index aa0cd0ede..9f3ea6b88 100644 --- a/Examples/test-suite/csharp/custom_csharp_lib_arrays_runme.cs +++ b/Examples/test-suite/csharp/csharp_lib_arrays_runme.cs @@ -1,5 +1,5 @@ using System; -using custom_csharp_lib_arraysNamespace; +using csharp_lib_arraysNamespace; public class runme { @@ -9,7 +9,7 @@ public class runme int[] source = { 1, 2, 3, 4, 5 }; int[] target = new int[ source.Length ]; - custom_csharp_lib_arrays.myArrayCopy( source, target, target.Length ); + csharp_lib_arrays.myArrayCopy( source, target, target.Length ); CompareArrays(source, target); } @@ -17,7 +17,7 @@ public class runme int[] source = { 1, 2, 3, 4, 5 }; int[] target = new int[ source.Length ]; - custom_csharp_lib_arrays.myArrayCopyUsingFixedArrays( source, target, target.Length ); + csharp_lib_arrays.myArrayCopyUsingFixedArrays( source, target, target.Length ); CompareArrays(source, target); } @@ -25,7 +25,7 @@ public class runme int[] source = { 1, 2, 3, 4, 5 }; int[] target = new int[] { 6, 7, 8, 9, 10 }; - custom_csharp_lib_arrays.myArraySwap( source, target, target.Length ); + csharp_lib_arrays.myArraySwap( source, target, target.Length ); for (int i=0; i