Enable test suite for Allegro CL
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7913 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8c9ab3abf7
commit
5f280cb2d0
4 changed files with 98 additions and 1 deletions
|
|
@ -930,3 +930,17 @@ lua_clean:
|
||||||
rm -f *_wrap* *~ .~* core @EXTRA_CLEAN@ mylua@EXEEXT@
|
rm -f *_wrap* *~ .~* core @EXTRA_CLEAN@ mylua@EXEEXT@
|
||||||
rm -f *.@OBJEXT@ *@CSHARPSO@
|
rm -f *.@OBJEXT@ *@CSHARPSO@
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
##### ALLEGRO CL ######
|
||||||
|
##################################################################
|
||||||
|
|
||||||
|
allegrocl: $(SRCS)
|
||||||
|
$(SWIG) -allegrocl $(SWIGOPT) $(INTERFACE)
|
||||||
|
$(CC) -c $(CCSHARED) $(CFLAGS) $(INCLUDES) $(SRCS)
|
||||||
|
$(LDSHARED) $(OBJS) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(SO)
|
||||||
|
|
||||||
|
allegrocl_cpp: $(SRCS)
|
||||||
|
$(SWIG) -c++ -allegrocl $(SWIGOPT) $(INTERFACE)
|
||||||
|
$(CXX) -c $(CCSHARED) $(CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDES) $(LUA_INCLUDE)
|
||||||
|
$(CXXSHARED) $(OBJS) $(IOBJS) $(LIBS) $(LUA_LIB) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(LUA_SO)
|
||||||
|
|
||||||
|
|
|
||||||
48
Examples/test-suite/allegrocl/Makefile.in
Normal file
48
Examples/test-suite/allegrocl/Makefile.in
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
#######################################################################
|
||||||
|
# $Header$
|
||||||
|
# Makefile for allegrocl test-suite
|
||||||
|
#######################################################################
|
||||||
|
|
||||||
|
LANGUAGE = allegrocl
|
||||||
|
ALLEGROCL = @ALLEGROCLBIN@
|
||||||
|
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 $(ALLEGROCLBIN) -batch -s $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX);) \
|
||||||
|
fi;
|
||||||
|
|
||||||
|
# Clean: (does nothing, we dont generate extra allegrocl code)
|
||||||
|
%.clean:
|
||||||
|
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile allegrocl_clean
|
||||||
|
|
||||||
|
|
@ -42,6 +42,7 @@ skip-chicken = test -n "@SKIP_CHICKEN@"
|
||||||
skip-csharp = test -n "@SKIP_CSHARP@"
|
skip-csharp = test -n "@SKIP_CSHARP@"
|
||||||
skip-modula3 = test -n "@SKIP_MODULA3@"
|
skip-modula3 = test -n "@SKIP_MODULA3@"
|
||||||
skip-lua = test -n "@SKIP_LUA@"
|
skip-lua = test -n "@SKIP_LUA@"
|
||||||
|
skip-allegrocl = test -n "@SKIP_ALLEGROCL@"
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
# CHECK
|
# CHECK
|
||||||
|
|
@ -88,7 +89,8 @@ check-examples: \
|
||||||
check-chicken-examples \
|
check-chicken-examples \
|
||||||
check-csharp-examples \
|
check-csharp-examples \
|
||||||
check-modula3-examples \
|
check-modula3-examples \
|
||||||
check-lua-examples
|
check-lua-examples \
|
||||||
|
check-allegrocl-examples
|
||||||
|
|
||||||
check-%-examples:
|
check-%-examples:
|
||||||
@passed=true; \
|
@passed=true; \
|
||||||
|
|
@ -123,6 +125,7 @@ check-test-suite: \
|
||||||
check-csharp-test-suite \
|
check-csharp-test-suite \
|
||||||
check-modula3-test-suite \
|
check-modula3-test-suite \
|
||||||
check-lua-test-suite \
|
check-lua-test-suite \
|
||||||
|
check-allegrocl-test-suite \
|
||||||
# check-chicken-test-suite
|
# check-chicken-test-suite
|
||||||
|
|
||||||
check-%-test-suite:
|
check-%-test-suite:
|
||||||
|
|
@ -197,6 +200,7 @@ all-test-suite: \
|
||||||
all-csharp-test-suite \
|
all-csharp-test-suite \
|
||||||
all-modula3-test-suite \
|
all-modula3-test-suite \
|
||||||
all-lua-test-suite \
|
all-lua-test-suite \
|
||||||
|
all-allegrocl-test-suite \
|
||||||
# all-chicken-test-suite
|
# all-chicken-test-suite
|
||||||
|
|
||||||
all-%-test-suite:
|
all-%-test-suite:
|
||||||
|
|
@ -221,6 +225,7 @@ broken-test-suite: \
|
||||||
broken-csharp-test-suite \
|
broken-csharp-test-suite \
|
||||||
broken-modula3-test-suite \
|
broken-modula3-test-suite \
|
||||||
broken-lua-test-suite \
|
broken-lua-test-suite \
|
||||||
|
broken-allegrocl-test-suite \
|
||||||
# broken-chicken-test-suite
|
# broken-chicken-test-suite
|
||||||
|
|
||||||
broken-%-test-suite:
|
broken-%-test-suite:
|
||||||
|
|
@ -291,6 +296,7 @@ noskip-test-suite: \
|
||||||
noskip-pike-test-suite \
|
noskip-pike-test-suite \
|
||||||
noskip-csharp-test-suite \
|
noskip-csharp-test-suite \
|
||||||
noskip-lua-test-suite \
|
noskip-lua-test-suite \
|
||||||
|
noskip-allegrocl-test-suite \
|
||||||
noskip-chicken-test-suite
|
noskip-chicken-test-suite
|
||||||
|
|
||||||
noskip-%-test-suite:
|
noskip-%-test-suite:
|
||||||
|
|
|
||||||
29
configure.in
29
configure.in
|
|
@ -1639,6 +1639,28 @@ AC_SUBST(LUALIB)
|
||||||
AC_SUBST(LUALIBRARY)
|
AC_SUBST(LUALIBRARY)
|
||||||
AC_SUBST(LUABIN)
|
AC_SUBST(LUABIN)
|
||||||
|
|
||||||
|
#----------------------------------------------------------------
|
||||||
|
# Look for Allegro Common Lisp
|
||||||
|
#----------------------------------------------------------------
|
||||||
|
|
||||||
|
ALLEGROCLBIN=
|
||||||
|
|
||||||
|
AC_ARG_WITH(allegrocl, AS_HELP_STRING([--without-allegrocl], [Disable Allegro CL])
|
||||||
|
AS_HELP_STRING([--with-allegrocl=path], [Set location of Allegro CL executable (alisp)]),[ ALLEGROCLBIN="$withval"], [ALLEGROCLBIN=yes])
|
||||||
|
|
||||||
|
# First, check for "--without-allegrocl" or "--with-allegrocl=no".
|
||||||
|
if test x"${ALLEGROCLBIN}" = xno -o x"${with_alllang}" = xno ; then
|
||||||
|
AC_MSG_NOTICE([Disabling Allegro CL])
|
||||||
|
else
|
||||||
|
|
||||||
|
# can we find allegrocl?
|
||||||
|
if test "x$ALLEGROCLBIN" = xyes; then
|
||||||
|
AC_PATH_PROG(ALLEGROCLBIN, alisp)
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(ALLEGROCLBIN)
|
||||||
|
|
||||||
#----------------------------------------------------------------
|
#----------------------------------------------------------------
|
||||||
# Determine which languages to use for examples/test-suite
|
# Determine which languages to use for examples/test-suite
|
||||||
#----------------------------------------------------------------
|
#----------------------------------------------------------------
|
||||||
|
|
@ -1746,6 +1768,12 @@ if test -z "$LUABIN" || test -z "$LUAINCLUDE" || test -z "$LUALIB" || test -z "$
|
||||||
fi
|
fi
|
||||||
AC_SUBST(SKIP_LUA)
|
AC_SUBST(SKIP_LUA)
|
||||||
|
|
||||||
|
SKIP_ALLEGROCL=
|
||||||
|
if test -z "$ALLEGROCLBIN" ; then
|
||||||
|
SKIP_ALLEGROCL="1"
|
||||||
|
fi
|
||||||
|
AC_SUBST(SKIP_ALLEGROCL)
|
||||||
|
|
||||||
#----------------------------------------------------------------
|
#----------------------------------------------------------------
|
||||||
# Miscellaneous
|
# Miscellaneous
|
||||||
#----------------------------------------------------------------
|
#----------------------------------------------------------------
|
||||||
|
|
@ -1804,6 +1832,7 @@ AC_CONFIG_FILES([ \
|
||||||
Examples/test-suite/ruby/Makefile \
|
Examples/test-suite/ruby/Makefile \
|
||||||
Examples/test-suite/tcl/Makefile \
|
Examples/test-suite/tcl/Makefile \
|
||||||
Examples/test-suite/lua/Makefile \
|
Examples/test-suite/lua/Makefile \
|
||||||
|
Examples/test-suite/allegrocl/Makefile \
|
||||||
])
|
])
|
||||||
AC_CONFIG_FILES([preinst-swig], [chmod +x preinst-swig])
|
AC_CONFIG_FILES([preinst-swig], [chmod +x preinst-swig])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue