Scilab: fix use of configure cache for multicpptest test-suite

This commit is contained in:
Simon Marchetto 2013-08-22 14:37:28 +02:00
commit 908c9d1f14
2 changed files with 13 additions and 2 deletions

View file

@ -17,22 +17,34 @@ top_builddir = @top_builddir@
include $(srcdir)/../common.mk
# configure cache to speed up test run
CONF_CACHE=/tmp/scilab-test-suite.config.cache
CONFIG_SITE=$(CURDIR)/test-suite.config.site
export CONFIG_SITE
enable_config_cache = \
echo 'cache_file=$(CONF_CACHE)' > $(CONFIG_SITE)
# need reset cache before multicpptest
reset_config_cache = \
rm -f $(CONF_CACHE)
# Rules for the different types of tests
%.cpptest:
$(setup)
$(enable_config_cache)
+$(swig_and_compile_cpp)
$(run_testcase)
%.ctest:
$(setup)
$(enable_config_cache)
+$(swig_and_compile_c)
$(run_testcase)
%.multicpptest:
$(setup)
$(reset_config_cache)
+$(swig_and_compile_multi_cpp)
$(run_testcase)
@ -45,7 +57,7 @@ run_testcase = \
# Clean: remove the generated files
%.clean:
@rm -f builder.sce loader.sce cleaner.sce $*_wrap.c $*_wrap.cxx lib$*lib.*
@rm -f builder.sce loader.sce cleaner.sce $*_wrap.c $*_wrap.cxx lib$*lib.* $(CONFIG_SITE) $(CONFIG_CACHE)
clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile scilab_clean

View file

@ -1 +0,0 @@
cache_file=/tmp/scilab-test-suite.config.cache