From efcc9e97c9e0009abb8d8ceedb589cdb32c8aa40 Mon Sep 17 00:00:00 2001 From: Vincent Couvert Date: Tue, 4 Jan 2011 16:06:40 +0000 Subject: [PATCH] Enable cpp tests git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12370 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/scilab/Makefile.in | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Examples/test-suite/scilab/Makefile.in b/Examples/test-suite/scilab/Makefile.in index df34c322c..259d2fcbd 100644 --- a/Examples/test-suite/scilab/Makefile.in +++ b/Examples/test-suite/scilab/Makefile.in @@ -16,16 +16,20 @@ include $(srcdir)/../common.mk # Rules for the different types of tests %.cpptest: - + @$(setup) + @+$(swig_and_compile_cpp) + @$(run_testcase) + %.ctest: @$(setup) - @cp ../$*.i $*.i - @if [ -f ../$*.h ]; then (cp ../$*.h $*.h; ) fi; @+$(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.sci appended after the testcase name. run_testcase = \ @@ -38,7 +42,7 @@ run_testcase = \ # Clean: remove the generated .sci file %.clean: - @rm -f $*.sci *_wrap.c *.i *.h *_wrap.cxx + @rm -f $*.sci *_wrap.c *.h *_wrap.cxx clean: $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile scilab_clean