[Pkg-octave-commit] [octave-pkg-dev] 01/02: octave-pkg.mk: Ensure that all packages are loaded for unit testing

Rafael Laboissière rlaboiss-guest at moszumanska.debian.org
Mon Apr 13 06:02:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

rlaboiss-guest pushed a commit to branch master
in repository octave-pkg-dev.

commit 70679a7596f0b0f0821d0e8f38a046380e597dca
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date:   Sun Apr 12 18:36:27 2015 -0300

    octave-pkg.mk: Ensure that all packages are loaded for unit testing
---
 octave-pkg.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/octave-pkg.mk b/octave-pkg.mk
index 16ab4f1..8a05cbd 100644
--- a/octave-pkg.mk
+++ b/octave-pkg.mk
@@ -139,6 +139,7 @@ check-pkg:
 	@echo Checking m files ...
 	@tmp=$$(tempfile) ;					\
 	echo "addpath (genpath ([pwd(),'/debian']));" > $$tmp ;	\
+	echo "pkg load all;" >> $$tmp ;				\
 	find debian/ -name \*.m	$(excluded_files_expr)		\
 		| grep -v /private/				\
 		| xargs grep -l '^%!\(assert\|test\)'		\
@@ -159,6 +160,7 @@ check-pkg:
 	@echo Checking CC files ...
 	@tmp=$$(tempfile) ;					\
 	echo "addpath (genpath ([pwd()], '.pc'));" >> $$tmp ;	\
+	echo "pkg load all;" >> $$tmp ;				\
 	echo "warning ('off', 'Octave:autoload-relative-file-name');" >> $$tmp ;	\
 	if [ -f PKG_ADD ] ; then				\
 		echo "source('PKG_ADD');" >> $$tmp ; 		\
@@ -179,6 +181,7 @@ check-pkg:
 	@if [ -f debian/check.m ] ; then				\
 		$(OCTPKG_TEST_ENV) $(octave) $(octave_options) --eval	\
 			"addpath (genpath ([pwd(),'/debian']));		\
+			 pkg load all;					\
 			 source ('debian/check.m');" ;			\
 	fi
 

-- 
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave-pkg-dev.git



More information about the Pkg-octave-commit mailing list