[Pkg-octave-commit] [octave-pkg-dev] 01/03: check-pkg: Allow unit testing of class methods

Rafael Laboissière rlaboiss-guest at moszumanska.debian.org
Sun Jun 5 14:48:01 UTC 2016


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 6d204c4f2120aa643981c7372fc9be5697557e9e
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date:   Sun Jun 5 11:13:47 2016 -0300

    check-pkg: Allow unit testing of class methods
    
    This fixes a regression that was introduced when the rules in
    octave-pkg.mk have been transformed into shell scripts.  Thanks to
    Oliver Heimlich for the heads up.
    
    Gbp-Dch: Full
---
 check-pkg | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/check-pkg b/check-pkg
index 300cf78..c7d17a4 100755
--- a/check-pkg
+++ b/check-pkg
@@ -13,8 +13,7 @@ echo "addpath (genpath ([pwd(),'/debian']));" > $tmp
 echo "pkg load all;" >> $tmp
 for f in $(find debian/ -name \*.m $excluded_files_expr	| grep -v /private/) ; do
     if grep -q "$unit_test_regex" $f ; then
-        stem=${f%%.m}
-        stem=${stem##*/}
+        stem=$(echo $f | sed 's:[^@]*/::;s/\.m$//')
 	echo "disp (\"[$stem]\")" >> $tmp
         echo "test $stem $OCTPKG_TEST_OPT" >> $tmp
     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