Commit graph

17,033 commits

Author SHA1 Message Date
William S Fulton
176c697c8b Remove PHP director_basic runtime test until fixed.
See #164
2014-05-18 01:06:56 +01: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
b8b61be301 Detect Javascript v8 on 64 bit Linux 2014-05-17 23:32:09 +01:00
William S Fulton
46e5f722c3 Travis testing: check configure still runs after make maintainer-clean 2014-05-16 21:08:24 +01:00
William S Fulton
50f5b4f7f4 Fix in source android examples clean 2014-05-16 20:46:35 +01:00
William S Fulton
8b19918a83 Travis builds - add compiler version display 2014-05-16 08:02:11 +01:00
William S Fulton
17abb00f20 Modify Travis builds to build out of source
Closes #167
2014-05-16 06:55:11 +01:00
William S Fulton
06d2c79c28 Another Travis folding correction 2014-05-16 06:50:37 +01:00
William S Fulton
3b0a549d72 Travis folding correction 2014-05-16 06:11:39 +01:00
William S Fulton
2e0f6a2163 Travis testing - add folding to less interesting commands
See https://github.com/travis-ci/travis-ci/issues/2285 for fold syntax info.
2014-05-16 05:49:03 +01:00
William S Fulton
2f25b68d10 Merge branch 'kwwette-out-of-src'
* kwwette-out-of-src:
  Configured languages display improvement
  Fix out of source clean-android-examples
  Neaten up test-suite Makefile regeneration
  Remove duplicate test target in CCache Makefile
  Add in CPPFLAGS and LDFLAGS to examples/test-suite
  Remove unnecessary make invocation when running test-suite
  gitignore to ignore build directory names
  Partially fix R out of source test-suite
  Update all languages to use SCRIPTDIR
  Slight simplification of test-suite build for new out-of-source changes
  Allow examples and test-suite to be built out of source tree
  Add "make maintainer-clean" to Travis CI build
  CCache/Makefile.in: fix to allow out of source tree check/install
  Regenerate configured Makefile if Makefile.in or config.status have changed
  Fix segmentation fault in some Javascript examples
  configure.ac: print configured languages at end of configuration
2014-05-15 23:32:10 +01:00
William S Fulton
81335c5a91 Configured languages display improvement 2014-05-15 23:28:47 +01:00
William S Fulton
6181853312 Fix out of source clean-android-examples 2014-05-15 23:28:47 +01:00
William S Fulton
8ece62b945 Neaten up test-suite Makefile regeneration 2014-05-15 23:11:08 +01:00
William S Fulton
ce5f49463e Remove duplicate test target in CCache Makefile 2014-05-15 23:11:08 +01:00
William S Fulton
18d72f4562 Add in CPPFLAGS and LDFLAGS to examples/test-suite
- Split current usage of CXXFLAGS into the conventional CPPFLAGS CXXFLAGS and LDFLAGS
- Split current usage of CFLAGS into the conventional CPPFLAGS CFLAGS and LDFLAGS
- This restores 'make whatever CXXFLAGS=-g' which stopped working during
  the recently added suppport for out of source builds.
- LDFLAGS is currently empty, but is there for future use
2014-05-15 23:11:08 +01:00
William S Fulton
d927fa5376 Remove unnecessary make invocation when running test-suite 2014-05-15 23:11:07 +01:00
William S Fulton
4e47bbee06 gitignore to ignore build directory names 2014-05-15 23:11:07 +01:00
William S Fulton
28c3549e43 Partially fix R out of source test-suite
Fix when there is NOT a runme.R file
2014-05-15 23:11:07 +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
William S Fulton
caaf224b59 Turn off %extend nested test for cplusplusout languages 2014-05-12 19:07:55 +01:00
William S Fulton
f6cae1af1b Merge branch 'wkalinin-csymbols'
* wkalinin-csymbols:
  Tests for C nested classes symbol table not being in global space
  C nested classes symbol table should be in global space
2014-05-12 07:54:36 +01:00
William S Fulton
9b0e484b8a Tests for C nested classes symbol table not being in global space
Tests for 55bda53145
2014-05-12 07:51:55 +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
72e6b5349e Add "make maintainer-clean" to Travis CI build 2014-05-11 21:31:32 +02:00
Karl Wette
e0b987b32f CCache/Makefile.in: fix to allow out of source tree check/install 2014-05-11 21:31:32 +02:00
Karl Wette
96153c7c0a Regenerate configured Makefile if Makefile.in or config.status have changed 2014-05-11 21:31:32 +02:00
Karl Wette
6fc07c5dc9 Fix segmentation fault in some Javascript examples
- memory allocated with malloc() was then being freed with delete[],
  which is overridden by Javascript libraries (jsc), leading to segfault
