]> mj.ucw.cz Git - checkmail.git/commitdiff
release.pm: Make test compile command configurable
authorMartin Mares <mj@ucw.cz>
Sun, 18 Jul 2010 14:03:06 +0000 (16:03 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 18 Jul 2010 14:03:06 +0000 (16:03 +0200)
maint/release.pm

index 59bbe147e9900fb8540b6c03f9e525b3cd024ca1..897afc94b891c8c0c61eee51d3e1490a507f91aa 100644 (file)
@@ -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";