Changeset e45fd3 in git for Tst/regress.cmd


Ignore:
Timestamp:
Oct 27, 1998, 6:31:21 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
85c8634a283105981871af90f7a0b4842d2221cf
Parents:
62bc0ac779982230625bd5dccd75117ede60ef04
Message:
* only stat files


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

Legend:

Unmodified
Added
Removed
  • Tst/regress.cmd

    r62bc0ac re45fd3  
    22
    33#################################################################
    4 # $Id: regress.cmd,v 1.24 1998-07-14 14:18:31 obachman Exp $
     4# $Id: regress.cmd,v 1.25 1998-10-27 17:31:13 obachman Exp $
    55# FILE:    regress.cmd
    66# PURPOSE: Script which runs regress test of Singular
     
    105105}
    106106# sed scripts which are applied to res files before they are diff'ed
    107 $sed_scripts = "-e '/used time:/d' -e '/tst_ignore:/d' -e '/Id:/d'";
     107$sed_scripts = "-e '/used time:/d' -e '/tst_ignore:/d' -e '/Id:/d' -e '/error occurred in/d'";
    108108# default value (in %) above which differences are reported on -r
    109109$report_val = 5;
     
    197197  local($line,$new_line,$prefix,$crit,$res,$new_res);
    198198  local($res_diff,$res_diff_pc,$res_diff_line);
    199   local($exit_status) = 0;
     199  local($exit_status, $reported) = (0, 0);
    200200  local($error_cause) = "";
    201201 
     
    209209  $new_line = <NEW_RES_FILE>;
    210210  $line = <RES_FILE>;
     211 
    211212  while ($line && $new_line)
    212213  {
     
    224225        $res_diff_line =
    225226          "$prefix >> $crit :: new:$new_res old:$res diff:$res_diff %:$res_diff_pc";
    226         print (STATUS_DIFF_FILE "$res_diff_line\n")
    227           if ((defined($error{$crit}) &&  $error{$crit}<abs($res_diff_pc))
     227        if ((defined($error{$crit}) &&  $error{$crit}<abs($res_diff_pc))
    228228              ||
    229               (defined($report{$crit}) && $report{$crit}<abs($res_diff_pc)));
    230        
    231         print "$res_diff_line\n"
    232           if ($verbosity > 0 &&
    233               ((defined($error{$crit}) &&  $error{$crit}<abs($res_diff_pc))
    234               ||
    235               (defined($report{$crit}) && $report{$crit}<abs($res_diff_pc))));
     229            (defined($report{$crit}) && $report{$crit}<abs($res_diff_pc)))
     230        {
     231          $reported = 1;
     232          print (STATUS_DIFF_FILE "$res_diff_line\n");
     233          print "$res_diff_line\n" if ($verbosity > 0);
     234        }
    236235
    237236        if ($exit_status == 0)
     
    251250  close(STATUS_DIFF_FILE);
    252251  mysystem("rm -f $root.stat.sdiff")
    253     if ($exit_status == 0 && $keep ne "yes");
    254  
     252    if ($reported == 0 &&  $exit_status == 0 && $keep ne "yes");
    255253  return ($exit_status, $error_cause);
    256254}
     
    447445    if ($keep ne "yes")
    448446    {
    449       &mysystem("$rm -f tst_status.out $root.new.res $root.res $root.*diff $root.new.stat");
     447      &mysystem("$rm -f tst_status.out $root.new.res $root.res $root.diff $root.new.stat");
    450448    }
    451449  }
Note: See TracChangeset for help on using the changeset viewer.