[Pkg-octave-commit] [SCM] Debian packaging for octave-pkg-dev branch, master, updated. debian/1.0.0-11-g8038f5a
Rafael Laboissiere
rafael at laboissiere.net
Mon Mar 12 15:46:17 UTC 2012
The following commit has been merged in the master branch:
commit 8038f5af31c4fae34e21394e611a35d7e967739c
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date: Mon Mar 12 08:44:24 2012 +0100
Add a variable for controlling the behaviour of the test command
diff --git a/octave-pkg.mk b/octave-pkg.mk
index d5644d1..7bf959d 100644
--- a/octave-pkg.mk
+++ b/octave-pkg.mk
@@ -37,6 +37,11 @@ octave_options = --no-history --silent --no-init-file
global_list = global-list
local_list = local-list
+# The following variable can be overriden in debian/rules to alter the
+# behavior of the tests. Possible values are 'quiet', 'normal', and
+# 'verbose'. Users must set its value after inclusion of octave-pkg.mk.
+OCTPKG_TEST_OPT =
+
export LDFLAGS=-Wl,--as-needed
export OCTAVE_HISTFILE=/dev/null
# even with '--no-history', Octave creates an empty .octave_hist at startup,
@@ -111,7 +116,7 @@ check-pkg:
find debian/ -name \*.m \
| xargs grep -l '^%!\(assert\|test\)' \
| perl -pe 's:[^@]*/(.*)\.m::; \
- print "disp (\"[$$1]\")\ntest $$1"' \
+ print "disp (\"[$$1]\")\ntest $$1 $(OCTPKG_TEST_OPT)"' \
>> $$tmp ; \
$(octave) $(octave_options) $$tmp ; \
rm -f $$tmp
@@ -138,7 +143,7 @@ check-pkg:
find src/ -name \*.cc \
| xargs grep -l '^%!\(assert\|test\)' \
| perl -pe 's:.*/(.*)\.cc::; \
- print "disp (\"[$$1]\")\ntest $$1"' \
+ print "disp (\"[$$1]\")\ntest $$1 $(OCTPKG_TEST_OPT)"' \
>> $$tmp ; \
fi ; \
octave $(octave_options) $$tmp ; \
--
Debian packaging for octave-pkg-dev
More information about the Pkg-octave-commit
mailing list