Commit graph

2,959 commits

Author SHA1 Message Date
Oliver Buchtala
348cb2026e Fix regressions in configuration of some Javascript examples. 2014-02-26 22:56:31 +01:00
Oliver Buchtala
424e3f4712 Fix custom javascript interpreter configuration for OSX. 2014-02-26 22:46:24 +01:00
Oliver Buchtala
15f12d9b59 Make examples work with node.js and the custom interpreter. 2014-02-26 22:44:37 +01:00
Oliver Buchtala
b216a739c4 Introduced an extra Makefile for the custom javascript interpreter. 2014-02-26 20:51:38 +01:00
Oliver Buchtala
e62c6126e9 Fix regressions in Javascript example configuration. 2014-02-26 10:47:48 +01:00
Oliver Buchtala
3f22a3d639 Simplification in common javascript example Makefile. 2014-02-20 11:37:40 +01:00
Oliver Buchtala
fd0e75843d Deactivated broken JS examples. 2014-02-20 11:14:48 +01:00
Oliver Buchtala
77ead7017c Refactored configuration for javascript examples. 2014-02-20 11:13:57 +01:00
Oliver Buchtala
48af60d829 Javascript examples. 2013-09-27 03:25:28 +02:00
Oliver Buchtala
6dcbbf07db Conflicts:
.gitignore
	.project
	.travis.yml
	Examples/Makefile.in
	Examples/test-suite/director_nspace.i
2013-09-27 02:29:02 +02:00
Oliver Buchtala
c2d3da2eec Fix test configuration. 2013-09-26 05:14:34 +02:00
Oliver Buchtala
7adf93ef0f Fix test configuration for nodejs. 2013-09-26 04:13:32 +02:00
Oliver Buchtala
2efe63ebb2 Add some test runners. 2013-09-24 01:50:33 +02:00
Oliver Buchtala
8bf966a65c Fix %nspace support and activated relevant tests. 2013-09-24 01:47:13 +02:00
Oliver Buchtala
d34a6da08c Disable warnings for some v8 test-cases. 2013-09-17 01:53:22 +02:00
Oliver Buchtala
dd4ed7f3d6 Disable testcase 'typemap_variables' for v8.
It uses output typemaps that are not compatible with the
v8 API.
2013-09-16 11:46:52 +02:00
Oliver Buchtala
c53e3e4dab Fix configuration for nodejs based tests.
- use $(SWIGOPT)
- less verbose
2013-09-10 14:45:33 +03:00
Oliver Buchtala
001f38c6a9 Fix settings for building nodejs tests.
Removed the `-node` command line flag.
Instead one has to use `-v8 -DBUILDING_NODE_EXTENSION=1`.
2013-09-10 13:29:16 +03:00
Oliver Buchtala
e5ad9cdc05 Added two more Javascript tests.
- `abstract_inherit`
- `char_strings`
2013-09-09 22:26:30 +03:00
Oliver Buchtala
3c5946d998 Redefined set of Javascript smoke tests. 2013-09-09 17:38:44 +03:00
Oliver Buchtala
b6c9c97b96 Fix Javascript generator to use %renamed variable names. 2013-09-09 15:05:11 +03:00
Oliver Buchtala
108143951d Activate Javascript test-cases rename_simple and rename_scope.
These reveal current deficiencies in the Javascript generator with `%rename`ing.
2013-09-09 13:55:08 +03:00
Oliver Buchtala
64da1173dd Activate Javascript testcases rename1-4. 2013-09-09 13:23:47 +03:00
Oliver Buchtala
1438d0cfb4 Add infinity test-case to list of smoke tests. 2013-09-09 13:17:38 +03:00
Eric Wing
e01e337d75 Added unit test using C99 INFINITY. This test actually tests a float
conversion bug where converting to float imposed overflow checking which
should not be there and causes this program to error out. This was seen
originally in Javascript, but it turns out Python has the same bug. Lua
does not have this bug. Other generators have not been tested.

