Commit graph

54 commits

Author SHA1 Message Date
William S Fulton
3d85dfba9a Add c++11 strongly typed enums runtime test for Javascript 2014-12-02 19:59:59 +00:00
Richard
b0afc7a9a5 Allow to specify V8 version, for example:
V8_VERSION=0x031511 ENGINE=v8 make check-javascript-test-suite
2014-08-28 19:46:49 -05:00
William S Fulton
664c6cc81e Fix infinity testcase on windows 2014-05-29 07:50:21 +01:00
Karl Wette
fca95febde Fully clean Javascript test-suite with jsc and v8 2014-05-29 02:29:27 +02:00
Oliver Buchtala
3f0f588891 Javascript: support null pointers.
We allow to set pointer types using JS null.
2014-05-19 16:04:22 +02:00
Oliver Buchtala
2471e4ad9f Javascript: Use RUNTOOL for running tests. 2014-05-19 12:11:15 +02:00
Oliver Buchtala
7cc617a19d Revert "Javascript: support null pointers."
This reverts commit 11963788e0.
2014-05-19 11:46:21 +02:00
Oliver Buchtala
a64549034c Javascript: generalise test-case 'typemap_variables' so that it can be used for Javascript V8.
The original version contains output typemaps that produced incompatible code.
Introduce a pre-processor macro that is set to a valid value for v8.
2014-05-19 00:58:32 +02:00
Oliver Buchtala
11963788e0 Javascript: support null pointers.
We allow to set pointer types using JS null.
2014-05-19 00:21:21 +02:00
William S Fulton
ac89f7f785 Javascript examples tidy up
- Remove empty files
- Improve clean
2014-05-18 00:59:47 +01:00
William S Fulton
beccd3258f Update all languages to use SCRIPTDIR
R also to use SCRIPTPREFIX and SCRIPTSUFFIX
2014-05-15 23:11:07 +01: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
7cd9063b52 Remove execute permissions from various non-executable files
- source files and Makefiles need never be executable
- scripts are run directly by their interpreters in the
  test suites, so also do not need to be executable
2014-05-02 20:06:11 +02:00
Oliver Buchtala
7a7faab765 Fix bug and regression in javascript namespace generator. 2014-04-27 00:34:49 +02:00
William S Fulton
889c8e24c7 Javascript test-suite - warning suppression not needed 2014-04-24 22:49:48 +01:00
Oliver Buchtala
1d10a62192 Fix configuration for Javascript/node ctests. 2014-04-23 02:56:53 +02:00
Oliver Buchtala
f3e3fce664 Fix configuration for ctest with Javascript/v8. 2014-04-23 02:25:07 +02:00
William S Fulton
e730b16fac Revert "Javascript node test-suite makefile fixes for parallel make"
This reverts commit f105590c0a.
2014-04-21 11:23:14 +01:00
William S Fulton
bebd97e7f4 Restore and fix infinity testcase for Javascript 2014-04-20 14:25:49 +01:00
William S Fulton
1010fbaa8f Simple C string test
Was added for Javascript, but was not being used in full test-suite.
Rename from javascript_unicode to simple_string and provide for all
languages.
Rewrite to use portable C
2014-04-20 13:58:46 +01:00
William S Fulton
f105590c0a Javascript node test-suite makefile fixes for parallel make 2014-04-20 13:58:46 +01:00
William S Fulton
ccaf3bfe79 Javascript test-suite makefile update
Reword output to what is now on master
Remove SMOKE targets - these could be re-introduced centrally if needed
or otherwise partialcheck is a good alternative.
2014-04-20 13:54:35 +01:00
William S Fulton
efc5af04e0 Detect node-gyp at configure time and show version in javascript_version target 2014-04-19 16:44:21 +01:00
Oliver Buchtala
b5aa1df72b Generalized smoke test configuration. 2014-03-06 06:30:36 +01: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
04cdde0563 Add test to check javascript unicode strings. 2013-08-31 03:34:37 +02:00