Commit graph

2,257 commits

Author SHA1 Message Date
William S Fulton
70b9df5ee9 Portable dynamic library loading for Guile
dynamic-link and load-extension work without passing the .so or .dll as
the shared library extension, so these have been dropped so the examples
and test-suite work on Cygwin.

Also update documentation and use the 'lib' prefix as that is what we
commonly name the shared libraries.
2013-05-08 12:42:17 +01:00
William S Fulton
f68cde8bb9 Fix li_std_containers_int test case for Python < 2.6
Workaround bugs in older versions of Python
2013-05-03 19:55:42 +01:00
Geert Janssens
3e0247e553 guile: fix integer test on 64 bit systems 2013-04-28 22:06:27 +02:00
Geert Janssens
469022d311 Disable guile 2's autocompilation feature for the test suite
Autocompilation generates a lot of warnings. Most of them
just informational, but it clutters the test output.
2013-04-28 22:06:26 +02:00
Geert Janssens
b819d2a91e Drop guilegh interface
All of guile's interface files now use the scm interface.
This should not affect any users. Swig generated code
using the scm interface can be mixed with gh interface
using user code.
It does simplify maintenance of the guile swig code though.
2013-04-28 22:06:24 +02:00
Geert Janssens
7dfe4a0653 Make guile test suite default to scm api
In other words guilescm becomes guile.
Deprecated gh api tests are moved to guilegh.
2013-04-28 22:06:21 +02:00
William S Fulton
52858d5353 Fix boost intrusive_ptr testcase compilation with latest boost/gcc 2013-04-27 18:40:57 +01:00
William S Fulton
bdf98744b1 Fix guilescm_ext_test and chicken_ext_test testcases 2013-04-23 22:29:52 +01:00
William S Fulton
9f95e30650 Fix PHP test-suite running examples recently broken in 0fa791d 2013-04-20 02:51:57 +01:00
William S Fulton
439a353a36 Document patch #33 from previous commit and complete run time tests 2013-04-18 23:20:48 +01:00
Jesus Lopez
9be3235988 Support $descriptor() macro in fragments
Closes #36
2013-04-18 23:04:07 +01:00
William S Fulton
857e447654 Fix syntax error when preprocessor macros are defined inside of enum lists
Fixes SF Bug 428, Patch 333
2013-04-18 22:48:42 +01:00
Brant K. Kyser
25eaee49f3 Add check for smart pointer type in generated code for director connection. This fixes a crash in the generated code caused by the dynamic_cast returning 0 because the specified types are incorrect for smart pointer types.
Add runtime test to the C# test suite's director smartptr test that demonstrates crash in generated code when directors are used with smart pointer types.

Closes #34
2013-04-17 21:55:11 +01:00
William S Fulton
3e26318427 Add target language version display during make check. Individual language versions can be checked using 'make check-<lang>-version'. 2013-04-09 19:52:40 +01:00
William S Fulton
1fce0bd2b4 Workaround to Octave seg fault on exit in imports testcase only seems to work in 3.1, not 3.2. Just ignore test now 2013-04-08 21:48:09 +01:00
William S Fulton
dd2cd0298c Work around Octave seg fault on exit in imports testcase on Octave 3.1 and 3.2 2013-04-08 18:32:33 +01:00
William S Fulton
65b917dabb Some test-suite warning fixes 2013-04-06 16:19:17 -07:00
William S Fulton
5d529d5a76 Ruby 1.9 fixes.
SF Bug#1292 - Runtime fixes for Proc changes in ruby-1.9 when using STL wrappers that override the default predicate, such as:

  %template(Map) std::map<swig::LANGUAGE_OBJ, swig::LANGUAGE_OBJ, swig::BinaryPredicate<> >;

Fixes li_std_functors testcases for Ruby 1.9.

Also rb_respond_to return values have changed subtely in 1.9 and return should be treated as a flag instead of checking for Qtrue, see SF Bug #1159.