- replacing malloc with %new_array seems to work though
2014-05-11 21:31:32 +02:00
Karl Wette
4fe6622f64 configure.ac: print configured languages at end of configuration 2014-05-11 21:31:31 +02:00
Olly Betts
b241d224bb Merge pull request #172 from xantares/patch-2
Fix duplicate entry in CPP_TEST_CASES.
2014-05-11 11:41:26 +12:00
Vladimir Kalinin
55bda53145 C nested classes symbol table should be in global space 2014-05-10 22:16:26 +04:00
xantares
00a02a3d9c Fix duplicate entry 2014-05-10 12:09:52 +02:00
Karl Wette
a6d71e6c57 configure.ac: fix to Javascript configuration
- setting SKIP_JAVASCRIPT assumes that JSCENABLED/JSV8ENABLED
  are empty when jsc/v8 are not available
2014-05-09 23:39:03 +01:00
William S Fulton
4a680e5545 html doc chapter numbering update since adding Javascript 2014-05-09 23:39:03 +01:00
William S Fulton
575c7a113a html fixes 2014-05-09 23:39:02 +01:00
William S Fulton
8d01b145f7 Cosmetic rewording to workaround syntax highlighting bug in vim. 2014-05-09 23:39:02 +01:00
Olly Betts
458089e530 Merge pull request #169 from ptomulik/fix_python_doc
minor corrections to python documentation
2014-05-08 09:41:46 +12:00
Paweł Tomulik
426dd3312f minor corrections to python documentation 2014-05-07 17:23:03 +02:00
Olly Betts
b115c984a9 More cleaning up of the class examples 2014-05-05 16:14:31 +12:00
Olly Betts
7cac2d35cb Remove random extra assignment in example code 2014-05-05 16:05:00 +12:00
Karl Wette
66555ad2a7 Fix go configuration and SWIG_GCC_VERSION
- in configure.ac: modify sed expression to only look at first line of
  gccgo --version, extract the last numeric token, and remove periods;
  this parses e.g. "gccgo (Debian 4.7.2-5) 4.7.2"
