Changeset d66b1f0 in git


Ignore:
Timestamp:
Jul 27, 2009, 9:31:16 PM (14 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
Children:
d3ce3f1ac00df7b7eb45cc1b46a0e91829044810
Parents:
6a124684c584509ebdfbe2be941f871756c56dec
Message:
*motsak: added processing of lists within lists


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

Legend:

Unmodified
Added
Removed
  • Tst/regress.cmd

    r6a1246 rd66b1f0  
    22
    33#################################################################
    4 # $Id: regress.cmd,v 1.40 2009-02-12 15:42:38 motsak Exp $
     4# $Id: regress.cmd,v 1.41 2009-07-27 19:31:16 motsak Exp $
    55# FILE:    regress.cmd
    66# PURPOSE: Script which runs regress test of Singular
     
    717717}
    718718
    719 
    720 # now do the work
    721 foreach (@ARGV)
    722 {
     719sub file_check
     720{
     721  local($t)= $_[0];
     722  print( "Processing: $t\n");
    723723
    724724  if ( /^(.*)\.([^\.\/]*)$/ )
     
    732732    $path = $1;
    733733    $base = $2;
     734
     735    local($pwd);
     736    chop($pwd=`pwd`);
     737
    734738    chdir($path);
    735739    print "cd $path\n" if ($verbosity > 2);
     
    749753  elsif ($extension eq "lst")
    750754  {
    751    
    752755    if (! open(LST_FILE, "<$file"))
    753756    {
     
    763766      if (/^;/)          # ignore lines starting with ;
    764767      {
    765         print unless ($verbosity == 0);
     768          print unless ($verbosity == 0);
    766769        next;
    767770      }
    768771      next if (/^\s*$/); #ignore whitespaced lines
    769       chop if (/\n$/);   #chop of \n
    770 
    771       $_ = $1 if (/^(.*)\.([^\.\/]*)$/ ); # chop of extension
     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
    772789      if ( /^(.*)\/([^\/]*)$/ )
    773790      {
     
    796813    }
    797814    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)
    800815  }
    801816  else
     
    806821  if ($path ne "")
    807822  {
    808     chdir($curr_dir);
     823    chdir($pwd);
    809824    print "cd $curr_dir\n" if ($verbosity > 2);
    810825  }
    811826}
     827
     828
     829# now do the work
     830foreach (@ARGV)
     831{
     832  file_check($_);
     833}
     834
     835printf("$base Summary: Checks:$lst_checks Failed:%d Time:%.2f\n", $lst_checks - $lst_checks_pass, $lst_used_time)
     836  unless ($verbosity < 2);
     837
    812838
    813839unless ($verbosity < 2 || $lst_checks == $total_checks)
Note: See TracChangeset for help on using the changeset viewer.