Also fix li_std_map, li_std_set silently failing - rb_protect behaviour seems to have changed when an exception is thrown, so code has been changed to use rb_rescue. A call to 'rb_set_errinfo(Qnil)' could have solved this after the rb_protect call, but it is only available in 1.9+ and Ruby API changes are not easily and transparently detectable.
2013-04-05 23:41:59 +01:00
William S Fulton
ee92a26819 Fixes for out of source builds for Ruby test-suite 2013-04-02 22:21:48 +01:00
William S Fulton
8801ea3f11 Fix incorrect assumptions in Ruby li_std_set test 2013-03-31 00:21:12 +00:00
William S Fulton
5878ca5f1a Fix autodoc test for python 2.4 2013-03-29 09:20:17 +00:00
William S Fulton
8381cc6b7d Fix test suite lock initialisation leading to random seg faults in li_boost_shared_ptr 2013-03-29 06:31:26 +00:00
William S Fulton
2e0d1b12dc Fix delete_if (reject!) for the STL container wrappers.
Previously they would sometimes seg fault or not work.
2013-03-29 06:28:15 +00:00
William S Fulton
b504b68a62 Fix erratically failing threads_exception python test 2013-03-26 20:57:41 +00:00
Olly Betts
1e00ce6bf9 Fix comment typo in typemap 2013-03-26 15:07:16 +13:00
William S Fulton
3abe3517f8 Don't test shared_ptr for languages that don't have support for shared_ptr 2013-03-23 18:22:20 +00:00
William S Fulton
6fecb05379 Fix director_nspace_director_name_collision test for languages that don't support %nspace 2013-03-19 19:50:44 +00:00
William S Fulton
9d0b20916f Add ability to suppress some director warnings by their method name, not just the containing class name 2013-03-19 19:50:43 +00:00
William S Fulton
de136ad6cf Uncomment testing of overloading of const char arrays which was fixed in svn r12541 for swig-2.0.3. 2013-02-21 07:09:27 +00:00
Karl Wette
ee2b46abe0 Fix SWIG's handling of qualified (e.g. const) variables of array type 2013-02-19 20:05:46 +00:00
William S Fulton
d1b40b468b Fix C code where a typedef name was used for constructor and destructor names in %extend. Deprecate use of typedef names for constructor and destructor names going forwards. 2013-02-18 22:40:42 +00:00
William S Fulton
b80f4dc5e2 Restrict the name used in %extend to be just the struct/class name and not a typedef to a class/struct. Typedefs were only partially working anyway. Anonymous struct typedefs excluded. Deprecate with a warning for now. 2013-02-18 19:53:37 +00:00
William S Fulton
38f37ef5ae Apply patch SF #335 - Truly ignore constructors in directors with %ignore and correct testcase that tests this 2013-01-29 06:55:22 +00:00
William S Fulton
88a64208ae Merge branch 'master' of github.com:swig/swig 2013-01-19 01:29:40 +00:00
William S Fulton
751bedf5e5 Suppress warning in testcase 2013-01-19 01:28:55 +00:00
William S Fulton
6fafa8cecc Merge pull request #17 from tristan0x/fix-test-suite-if-custom-java
use executables path set at ./configure time
2013-01-18 17:13:16 -08:00
William S Fulton
bda67e1d78 Cosmetic makefile change 2013-01-19 01:06:01 +00:00
William S Fulton
95b176b6b3 Java test-suite change to make it possible to not specify a namespace. Re-add java_nspacewithoutpackage testcase 2013-01-18 23:52:48 +00:00
William S Fulton
55f4bfec8e Revert Java test-suite makefile to adf51b5249 2013-01-18 23:47:23 +00:00
Tristan Carel
219555ebea use executables path set at ./configure time 2013-01-17 19:07:30 +01:00
Brant K. Kyser
43ad8e611a Remove comment about previously outstanding TODO that has been cleaned up. 2013-01-17 08:13:04 +00:00
Brant K. Kyser
28da117186 Modify java test-suite Makefile to run the java_nspacewithoutpackage test without the -package option. 2013-01-17 08:13:04 +00:00
Brant K. Kyser
988952af65 Add test case for using nspace without -package. TODO: Fix Makefile.in to actually not use -package when invoking swig. 2013-01-17 08:13:04 +00:00
marvingreenberg
30b1eafd96 fix variable names and makefile logic to correctly set PKGDIRSETUP and SWIGOPT for different cases 2013-01-17 08:13:04 +00:00
marvingreenberg
9855e4d064 Allow certain tests to compile without -package option 2013-01-17 08:13:03 +00:00
William S Fulton
dba0adce71 Minor update to test-suite README help files 2013-01-17 07:48:16 +00:00
William S Fulton
adf51b5249 Make testdir a generic special directory for testcases that require subdirectories.
Merge branch 'inctest' of https://github.com/ptomulik/swig
2013-01-17 07:29:40 +00:00
William S Fulton
0e6af5c0ea Fix cstype typemap lookup for member variables so that a fully qualified variable name matches 2013-01-15 06:45:47 +00:00
Paweł Tomulik
0afbb357d0 moved testdir/* to testdir/inctest/* under Examples/test-suite/ 2013-01-13 23:14:46 +01:00
William S Fulton
afc2b884a4 Merge branch 'master' of github.com:swig/swig 2013-01-12 16:55:07 +00:00