- in goruntime.swg: fix typo in __GNUC_PATCHLEVEL__ (SF Bug #1298)
2014-05-02 21:44:52 +02:00
Karl Wette
b6c1889c08 Fix {python|perl5|ruby|tcl}/java examples
- in Lib/gcj/cni.i: remove JvAllocObject(), change
  JvCreateJavaVM() argument from void* to JvVMInitArgs*
- in Examples/{python|perl5|ruby|tcl}/java/Makefile:
  pass full class name to gcjh, add Example.h as dependency,
  do not override CXX for compiling C++ sources
- in Examples/python/java/example.i:
  add destructor to class to prevent memory loss complaint
2014-05-02 21:44:42 +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
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
Olly Betts
4e63c4f720 Remove errnoeous note claiming C++ operator~ maps to Lua .. 2014-05-02 18:40:54 +12:00
William S Fulton
6b25dfda60 Restore full Travis testing since javascript branch merge 2014-05-01 20:11:06 +01:00
William S Fulton
98237e2b81 Merge branch 'javascript'
* javascript: (342 commits)
  Revert "Remove unnecessary Javascript installs on Travis"
  Remove unnecessary Javascript installs on Travis
  Javascript cosmetic changes
  Javascript: ensure banner appears before %begin code
  Enable Javascript in director_nspace_director_name_collision.i.
  Make javascript 'nspace' conform to corresponding lua example.
  Added some documentation on using 'node-webkit'.
  Enable javascript examples 'exception', 'namespace'.
  Fix bug and regression in javascript namespace generator.
  Prettify generated output in JS emitters.
  Fix node-gyp configuration for example 'exception'.
  Fix regression of 226da4.
  Print error when specified multiple js engines.
  Removed obsolete 'node.i'.
  Added a comment about V8_VERSION macro.
  Restore missing copyright info in javascript branch
  beautify javascript.cxx
  Javascript variable naming convention corrections
  Javascript test-suite - warning suppression not needed
  Javascript example Makefiles more consistent with other languages
  Cosmetic code changes in javascript.cxx
  Fix regression in Javascript generator for enums.
  Fix configuration for Javascript/node ctests.
  SKIP_JAVASCRIPT only when there is none of v8/node/jsc.
  Fix generator for Javascript enums.
  Turn on Swig_cparse_cplusplusout for Javascript/v8.
  Fix configuration for ctest with Javascript/v8.
  Add cast to test 'string_simple' to avoid C++ compiler error.
  Add 'fix' for Javascript/v8 to test 'enum_forward'.
  Only disable javascript tests if node-gyp is missing when testing node
  Revert "Javascript node test-suite makefile fixes for parallel make"
  Suppress keyword warning in test-suite
  Restore and fix infinity testcase for Javascript
  Simple C string test
  Javascript node test-suite makefile fixes for parallel make
  Restore missing make code in javascript branch
  Javascript test-suite makefile update
  ADD RUNPIPE and RUNTOOL to Javascript examples
  Remove unnecessary blank lines from Javascript examples
  Detect node-gyp at configure time and show version in javascript_version target
  Fix typo in Javascript exception
  Revert css style changes in javascript branch
  Add missing license info
  Javascript html documentation tidy up
  Improve missing JS engine error message
  a few Javascript clarifications in configure.ac
  Makefile and autoconf file tidy up for Javascript
  Tidy up Example makefile for Javascript
  Alphabetical order for Javascript in -help output
  Remove junk files
  Travis file code consistency
  Turn on Travis testing on javascript branch
  Add javascript to Sections.html
  Optimized travis before_install for Javascript.
  Document Javascript related preprocessor macros.
  Updated Javascript documentation.
  Insert a workaround for c_delete and c_delete_function for v8.
  Update Javascript.html.
  Remove inadvertently added xcode file.
  Remove gdb pretty printing.
  Remove cmake relict.
  Remove pandoc toolchain.
  Remove Javascript documentation source file.
  Revert "Development version for travis configuration."
  Fix travis configuration.
  Fix regression in custom v8 interpreter.
  Development version for travis configuration.
  Generalized smoke test configuration.
  Add 'version' target for javascript.
  Merged branch 'devel' from https://github.com/oliver----/swig-v8 (squashed commit):
  Add check to skip javascript test-suite if default interpreter is not installed.
  Activate travis matrix for different Javascript interpreters.
  Beautified Javascript module.
  Fix regressions.
  Removed obsolete paragraph from Javascript documentation.
  Fix pandoc filter.
  Minor tweaks in Javascript documentation.
  Adding a chapter about Javascript tests and examples.
  Minor change in Javascript configuration.
  Fix issues that were observed with newer JavascriptCore.
  Add missing copy ctor for Javascript Code Template class.
  Removed CMake.
  Fix regression in Javascript configuration.
  Fix regressions in configuration of some Javascript examples.
  More gitignores filtering Javascript related files.
  Fix custom javascript interpreter configuration for OSX.
  Make examples work with node.js and the custom interpreter.
  Introduced an extra Makefile for the custom javascript interpreter.
  Fix travis configuration.
  Added a comment.
  Fix regressions in Javascript example configuration.
  Fix issue with strange constants under OSX.
  Some fixes in example section of Javascript documentation.
  Add note about '-node' command line flag for Node.js code generation.
  Added examples to Javascript module documentation.
  Simplification in common javascript example Makefile.
  Add an extra argument for enabling nodejs support.
  Add more notes about how to install node.
  Better error message when no Javascript emitter is specified.
  Deactivated broken JS examples.
  Refactored configuration for javascript examples.
  Beginning to document v8 integration.
  Documented extending Node.js and Webkit's Javascript engine.
  Pandoc filter detects shell blocks when not explicitely given.
  Conitnued documenting the Javascript module.
  Not a real change.
  Add a pandoc filter to create compatible html.
  Add Javascript to chapters.
  More Javascript module documentation.
  Next iteration on creating a documentation for the Javascript module.
  Next iteration on creating a documentation for the Javascript module.
  Travis configuration for Javascript branch.
  Javascript examples.
  Javascript documentation.
  CMake configuration.
  Fix regression.
  Fix test configuration.
  Trying to install former working version of nodejs.
  Fix test configuration for nodejs.
  Add stub std_deque.i files.
  Add non pretty printing function to Templates.
  Fix bug with typedefd function pointers.
  Add some test runners.
  Fix emitter for member pointer constants.
  Fix %nspace support and activated relevant tests.
  Disable warnings for some v8 test-cases.
  Fix regression.
  Bugfix in argument marshalling.
  Disable testcase 'typemap_variables' for v8.
  Bugfix for Javascript generator.
  Replace $symname in generated function wrappers.
  Add missing macros.
  Let v8 generated code include stdlib.h
  Add cdata.i typemaps.
  Rearrange generation of init block to have custom init code within the initializer body.
  Make JSC inheritance definition more robust.
  Removed dead code.
  Bugfix for JSC %typemap(out) std::string&.
  Fix typemap declarations for (unsigned) long long.
  Add support for IN/OUTPUT typemaps.
  removed Clear before Dispose from newer v8 code, consider the following code: template <class T> void Persistent<T>::Dispose() {   if (this->IsEmpty()) return; //Clear will trigger this   V8::DisposeGlobal(reinterpret_cast<internal::Object**>(this->val_));   ... }
  fixed newer v8 compilation
  Add stub 'typemaps.i' files.
  Bugfix Javascript generator: valid name for dispatcher functions.
  Fix Javascript generator for smartpointeraccessed variables.
  Bugfix for Javascript generator: avoid duplicate action code generation.
  Bugfix in Javascript generator: detect member setter/getters correctly.
  Fix configuration for nodejs based tests.
  Some fixes and cleanup in Javascript generator.
  Fix settings for building nodejs tests.
  Add support for PackedData to Javascript generator.
  Added two more Javascript tests.
  Some fixes for the Javascript generator.
  Redefined set of Javascript smoke tests.
  Clean up in `javascripttypemaps.swg`.
  Fix v8 generator to use a non clashing name for built-in 'equals' method.
  Fix Javascript generator to use %renamed variable names.
  Activate Javascript test-cases `rename_simple` and `rename_scope`.
  Activate Javascript testcases `rename1-4`.
  Add `infinity` test-case to list of smoke tests.
  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.
  Bug-fix for static variables as proposed by Kota Iguchi.
  Let Travis test all three targets.
  Allow to run the test suite with our list of smoke tests.
  Javascript V8 test-cases always create cpp wrappers.
  Test-suite Makefile now supports testing for all three Javascript variants.
  Rewritten Javascript autoconfiguration.
  Renamed object provided to JS initializers.
  Refactored custom javascript engines to support primitive 'require' statements.
  fixed deprecation warnings for v8-3.21
  moved common swig v8 definitions in javascriptruntime.swg, fixed obsoleted api calls
  Added missing template configuration files for nodejs based tests.
  Put the SWIG_V8_VERSION macro into "runtime" block.
  Use a diffent name for the V8_VERSION provided via command line.
  fixed return values and added missing newer v8 dtor wrapper.
  Allow exceptions in generated example/test node extensions.
  Fix cleanup configuration for javascript test-suite.
  Relax type check in SWIG_AsVal_int.
  Fixing travis configuration.
  Remove javascript autoconf detection (Temporarily).
  Fix in travis config.
  Not a real change.
  Slight modification to travis config.
  Add a travis configuration (experimental).
  Make javascript test-suite work with nodejs.
  Replace old style v8 version switches.
  Fix error in SWIG_V8_GetInstancePtr.
  Add "equals" to compare between pointers Add "getCPtr" to retrieve pointer value
  Typemap for natural support for arrays
  Added the finalize callback (JSObjectFinalizeCallback)
  Fix regression.
  Convert javascript examples to nodejs.
  Ignore javascript Example build files.
  First example that addresses node.js as primary execution environment.
  Better v8 version handling.
  Add a dedicated mode for creating node modules.
  Starting from scratch with Examples configuration.
  ported to newer, more efficient v8 api
  Patch to support argout typemap for your swig-v8 branch.
  Since this code uses assert, #include <assert.h> is needed.
  ...
2014-05-01 20:08:20 +01:00
William S Fulton
24ffe8fae0 Revert "Remove unnecessary Javascript installs on Travis"
This reverts commit f153193eaa.
2014-05-01 20:05:16 +01:00
William S Fulton
f153193eaa Remove unnecessary Javascript installs on Travis 2014-05-01 19:43:22 +01:00