William S Fulton
ed333b6b97
std::string throws typemaps
...
Go, Guile, Racket, Scilab: Add throws typemaps for std::string so that
thrown string exception messages can be seen.
Test all language for std::string throws typemaps
2022-09-19 09:09:29 +01:00
William S Fulton
4a29229bab
Add catches_strings test to test throws char * typemap
2022-09-19 09:09:29 +01:00
William S Fulton
e97181ebc0
Add missing typecheck typemaps for std::auto_ptr and std::unique_ptr
...
To fix overloading when using these types.
2022-09-17 10:23:51 +01:00
William S Fulton
dad7c93ca0
Provide SWIGTYPE MOVE typemaps in swigmove.i
...
For implementing full move semantics when passing parameters by value.
Based on SWIGTYPE && and std::unique_ptr typemaps which implement move
semantics.
Added for all languages, but untested for: Go, Ocaml, R, Scilab (and
unlikely to be fully functional for same reasons as for std::unique_ptr
support).
Issue #999
2022-09-16 08:36:25 +01:00
William S Fulton
ad1688055d
Correct TCL integers testcase for 32-bit platforms
2022-09-09 22:53:29 +01:00
William S Fulton
2212af3f4f
rvalue reference outputs
...
Document rvalue reference outputs behaviour
Test rvalue reference outputs
2022-09-08 08:46:32 +01:00
William S Fulton
7934561874
Test/fixes to handle NULL pointer for unique_ptr/auto_ptr
...
Also add missing unique_ptr tests for Lua and Racket.
2022-08-31 19:42:55 +01:00
William S Fulton
e139a36511
SWIGTYPE && input typemaps now assume object has been moved
...
Replicated Java implementation.
Fully implemented for:
- C#
- D
- Guile
- Javascript (UTL)
- Lua
- MzScheme
- Octave (UTL)
- Perl (UTL)
- PHP
- Python (UTL)
- Ruby (UTL)
- Tcl (UTL)
PHP std::auto_ptr std::unique_ptr minor tweaks and testcase corrections
2022-08-31 19:40:14 +01:00
William S Fulton
63632f80fb
Correct raw pointer handling test for virtual inheritance
2022-08-11 18:44:36 +01:00
William S Fulton
d4b1152d4b
Add raw pointer handling test for virtual inheritance
...
This is a test added for D in previous commit, now expanded to all target languages.
Tidy up counting object instances.
2022-08-05 22:30:23 +01:00
William S Fulton
a741c7dbcf
auto_ptr and unique_ptr test tweaks
2022-08-04 07:14:30 +01:00
William S Fulton
26fbf99901
Add Tcl support for std::unique_ptr and std::auto_ptr
...
Equivalent to Ruby/Python implementations.
2022-07-30 16:43:05 +01:00
Olly Betts
8c5c14b9ad
Merge branch 'cpp-testing'
...
Closes #2329
2022-07-27 07:55:24 +12:00
Olly Betts
06d375cdab
[Tcl] Fix handling of long long on 32-bit platforms
...
Fixes https://sourceforge.net/p/swig/bugs/977/ reported by Vera and
Kjell Wooding.
Closes #2331
2022-07-27 07:53:45 +12:00
Olly Betts
07f0b732ba
Add machinery for C++14, C++17 and C++20 testing
...
Support running testcases conditional on the compiler supporting
a each language version, like we already handle C++11.
Currently no testcases are actually run in this way for these
newer language versions.
2022-07-26 15:28:51 +12:00
Erez Geva
b88fe498ca
Fix argcargv.i in Perl5, Tcl, PHP
...
Add missing type map for type check.
Add testing of argcargv.i for Perl5, Tcl, PHP and Ruby.
Signed-off-by: Erez Geva <ErezGeva2@gmail.com>
2022-05-11 01:10:12 +02:00
William S Fulton
5cc4591ae7
Consistent cpp11 testing in test-suite
...
Move HAVE_CXX11 into makefiles so that running test-suite
from top level directory or in the language's test-suite directory
is consistent. For example, running 'make check-java-test-suite'
behaves the same as 'cd Examples/test-suite/java && make check'.
2022-03-27 19:34:20 +01:00
Olly Betts
bb15c4eccf
[Tcl] Fix Tcl generic input typemap for std::vector
...
Fixes https://sourceforge.net/p/swig/bugs/1207/
Fixes https://sourceforge.net/p/swig/bugs/1213/
2022-02-10 09:55:58 +13:00
Olly Betts
1d088d7124
Fix comments about version Tcl bug fixed in
2022-02-08 16:39:42 +13:00
Olly Betts
6f4adde4b4
[Tcl] Fix std_vector typecheck typemaps
...
In some cases the typecheck typemap would try to access the first
element of an empty Tcl list.
Fixes https://sourceforge.net/p/swig/bugs/1309/
2022-02-01 13:09:00 +13:00
Dimitris Apostolou
f586d920f7
Fix typos
2021-11-17 07:07:02 +02:00
William S Fulton
99954d6d4e
Shorten testcase variable names for Scilab 6 to work
2021-11-15 22:45:56 +00:00
William S Fulton
12eb0f81ae
Fix overloading for non-pointers and NULL - Tcl
2018-12-29 14:55:43 +00:00
William S Fulton
95e8643d70
Rename func to funk in tests to avoid Go keyword problems
2017-06-16 19:24:48 +01:00
William S Fulton
ca64b06229
Consistent quoting in Makefile
2015-08-21 22:48:34 +01:00
William S Fulton
55a9dc7115
Add c++11 strongly typed enums runtime test for Tcl
2014-11-27 19:59:23 +00:00
Karl Wette
3fe1eb7056
Set SRCDIR when calling test-suite clean targets, in case it's needed
2014-05-29 02:29:27 +02:00
William S Fulton
2b5499a262
Slight simplification of test-suite build for new out-of-source changes
...
Provide default SRCDIR and SCRIPTDIR variables in common.mk and override
only where needed.
2014-05-15 23:11:07 +01:00
Karl Wette
f574a34155
Allow examples and test-suite to be built out of source tree
...
- Examples/Makefile.in rules use SRCDIR as the relative source directory
- ./config.status replicates Examples/ source directory tree in build
directory, and copies each Makefile to build directory, prefixed with
a header which sets SRCDIR to source directory
- Examples/test-suite/.../Makefile.in set SRCDIR from Autoconf-set srcdir
- Examples/test-suite/errors/Makefile.in needs to filter out source
directory from SWIG error messages
- Lua: embedded interpreters are passed location of run-time test
- Python: copy run-time scripts to build directory because of 2to3
conversion; import_packages example copies __init__.py from source
directory; test-suite sets SCRIPTDIR to location of run-time tests
- Javascript: binding.gyp renamed to binding.gyp.in so that $srcdir
can be substituted with SRCDIR; removed './' from require() statements
so that NODE_PATH can be used to point Node.js to build directory
2014-05-11 23:21:10 +02:00
Karl Wette
d5b765d388
Whitespace cleanup of all Makefiles*
...
- some of the %.clean rules in the test-suite Makefiles were using a single tab
as an empty rule, dangerous! I've replaced these with the safer '@exit 0'.
2014-05-02 20:06:11 +02:00
William S Fulton
f35dd29dff
Apply #3300072 from Christian Delbaere to fix multiple module loading not always sharing variables across modules.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12680 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-17 18:12:53 +00:00
William S Fulton
60a1c5eed3
Apply patch 3224663 for Tcl - NULL value fixes and performance improvements for classes with many methods.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12563 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-29 18:57:42 +00:00
Miklos Vajna
451f71d7b1
remove unnecessary extra semicolons in the tesuite
...
Basically just style cleanup, "fi;" or "fi; \" -> "fi".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11523 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-09 22:52:08 +00:00
William S Fulton
56c5b52c1d
remove unnecessary extra shells being spawned in the test-suite
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11522 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-09 22:39:51 +00:00
William S Fulton
9064b08651
better way to provide custom commandline options for individual tests
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11356 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-03 22:23:43 +00:00
William S Fulton
c07efac296
Fix union.i module name and rename to union_parameter.i
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11060 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-12 11:42:27 +00:00
William S Fulton
db83e51441
modify test-suite (barring python atm) to not rely on the -I path to find the input .i file - removes the new warning 125 and sets up the test-suite for testing with ccache. This change required the use of -outcurrentdir and moving the .i files from the language subdirectories to the directory above along with some .i file name changes.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10949 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-26 21:35:15 +00:00
William S Fulton
f06222b993
Add partialcheck make targets. Also add RUNTOOL, COMPILETOOL and SWIGTOOL variables for invoking tools when running tests, compiling or invoking swig
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10482 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-20 21:27:22 +00:00
William S Fulton
ede8b8c87a
Remove cvs $Header$
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10007 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-17 21:56:11 +00:00
William S Fulton
94323e0d52
remove broken tcl test
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9924 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-03 19:45:56 +00:00
William S Fulton
f5bdd056f7
Remove obscure mpointer example and replace with member_pointer.i testcase and runtime examples
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-09 23:47:13 +00:00
William S Fulton
e4bade15f3
fixes to use parallel make when running the examples and test-suite
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9875 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-07-24 21:26:54 +00:00
John Lenz
6dda6f8321
Remove cvsignore files: this is stored on svn:igonre property now
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9593 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-03 08:28:42 +00:00
Olly Betts
7c2638bd89
Use "[info sharedlibextension]" instead of trying ".so" then ".dll". All
...
the other tcl scripts in the test-suite have already been changed in this
way, but this one was missed it seems.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9337 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 22:43:48 +00:00
Marcelo Matus
f77b1da32e
add option to use valgrind
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8876 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 07:17:49 +00:00
Marcelo Matus
c222ef7cee
fix gcc warning reported by R. Bernstein
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8838 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-18 01:29:15 +00:00
Marcelo Matus
f641130612
fix premature object deletion reported by Paul in tcl3d
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8836 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-18 01:19:50 +00:00
Marcelo Matus
07d4ca1013
add missing delete that valgrind misses
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8830 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-17 20:46:46 +00:00
Marcelo Matus
d6757125c2
add/fix std_string test with %naturalvar
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8627 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 06:14:35 +00:00
William S Fulton
f736ec91c2
Get clean target working again
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7873 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-26 09:36:21 +00:00