Commit graph

2,887 commits

Author SHA1 Message Date
William S Fulton
72f2d8ac8f Fix Python test-suite makefile to show which tests have runtime tests (for Python 3). 2013-05-27 10:24:02 +01:00
William S Fulton
af8f77a627 Fix to ensure 2to3 for Python 3 examples is run 2013-05-27 00:27:31 +01:00
William S Fulton
b3ca22dc33 Fix Python examples to compile and run under Python 3 2013-05-26 23:02:13 +01:00
William S Fulton
fd93beadf4 Fix 'make check-python-test-suite PY3=1' and -j (make jobs) 2013-05-25 22:29:18 +01:00
William S Fulton
5481270c2a Fix Python 3 inconsistency handling -ve numbers for unsigned C types.
An OverFlow error is now consistently thrown instead of a TypeError.

Fixes primitive_types testcase for Python 3
2013-05-25 10:36:14 +01:00
Artem Serebriyskiy
3e188e508d Add test case for attributes with moderately complex templates
* New test case tests that %attribute macros correctly supports passing
  template with multiple parameters as class name or attribute type name

* Some further changes were made to %attribute macros - now
  AttributeType is protected with %arg as well. This allows you
  to have attributes of type e.g. std::pair<int,int> etc

Update CHANGES file for %attribute template fixes

Closes #48
2013-05-25 00:44:36 +01:00
William S Fulton
f15eb3f5ec Fix vararg documentation for Python 3
Memory handling is different to Python 2.
2013-05-24 23:02:34 +01:00
William S Fulton
074c0039db Fix Python version checking in Python tests 2013-05-24 18:57:26 +01:00
William S Fulton
8700e79b3e Guile port example fix for Guile 2.0
Rewinding the file before passing it to C fixed the problem of not being
able to read the file contents.

Also explain the error about writing to a string.
2013-05-23 23:24:19 +01:00
William S Fulton
0f1e3da5de Fix the high passed to PyTuple_GetSlice in varargs wrappers.
Harmless bug as slices can take any size larger than the actual size for
the high value. Reported in SF Bug 1326.
2013-05-23 21:25:41 +01:00
Geert Janssens
6e794da3f3 Guile port example - print a message to show the error is expected 2013-05-21 17:23:37 +02:00
William S Fulton
6f1aea7a12 Cosmetic makefile tidy up 2013-05-15 09:57:34 +01:00
Geert Janssens
2560210bfd Guile delete Example makefile 2013-05-15 09:38:50 +02:00
Geert Janssens
d3cddb1355 Guile add two more examples and use load-extension instead of dynamic-load 2013-05-13 22:40:16 +02:00
Geert Janssens
090d2505d1 Guile create functional class example 2013-05-13 21:40:01 +02:00
Geert Janssens
e5f6ec8912 Guile fix matrix example
Got broken in commit dd36f28ac7
(Migrate Guile examples build into common Examples makefile)
2013-05-10 18:29:26 +02:00
William S Fulton
199c1f3249 Add skeleton for run test for Guile class example 2013-05-09 20:03:50 +01:00
William S Fulton
042d0dfdc2 Guile port example Makefile correction 2013-05-09 19:41:29 +01:00
William S Fulton
dd36f28ac7 Migrate Guile examples build into common Examples makefile
- Now Guile examples are built in a consistent way to other target
languages.
- Also set GUILE_AUTO_COMPILE=0 to remove auto-compilation is enabled
  warnings
2013-05-09 19:28:09 +01:00
William S Fulton
d974e9aced Guile examples consistency changes
Use new guile_embedded_run target or guile_run target for running the
examples like the other target languages (for suppressing stdout if run
from top level).

Consistency with other target language file renames: use runme.scm for
scripts and example.i, example.c for example code.

Add class example to examples being tested.
2013-05-09 18:35:18 +01:00
Karl Wette
c28d0c6c80 Fixes to Octave examples
- rename example modules from "example" to "swigexample", to avoid a
  warning from shadowing the Octave built-in function "example"
- remove deprecated "static" Makefile targets: there is no longer
  an option to build static Octave modules in the Examples Makefile
- emacs whitespace cleanup run on all files
2013-05-08 22:44:40 +01:00
William S Fulton
7964ebe34f Tidy up pike version display 2013-05-08 17:36:03 +01:00
William S Fulton
cd4c1d3c3f Tidy up target language versions display 2013-05-08 16:48:27 +01:00
William S Fulton
1adb239046 Fix running of Guile multivalue and std_vector examples 2013-05-08 14:10:47 +01:00
William S Fulton
10acae18d2 Correct Guile Makefile to fix test-suite/examples on Cygwin 2013-05-08 13:05:11 +01:00
William S Fulton
70b9df5ee9 Portable dynamic library loading for Guile
dynamic-link and load-extension work without passing the .so or .dll as
the shared library extension, so these have been dropped so the examples
and test-suite work on Cygwin.

