Mercurial > forge
changeset 2645:7ac5812be279 octave-forge
Use addpath to include the package build directory and some test code might be included but not installed
author | adb014 |
---|---|
date | Mon, 09 Oct 2006 19:59:53 +0000 |
parents | c051c91dde47 |
children | 67569b84e26c |
files | packages/Makefile |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/Makefile Mon Oct 09 19:58:09 2006 +0000 +++ b/packages/Makefile Mon Oct 09 19:59:53 2006 +0000 @@ -53,12 +53,13 @@ cmd="$$cmd);"; \ octave -H -q --eval "$$cmd;" -# No spaces in eval argument please!! +# No spaces in eval argument please!! Need the addpath(genpath('./'),'-end') +# as the package might include uninstalled code that has tests.. checkpkg/%: cleancheck/% mkpkg/% @echo "Running test code for $(opkg) and its dependencies" ; \ cd sandbox; \ $(TOPDIR)/admin/mktests.sh code; \ - $(RUN_OCTAVE) --eval "pkg('load','all');fntests" ; \ + $(RUN_OCTAVE) --eval "pkg('load','all');addpath(genpath('./'),'-end');fntests" ; \ if [ ! -e $(TESTLOG) ]; then touch $(TESTLOG); fi ; \ cat fntests.log >> $(TESTLOG); \ cd ..