[Pkg-octave-commit] [octave-pkg-dev] 03/07: check-pkg: Run both .m and .cc tests in a single Octave script

Rafael Laboissiere rafael at debian.org
Wed Aug 30 14:10:52 UTC 2017


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

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

commit 9574f9069665132b40af2d2179b4055c8776b339
Author: Rafael Laboissiere <rafael at debian.org>
Date:   Wed Aug 30 08:20:18 2017 -0300

    check-pkg: Run both .m and .cc tests in a single Octave script
---
 check-pkg | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/check-pkg b/check-pkg
index 4fe5335..02c8ab3 100755
--- a/check-pkg
+++ b/check-pkg
@@ -7,9 +7,9 @@ echo Checking package...
 unit_test_regex='^%!\(assert\|test\|error\|fail\|xtest\|warning\)'
 
 # Extract tests from installed m files
-echo Checking m files ...
 tmp=$(tempfile)
 cat >$tmp <<EOF
+disp ('echo Checking m files ...');
 addpath (genpath (sprintf ('%s/debian', pwd ())));
 [usr_pkg, sys_pkg] = pkg ('list');
 for i = 1 : length (sys_pkg)
@@ -23,8 +23,6 @@ for f in $(find inst/ -name \*.m $excluded_files_expr	| grep -v /private/) ; do
         echo "test $stem $OCTPKG_TEST_OPT" >> $tmp
     fi
 done
-$OCTPKG_TEST_ENV $octave $octave_options $tmp
-rm -f $tmp
 
 # Extract tests from .cc files - these are not installed, but the
 # compiled .oct files are.
@@ -34,9 +32,8 @@ rm -f $tmp
 # directives)
 
 # We deactivate the warning about relative paths used for the PKG_ADD file.
-echo Checking CC files ...
-tmp=$(tempfile)
-cat >$tmp <<EOF
+cat >>$tmp <<EOF
+disp ('echo Checking CC files ...');
 addpath (genpath (pwd (), '.pc'));
 [usr_pkg, sys_pkg] = pkg ('list');
 for i = 1 : length (sys_pkg);

-- 
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