Also update documentation and use the 'lib' prefix as that is what we
commonly name the shared libraries.
2013-05-08 12:42:17 +01:00
William S Fulton
f68cde8bb9 Fix li_std_containers_int test case for Python < 2.6
Workaround bugs in older versions of Python
2013-05-03 19:55:42 +01:00
William S Fulton
ca7b77cbd1 Fix tcl operator example crashing when run
The example was accessing deleted memory and so sometimes crashed.
2013-05-03 19:55:42 +01:00
William S Fulton
7d29f88641 Cosmetic on unknown javac version display 2013-05-03 19:55:41 +01:00
William S Fulton
5690323b8f Rework perl5 compiler and linker flags
This fixes perl on cygwin. Probably on other platforms too.
2013-05-03 19:39:11 +01:00
William S Fulton
6704501aad Guile multimap example fix for 64 bit systems 2013-05-01 16:02:02 +01:00
Geert Janssens
fbb1978eb4 guile: get multimap example to run 2013-05-01 12:13:13 +02:00
Geert Janssens
8767e4e29e guile: make constants example display some output similar to other languages 2013-05-01 11:19:14 +02:00
William S Fulton
ac596eb8a3 Add C++ class example for Guile
Also correct other example c++ makefiles
2013-04-30 07:28:29 +01:00
Geert Janssens
7297f5aa51 Don't use obsolete -scm option in own makefiles 2013-04-28 22:38:20 +02:00
Geert Janssens
95bfa86ae9 guile: fix multimap example
- fix compiler warning
- fix guile 2 deprecation warnings
- minor cleanup of generated code
2013-04-28 22:06:27 +02:00
Geert Janssens
7b9c302fa1 guile: fix matrix example
- add missing library in link phase
- empty true path () for if is not allowed
2013-04-28 22:06:27 +02:00
Geert Janssens
3e0247e553 guile: fix integer test on 64 bit systems 2013-04-28 22:06:27 +02:00
Geert Janssens
469022d311 Disable guile 2's autocompilation feature for the test suite
Autocompilation generates a lot of warnings. Most of them
just informational, but it clutters the test output.
2013-04-28 22:06:26 +02:00
Geert Janssens
d689d9a860 Fix deprecation warnings for test suite under guile 2.0 2013-04-28 22:06:24 +02:00
Geert Janssens
b819d2a91e Drop guilegh interface
All of guile's interface files now use the scm interface.
This should not affect any users. Swig generated code
using the scm interface can be mixed with gh interface
using user code.
It does simplify maintenance of the guile swig code though.
2013-04-28 22:06:24 +02:00
Geert Janssens
b072f22930 Add support for guile 2.0: configure and makefiles.
Note: guile-config is badly broken for guile 2. So
the guile configure  section has been rewritten to
use pkg-config instead.

Manually resolved conflicts:
	Examples/Makefile.in
2013-04-28 22:06:22 +02:00
Geert Janssens
7dfe4a0653 Make guile test suite default to scm api
In other words guilescm becomes guile.
Deprecated gh api tests are moved to guilegh.
2013-04-28 22:06:21 +02:00
William S Fulton
52858d5353 Fix boost intrusive_ptr testcase compilation with latest boost/gcc 2013-04-27 18:40:57 +01:00
William S Fulton
bdf98744b1 Fix guilescm_ext_test and chicken_ext_test testcases 2013-04-23 22:29:52 +01:00
William S Fulton
486eca2faa Disable Ruby free_function test for now.
It is failing in Travis builds with 'ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]' but okay with 'ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]'.

Relying on timely Garbage collection is probably flawed anyway.
2013-04-21 18:24:37 +01:00
William S Fulton
205d50a8c9 Ruby 1.9 fixes: use ruby -I in Makefile and workaround clash with 1.9 builtin Complex numbers in the operator example. 2013-04-21 14:05:56 +01:00
William S Fulton
9f95e30650 Fix PHP test-suite running examples recently broken in 0fa791d 2013-04-20 02:51:57 +01:00
William S Fulton
58a59919dd Chicken - make check-examples run like other examples - not all run very well though! 2013-04-20 02:28:48 +01:00
William S Fulton
2b2305cce9 Mzscheme - fix for running examples during 'make check-examples' - they don't run very well though\! 2013-04-20 02:28:48 +01:00