Enable cpp tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12370 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ee812c1c86
commit
efcc9e97c9
1 changed files with 9 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue