The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6fcc22a1f8
commit
516036631c
1508 changed files with 125983 additions and 44037 deletions
64
SWIG/Examples/test-suite/ocaml/Makefile
Normal file
64
SWIG/Examples/test-suite/ocaml/Makefile
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
LANGUAGE = ocaml
|
||||
VARIANT = _static
|
||||
SCRIPTSUFFIX = _runme.ml
|
||||
|
||||
C_TEST_CASES =
|
||||
|
||||
run_testcase = \
|
||||
if [ -f $*\_runme.ml ] ; then \
|
||||
(ocamlc -c $*\_runme.ml ; \
|
||||
ocamlc -custom -g -o runme $*\.cmo $*\_runme.cmo $*\_wrap.o ; \
|
||||
./runme) ; \
|
||||
fi ;
|
||||
|
||||
check_quant:
|
||||
cat /dev/null > testing
|
||||
cat /dev/null > success
|
||||
cat /dev/null > results
|
||||
$(MAKE) check
|
||||
echo "Failed:" >> results
|
||||
for element in `cat testing` ; do \
|
||||
if grep $$element success >/dev/null 2>/dev/null ; then \
|
||||
: ; \
|
||||
else \
|
||||
echo $$element >> results ; \
|
||||
fi ; \
|
||||
done
|
||||
echo "Success:" >> results
|
||||
cat success >> results
|
||||
|
||||
include ../common.mk
|
||||
|
||||
%.cpptest:
|
||||
echo $@ >> testing
|
||||
$(setup) \
|
||||
($(swig_and_compile_cpp); ) ; \
|
||||
$(run_testcase) \
|
||||
if [ -f $(@:%.cpptest=%_wrap.o) ] ; then \
|
||||
echo $@ >> success ; \
|
||||
fi
|
||||
|
||||
%.ctest:
|
||||
echo $@ >> testing
|
||||
$(setup) \
|
||||
($(swig_and_compile_c); ) ; \
|
||||
$(run_testcase) \
|
||||
if [ -f $(@:%.ctest=%_wrap.o) ] ; then \
|
||||
echo $@ >> success ; \
|
||||
fi
|
||||
|
||||
%.multicpptest:
|
||||
echo $@ >> testing
|
||||
$(setup) \
|
||||
($(swig_and_compile_multi_cpp); ) ; \
|
||||
$(run_testcase) \
|
||||
if [ -f $(@:%.multicpptest=%_a_wrap.o) ] ; then \
|
||||
echo $@ >> success ; \
|
||||
fi
|
||||
|
||||
%.clean:
|
||||
@rm -f $*.ml $*.mli;
|
||||
|
||||
clean:
|
||||
$(MAKE) -f $(TOP)/Makefile ocaml_clean
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue