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
Oliver Buchtala
296a5d0285
Minor change in javascript example Makefile configuration.
...
Propagate global CFLAGS and CXXFLAGS to inner javascript targets.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13823 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 01:14:48 +00:00
Oliver Buchtala
4616f9643f
Adapt test-suite configuration to allow switching between js engines.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13822 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 01:14:37 +00:00
Oliver Buchtala
8db76ddee1
Remove generated file from repository.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13818 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 01:13:42 +00:00
Oliver Buchtala
5425edc508
Add library flag for building v8 shell.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13817 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 01:13:29 +00:00
Oliver Buchtala
a82e0a6e8f
Fix c++ linking problem in example 'variables'.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13814 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 01:12:46 +00:00
Oliver Buchtala
bd752ff86b
In example Makefiles for v8 forward to CPP target.
...
As v8 is C++ it is not possible to build wrappers in C.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13801 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 01:09:18 +00:00
Oliver Buchtala
1862f43cfc
Minor clean up in class example.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13800 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 01:09:05 +00:00
Oliver Buchtala
78f5b46381
Fix class example.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13795 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 01:07:43 +00:00
Oliver Buchtala
022c274256
Minor fixes in v8 javascript shell.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13794 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 01:07:21 +00:00
Oliver Buchtala
7200239277
Fix regression in javascript's test-suite configuration.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13789 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 01:05:51 +00:00
Oliver Buchtala
0341e6b14c
Clean up example Makefiles.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13784 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 01:04:26 +00:00
Oliver Buchtala
10dc758cad
Refactored javascript shell implementation to support JSC and v8.
...
Also changed configuration in examples Makefile.in to allow switching modes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13783 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 01:03:42 +00:00
Oliver Buchtala
672208d8d2
Adapt overload example to reflect changes in module.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13782 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 01:03:17 +00:00
Oliver Buchtala
cbb5b711ab
Fix examples after regressions.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13781 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 01:03:00 +00:00
Oliver Buchtala
52aef26997
Add examples check list for batch runs.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13780 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 01:02:30 +00:00
Oliver Buchtala
eff094ef39
Add test "constructor_copy".
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13778 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 01:01:57 +00:00
Oliver Buchtala
548287c600
Update configuration to detect V8 and allow testing with V8.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13777 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 01:01:41 +00:00
Oliver Buchtala
c470864d12
Remove some dead code and an obsolete member variable from JSEmitter.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13771 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:59:03 +00:00
Oliver Buchtala
8577ae4179
Minor clean up.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13769 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:58:37 +00:00
Oliver Buchtala
050219d998
Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel
...
Conflicts:
.project
COPYRIGHT
Doc/Manual/style.css
Examples/Makefile.in
Examples/test-suite/common.mk
Lib/typemaps/strings.swg
Makefile.in
Source/DOH/fio.c
Source/Makefile.am
Source/Modules/emit.cxx
Source/Modules/javascript.cxx
configure.in
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13764 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:56:48 +00:00
William S Fulton
a0e21e82ca
char **STRING_ARRAY typemaps fixed to handle null pointers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13021 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-28 14:29:23 +00:00
William S Fulton
1bc105bd72
Add missing Lua factory.i test for patch #3219676
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13015 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-24 18:56:16 +00:00
William S Fulton
63a6a0e214
Fix symbol name clash under windows in testcase
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13005 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-19 07:13:55 +00:00
Robert Stone
121086fb77
* revert perl5 li_typemaps run tests due to Windows regressions.
...
* stricter casting to sidestep compiler warnings on Windows.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13002 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-18 21:49:32 +00:00
William S Fulton
cc5b232021
testcase fix for vc++
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12998 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-17 05:52:25 +00:00
William S Fulton
f9e85bb27f
Some test-suite fixes for visual studio
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12996 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-16 18:45:33 +00:00
Karl Wette
35b2270f84
Make octave_dim tests pass for octave version != 3.2.4
...
- see SourceForge #3516652
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12995 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-15 22:47:38 +00:00
William S Fulton
117cb9b74a
Fix a few warnings/errors in the test-suite using Solaris compiler
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12993 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-15 21:56:38 +00:00