[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.5.2-29-ge846020



The following commit has been merged in the master branch:
commit e8460204b322567681d1ceb8c6bef3b20ac4ea9d
Author: Niels Thykier <niels@thykier.net>
Date:   Tue Aug 16 20:55:37 2011 +0200

    t/runtests now always uses run_lintian on the built package
    
    Previously only the "changes" and the "tests" suites would use
    run_lintian, but now all package tests in the new suite uses it.
    This means that "debs" and "source" now support things like
    the "Options" and the "Profile" field (in their desc file).

diff --git a/t/runtests b/t/runtests
index 077fa41..d595b45 100755
--- a/t/runtests
+++ b/t/runtests
@@ -584,11 +584,14 @@ sub generic_test_runner {
 	dump_log($test, "$RUNDIR/build.$test") if $DUMP_LOGS;
 	fail("cd $targetdir && fakeroot make >../build.$test 2>&1");
     }
+    my @matches = glob "$targetdir/*.$ext";
+    my $file = shift @matches;
+    unless ( $file && -e $file ) {
+	fail "$test did not produce any file matching \"$targetdir/*.$ext\" ($file)";
+    }
+    fail "$test produced more than one file matching \"$targetdir/*.$ext\"" if @matches;
 
-    msg_print 'testing... ';
-    runsystem_ok("$LINTIAN --allow-root --no-cfg -I -E $targetdir/*.$ext 2>&1"
-		 . " | sort > $RUNDIR/tags.$test");
-
+    run_lintian($testdata, $file, "$RUNDIR/tags.$test");
     return _check_result($testdata, "$testdir/tags", "$RUNDIR/tags.$test");
 }
 

-- 
Debian package checker


Reply to: