From: Martin Mares Date: Sun, 18 Jul 2010 14:03:06 +0000 (+0200) Subject: release.pm: Make test compile command configurable X-Git-Tag: v1.4~2 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=2212530058d21fddd864e3f9419c1d26680b7fb6;p=checkmail.git release.pm: Make test compile command configurable --- diff --git a/maint/release.pm b/maint/release.pm index 59bbe14..897afc9 100644 --- a/maint/release.pm +++ b/maint/release.pm @@ -33,6 +33,7 @@ sub new($$) { ], "notifiers" => [ ], + "test_cmd" => "make", # Options "do_test" => 1, "do_patch" => 1, @@ -265,8 +266,9 @@ sub Test($) { my $dd = $s->{"DISTDIR"}; my $pkg = $s->{"PKG"}; my $log = "$dd/$pkg.log"; + my $test_cmd = $s->{"test_cmd"}; print "Doing a test compilation\n"; - `( cd $dd/$pkg && make ) >$log 2>&1`; + `( cd $dd/$pkg && $test_cmd ) >$log 2>&1`; die "There were errors. Please inspect $log" if $?; `grep -q [Ww]arning $log`; $? or print "There were warnings! Please inspect $log.\n";