The guile and chicken _runme scripts are now shared

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5979 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
John Lenz 2004-06-07 05:03:39 +00:00
commit 60f4c8988e
74 changed files with 505 additions and 490 deletions

View file

@ -9,7 +9,7 @@ SCRIPTSUFFIX = _runme.ss
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
CHICKEN_CSI = @CHICKEN_CSI@
CHICKEN_CSI = @CHICKEN_CSI@ -quiet
SO = @SO@
#C_TEST_CASES = long_long list_vector pointer_in_out multivalue
@ -17,6 +17,7 @@ SO = @SO@
include $(srcdir)/../common.mk
# Overridden variables here
SWIGOPT += -noprefix
# none!
# Rules for the different types of tests

View file

@ -0,0 +1 @@
(include "../schemerunme/casts.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/char_constant.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/class_ignore.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/constover.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/contract.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/cpp_namespace.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/dynamic_cast.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/import_nomodule.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/imports.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/inherit_missing.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/list_vector.scm")

View file

@ -0,0 +1,3 @@
;; this doesn't work yet :(
;;(include "../schemerunme/multivalue.scm")
(exit 0)

View file

@ -0,0 +1 @@
(include "../schemerunme/name.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/overload_complicated.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/overload_copy.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/overload_extend.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/overload_simple.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/overload_subtype.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/pointer_in_out.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/reference_global_vars.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/typedef_inherit.scm")

View file

@ -0,0 +1 @@
(include "../schemerunme/typename.scm")

View file

@ -1,36 +1 @@
;;; This is the union runtime testcase. It ensures that values within a
;;; union embedded within a struct can be set and read correctly.
;; Create new instances of SmallStruct and BigStruct for later use
(define small (unions:new-SmallStruct))
(unions:SmallStruct-jill-set small 200)
(define big (unions:new-BigStruct))
(unions:BigStruct-smallstruct-set big small)
(unions:BigStruct-jack-set big 300)
;; Use SmallStruct then BigStruct to setup EmbeddedUnionTest.
;; Ensure values in EmbeddedUnionTest are set correctly for each.
(define eut (unions:new-EmbeddedUnionTest))
;; First check the SmallStruct in EmbeddedUnionTest
(unions:EmbeddedUnionTest-number-set eut 1)
(unions:EmbeddedUnionTest-uni-small-set (unions:EmbeddedUnionTest-uni-get eut)
small)
(let ((Jill1 (unions:SmallStruct-jill-get
(unions:EmbeddedUnionTest-uni-small-get
(unions:EmbeddedUnionTest-uni-get eut)))))
(if (not (= Jill1 200))
(begin
(display "Runtime test 1 failed.")
(exit 1))))
(let ((Num1 (unions:EmbeddedUnionTest-number-get eut)))
(if (not (= Num1 1))
(begin
(display "Runtime test 2 failed.")
(exit 1))))
;; that should do
(exit 0)
(include "../schemerunme/unions.scm")