Changeset a7bb142 in git


Ignore:
Timestamp:
Sep 22, 2011, 8:41:47 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'fc741b6502fd8a97288eaa3eba6e5220f3c3df87')
Children:
8940570905a602941da734a473ebc2ff0bd9238d
Parents:
5ff885162d38fce9782dd8498f084c9021c200a6
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-09-22 20:41:47+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:12:52+01:00
Message:
ADD: add test execution timeout argument for regress.cmd (-A secs)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Tst/regress.cmd

    r5ff885 ra7bb142  
    2828  [-m]              -- add status result for current version to result file
    2929  [-t]              -- compute and call system("mtrack", 1) at the end, no diffs
     30  [-A num]          -- set timeout [in sec.] for executed Singular
    3031  [-tt max]         -- compute and call system("mtrack", max) at the end
    3132  [-T]              -- simply compute and determine timmings, no diffs
     
    115116  $singular = $curr_dir."/../Singular$ext";
    116117}
     118# timeout for Singular execution (in seconds!)
     119$timeout  = 0;
    117120# sed scripts which are applied to res files before they are diff'ed
    118121$sed_scripts = "-e '/used time:/d' -e '/tst_ignore:/d' -e '/Id[:\$]/d' -e '/error occurred in/d' -e '/tst_status/d' -e'/init >>/d' -e 's/\\[[0-9]*:[0-9]*\\]//g'";
     
    589592    $mtrack = shift;
    590593  }
     594  elsif (/^-A/)
     595  {
     596    $timeout = shift;
     597  }
    591598  elsif(/^-t$/)
    592599  {
     
    718725
    719726
     727if ($timeout > 0)
     728{
     729  $singular = "perl -e 'alarm $timeout; exec \@ARGV' $singular";
     730  print ("Set exec timeout to $timeout sec.\n") if ($verbosity > 1);
     731  # die;
     732}
    720733# now do the work
    721734foreach (@ARGV)
Note: See TracChangeset for help on using the changeset viewer.