This test also tests the rename feature. The Javascript generator was
not renaming the variable correctly.
2013-09-09 12:53:37 +03:00
Oliver Buchtala
0facc7ecf9 Allow to run the test suite with our list of smoke tests.
The javascript generator can not deal with the whole test-suite.
Moreover, during development I want to have immediate feedback using
a set of smoke tests.
2013-09-06 15:59:43 +03:00
Oliver Buchtala
492d3010ff Javascript V8 test-cases always create cpp wrappers. 2013-09-06 01:40:23 +03:00
Oliver Buchtala
26b5acbbe8 Test-suite Makefile now supports testing for all three Javascript variants.
- node.js
- custom JavascriptCore interpreter
- custom V8 interpreter
2013-09-06 00:42:56 +03:00
Oliver Buchtala
8b0ee5491a Added missing template configuration files for nodejs based tests. 2013-09-04 18:04:40 +02:00
Oliver Buchtala
fec11a8def Allow exceptions in generated example/test node extensions. 2013-09-04 13:07:07 +02:00
Oliver Buchtala
54dd7e96c0 Fix cleanup configuration for javascript test-suite. 2013-09-04 12:47:24 +02:00
Oliver Buchtala
8778146b4b Relax type check in SWIG_AsVal_int.
The array_member test-case revealed that integers
come in as `Numbers`.
2013-09-04 12:10:08 +02:00
Oliver Buchtala
8bbd928831 Make javascript test-suite work with nodejs. 2013-09-03 16:57:40 +02:00
Oliver Buchtala
5da54ca435 Convert javascript examples to nodejs. 2013-09-03 06:26:54 +02:00
Oliver Buchtala
11e2179dd3 First example that addresses node.js as primary execution environment. 2013-09-03 05:40:22 +02:00
Oliver Buchtala
5aba4c7ea6 Starting from scratch with Examples configuration. 2013-09-03 05:35:03 +02:00
Oliver Buchtala
04cdde0563 Add test to check javascript unicode strings. 2013-08-31 03:34:37 +02:00
Oliver Buchtala
bad64925ed Configuration is now easier for building and running examples and tests using v8. 2013-08-31 03:23:10 +02:00
William S Fulton
ada7dd92e4 Fix testcase name 2013-08-29 22:49:59 +01:00
William S Fulton
f55ff50dd5 Skip the UTF-8 BOM of including files.
For avoiding illegal token error when parsing include files which have the UTF-8 BOM.

Closes #75.
2013-08-29 19:22:50 +01:00
William S Fulton
b58dabced9 %implicitconv is improved for overloaded functions.
Like in C++, the methods with the actual types are considered before trying implicit conversions.
2013-08-28 20:30:46 +01:00
William S Fulton
1cc735df5e %implicitconv will now accept None where the implicit conversion takes a C/C++ pointer.
Problem highlighted by Bo Peng on the swig-user mailing list. SF patch #230.
2013-08-28 20:28:15 +01:00
William S Fulton
80f8d1d922 Fix for missing C++ code in std::multimap wrappers.
%template for a std::multimap generated uncompilable code unless a
%template for a std::map of the same template types was also coded up.

This patch is needed in conjunction with previous commit - 5f1fff1849

Closes #64
Closes #65
2013-08-06 07:02:49 +01:00
Karl Wette
479df82616 Octave: more robust configuration
- do not rely on --eval argument to find mkoctfile, instead assume it
  is in the same directory as octave itself (which it always should be)
- check Octave options to make sure they are supported, including
  --no-window-system to prevent warnings if building without an X server
- disable Octave if any vital tests fail
2013-07-16 20:59:50 +01:00
joequant
e8c6384f77 add regression tests for SEXP return values 2013-07-14 20:29:37 +08:00
William S Fulton
d0af4f50d3 Add %pythonbegin directive.
For adding code at the beginning of the generated .py file.
2013-07-05 06:30:16 +01:00
William S Fulton
1c44078751 Improve testing of %pythonprepend and %pythonappend 2013-07-02 20:00:17 +01:00
William S Fulton
ace8fcd972 SWIG_AsWCharPtrAndSize improper operation if cptr NULL
SF bug #1327

This doesn't have any noticeable effect with the usage of
SWIG_AsWCharPtrAndSize as shipped by SWIG, but could be a problem if a
user is using this function with cptr equal to zero and psize is non-zero
 - the length would be incorrectly set due to the call to PyUnicode_GetSize
failing.
2013-07-02 18:58:56 +01:00
William S Fulton
112d7aa6d0 Go examples and test-suite format fixes
Patch has the results of find . -name *.go -exec gofmt -w {} \;

SF Patch #339.
2013-07-01 20:13:36 +01:00
William S Fulton
7f95c7bb3e Use a less confusing macro name, SWIG_PYTHON_NO_DEBUG => SWIG_PYTHON_INTERPRETER_NO_DEBUG 2013-06-11 19:15:57 +01:00