Add test suites for CLISP, CFFI, UFFI.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8429 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7c7f5e5537
commit
280d183818
12 changed files with 290 additions and 10 deletions
62
SWIG/Examples/test-suite/allegrocl/.cvsignore
Normal file
62
SWIG/Examples/test-suite/allegrocl/.cvsignore
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
*_wrap.c
|
||||
*_wrap.cxx
|
||||
Makefile
|
||||
SunWS_cache
|
||||
abstract_access.cl
|
||||
abstract_inherit.cl
|
||||
abstract_inherit_ok.cl
|
||||
abstract_signature.cl
|
||||
abstract_typedef.cl
|
||||
abstract_typedef2.cl
|
||||
abstract_virtual.cl
|
||||
access_change.cl
|
||||
add_link.cl
|
||||
aggregate.cl
|
||||
anonymous_bitfield.cl
|
||||
argout.cl
|
||||
array_member.cl
|
||||
array_typedef_memberin.cl
|
||||
arrayref.cl
|
||||
arrays.cl
|
||||
arrays_dimensionless.cl
|
||||
arrays_global.cl
|
||||
arrays_global_twodim.cl
|
||||
arrays_scope.cl
|
||||
bloody_hell.cl
|
||||
char_constant.cl
|
||||
clientdata_prop_a.cl
|
||||
clientdata_prop_b.cl
|
||||
const_const.cl
|
||||
director_string.cl
|
||||
empty.cl
|
||||
enums.cl
|
||||
extern_declaration.cl
|
||||
function_typedef.cl
|
||||
immutable.cl
|
||||
imports_a.cl
|
||||
imports_b.cl
|
||||
inctest.cl
|
||||
lextype.cl
|
||||
li_carrays.cl
|
||||
li_cdata.cl
|
||||
li_cmalloc.cl
|
||||
li_constraints.cl
|
||||
li_cpointer.cl
|
||||
li_math.cl
|
||||
li_std_except.cl
|
||||
long_long.cl
|
||||
name.cl
|
||||
nested.cl
|
||||
newobject2.cl
|
||||
overload_extend.cl
|
||||
overload_extendc.cl
|
||||
preproc.cl
|
||||
ret_by_value.cl
|
||||
sizeof_pointer.cl
|
||||
sneaky1.cl
|
||||
struct_rename.cl
|
||||
template_typedef_cplx2.cl
|
||||
template_typedef_import.cl
|
||||
typedef_struct.cl
|
||||
typemap_subst.cl
|
||||
unions.cl
|
||||
|
|
@ -12,8 +12,7 @@ top_builddir = @top_builddir@
|
|||
|
||||
include $(srcdir)/../common.mk
|
||||
|
||||
# no C++ tests for now
|
||||
CPP_TEST_CASES =
|
||||
#CPP_TEST_CASES +=
|
||||
#C_TEST_CASES +=
|
||||
|
||||
# Rules for the different types of tests
|
||||
|
|
@ -41,7 +40,7 @@ run_testcase = \
|
|||
|
||||
# Clean: (does nothing, we dont generate extra allegrocl code)
|
||||
%.clean:
|
||||
|
||||
|
||||
|
||||
clean:
|
||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile allegrocl_clean
|
||||
|
|
|
|||
4
SWIG/Examples/test-suite/cffi/.cvsignore
Normal file
4
SWIG/Examples/test-suite/cffi/.cvsignore
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
*.lisp
|
||||
*_wrap.c*
|
||||
Makefile
|
||||
SunWS_cache
|
||||
48
SWIG/Examples/test-suite/cffi/Makefile.in
Normal file
48
SWIG/Examples/test-suite/cffi/Makefile.in
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
#######################################################################
|
||||
# $Header$
|
||||
# Makefile for cffi test-suite
|
||||
#######################################################################
|
||||
|
||||
LANGUAGE = cffi
|
||||
CFFI = @CFFIBIN@
|
||||
SCRIPTSUFFIX = _runme.lisp
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
top_builddir = @top_builddir@
|
||||
|
||||
include $(srcdir)/../common.mk
|
||||
|
||||
# no C++ tests for now
|
||||
CPP_TEST_CASES =
|
||||
#C_TEST_CASES +=
|
||||
|
||||
# Rules for the different types of tests
|
||||
%.cpptest:
|
||||
$(setup) \
|
||||
($(swig_and_compile_cpp); ) &&\
|
||||
$(run_testcase)
|
||||
|
||||
%.ctest:
|
||||
$(setup) \
|
||||
($(swig_and_compile_c); ) &&\
|
||||
$(run_testcase)
|
||||
|
||||
%.multicpptest:
|
||||
$(setup) \
|
||||
($(swig_and_compile_multi_cpp); ) &&\
|
||||
$(run_testcase)
|
||||
|
||||
# Runs the testcase. A testcase is only run if
|
||||
# a file is found which has _runme.lisp appended after the testcase name.
|
||||
run_testcase = \
|
||||
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
|
||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(CFFIBIN) -batch -s $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX);) \
|
||||
fi;
|
||||
|
||||
# Clean: (does nothing, we dont generate extra cffi code)
|
||||
%.clean:
|
||||
|
||||
|
||||
clean:
|
||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile cffi_clean
|
||||
|
||||
2
SWIG/Examples/test-suite/clisp/.cvsignore
Normal file
2
SWIG/Examples/test-suite/clisp/.cvsignore
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
Makefile
|
||||
*.lisp
|
||||
48
SWIG/Examples/test-suite/clisp/Makefile.in
Normal file
48
SWIG/Examples/test-suite/clisp/Makefile.in
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
#######################################################################
|
||||
# $Header$
|
||||
# Makefile for clisp test-suite
|
||||
#######################################################################
|
||||
|
||||
LANGUAGE = clisp
|
||||
CLISP = @CLISPBIN@
|
||||
SCRIPTSUFFIX = _runme.lisp
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
top_builddir = @top_builddir@
|
||||
|
||||
include $(srcdir)/../common.mk
|
||||
|
||||
# no C++ tests for now
|
||||
CPP_TEST_CASES =
|
||||
#C_TEST_CASES +=
|
||||
|
||||
# Rules for the different types of tests
|
||||
%.cpptest:
|
||||
$(setup) \
|
||||
($(swig_and_compile_cpp); ) &&\
|
||||
$(run_testcase)
|
||||
|
||||
%.ctest:
|
||||
$(setup) \
|
||||
($(swig_and_compile_c); ) &&\
|
||||
$(run_testcase)
|
||||
|
||||
%.multicpptest:
|
||||
$(setup) \
|
||||
($(swig_and_compile_multi_cpp); ) &&\
|
||||
$(run_testcase)
|
||||
|
||||
# Runs the testcase. A testcase is only run if
|
||||
# a file is found which has _runme.lisp appended after the testcase name.
|
||||
run_testcase = \
|
||||
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
|
||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(CLISPBIN) -batch -s $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX);) \
|
||||
fi;
|
||||
|
||||
# Clean: (does nothing, we dont generate extra clisp code)
|
||||
%.clean:
|
||||
|
||||
|
||||
clean:
|
||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile clisp_clean
|
||||
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
*wrap*
|
||||
*-guile
|
||||
*wrap*
|
||||
Makefile
|
||||
SunWS_cache
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
*wrap*
|
||||
*-guile
|
||||
*wrap*
|
||||
Makefile
|
||||
SunWS_cache
|
||||
|
|
|
|||
3
SWIG/Examples/test-suite/uffi/.cvsignore
Normal file
3
SWIG/Examples/test-suite/uffi/.cvsignore
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Makefile
|
||||
*.cl
|
||||
*_wrap.c*
|
||||
48
SWIG/Examples/test-suite/uffi/Makefile.in
Normal file
48
SWIG/Examples/test-suite/uffi/Makefile.in
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
#######################################################################
|
||||
# $Header$
|
||||
# Makefile for uffi test-suite
|
||||
#######################################################################
|
||||
|
||||
LANGUAGE = uffi
|
||||
UFFI = @UFFIBIN@
|
||||
SCRIPTSUFFIX = _runme.lisp
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
top_builddir = @top_builddir@
|
||||
|
||||
include $(srcdir)/../common.mk
|
||||
|
||||
# no C++ tests for now
|
||||
CPP_TEST_CASES =
|
||||
#C_TEST_CASES +=
|
||||
|
||||
# Rules for the different types of tests
|
||||
%.cpptest:
|
||||
$(setup) \
|
||||
($(swig_and_compile_cpp); ) &&\
|
||||
$(run_testcase)
|
||||
|
||||
%.ctest:
|
||||
$(setup) \
|
||||
($(swig_and_compile_c); ) &&\
|
||||
$(run_testcase)
|
||||
|
||||
%.multicpptest:
|
||||
$(setup) \
|
||||
($(swig_and_compile_multi_cpp); ) &&\
|
||||
$(run_testcase)
|
||||
|
||||
# Runs the testcase. A testcase is only run if
|
||||
# a file is found which has _runme.lisp appended after the testcase name.
|
||||
run_testcase = \
|
||||
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
|
||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(UFFIBIN) -batch -s $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX);) \
|
||||
fi;
|
||||
|
||||
# Clean: (does nothing, we dont generate extra uffi code)
|
||||
%.clean:
|
||||
|
||||
|
||||
clean:
|
||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile uffi_clean
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue