Changeset 663baa in git


Ignore:
Timestamp:
Jul 28, 2009, 12:39:05 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
1f3a1b8c5d19502f1e5edf853b7db2d835ef2e5c
Parents:
3f4e526e3cc452dc07c10ec2049456a441cf11d8
Message:
*hannes: nightly builds fail


git-svn-id: file:///usr/local/Singular/svn/trunk@12025 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Tst/regress.cmd

    r3f4e52 r663baa  
    22
    33#################################################################
    4 # $Id: regress.cmd,v 1.41 2009-07-27 19:31:16 motsak Exp $
     4# $Id: regress.cmd,v 1.42 2009-07-28 10:39:05 Singular Exp $
    55# FILE:    regress.cmd
    66# PURPOSE: Script which runs regress test of Singular
     
    717717}
    718718
    719 sub file_check
    720 {
    721   local($t)= $_[0];
    722   print( "Processing: $t\n");
     719
     720# now do the work
     721foreach (@ARGV)
     722{
    723723
    724724  if ( /^(.*)\.([^\.\/]*)$/ )
     
    732732    $path = $1;
    733733    $base = $2;
    734 
    735     local($pwd);
    736     chop($pwd=`pwd`);
    737 
    738734    chdir($path);
    739735    print "cd $path\n" if ($verbosity > 2);
     
    753749  elsif ($extension eq "lst")
    754750  {
     751   
    755752    if (! open(LST_FILE, "<$file"))
    756753    {
     
    766763      if (/^;/)          # ignore lines starting with ;
    767764      {
    768           print unless ($verbosity == 0);
     765        print unless ($verbosity == 0);
    769766        next;
    770767      }
    771768      next if (/^\s*$/); #ignore whitespaced lines
    772       chop;   #chop of \n
    773 
    774       $t = $_;
    775 
    776       if ( /^(.*)\.([^\.\/]*)$/ )
    777       {
    778         $_ = $1; # chop of extension
    779 
    780         if( $2 eq "lst")
    781         {
    782           print("going... recursive into: $t!\n");
    783           file_check("$t");
    784           next;
    785         }
    786       }
    787 #     $_ = $1 if (/^(.*)\.([^\.\/]*)$/ );
    788 
     769      chop if (/\n$/);   #chop of \n
     770
     771      $_ = $1 if (/^(.*)\.([^\.\/]*)$/ ); # chop of extension
    789772      if ( /^(.*)\/([^\/]*)$/ )
    790773      {
     
    813796    }
    814797    close (LST_FILE);
     798    printf("$base Summary: Checks:$lst_checks Failed:%d Time:%.2f\n", $lst_checks - $lst_checks_pass, $lst_used_time)
     799      unless ($verbosity < 2)
    815800  }
    816801  else
     
    821806  if ($path ne "")
    822807  {
    823     chdir($pwd);
     808    chdir($curr_dir);
    824809    print "cd $curr_dir\n" if ($verbosity > 2);
    825810  }
    826811}
    827 
    828 
    829 # now do the work
    830 foreach (@ARGV)
    831 {
    832   file_check($_);
    833 }
    834 
    835 printf("$base Summary: Checks:$lst_checks Failed:%d Time:%.2f\n", $lst_checks - $lst_checks_pass, $lst_used_time)
    836   unless ($verbosity < 2);
    837 
    838812
    839813unless ($verbosity < 2 || $lst_checks == $total_checks)
Note: See TracChangeset for help on using the changeset viewer.