Changeset 49d361 in git for Tst/regress.cmd


Ignore:
Timestamp:
Apr 30, 1998, 9:40:10 AM (26 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
4ed3317fbd9191af9799c82b127995dc2fe99db4
Parents:
8f0d304c9a165fcdc22365612d5836dfafc98d7e
Message:
*changed order of looking for result files: 1. uu then .res


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

Legend:

Unmodified
Added
Removed
  • Tst/regress.cmd

    r8f0d304 r49d361  
    22
    33#################################################################
    4 # $Id: regress.cmd,v 1.6 1998-04-23 13:40:45 obachman Exp $
     4# $Id: regress.cmd,v 1.7 1998-04-30 07:40:10 obachman Exp $
    55# FILE:    regress.cmd
    66# PURPOSE: Script which runs regress test of Singular
     
    8282    return (1);
    8383  }
    84   if ((! (-r "$root.res")) || (-z "$root.res"))
    85   {
    86     if ((! (-r "$root.res.gz")) || (-z "$root.res.gz"))
    87     {
    88       if ((! (-r "$root.res.gz.uu")) || (-z "$root.res.gz.uu"))
    89       {
    90         if ($generate ne "yes")
    91         {
    92           print (STDERR "Can not read $root.res[.gz]\n");
    93           return (1);
    94         }
    95       }
    96       else
    97       {
    98         $exit_status
    99           = $exit_status || &mysystem("$uudecode -o $root.res.gz $root.res.gz.uu; $gunzip $root.res.gz");
    100         if ($exit_status)
    101         {
    102           print (STDERR "Can not decode $root.res.gz.uu\n");
    103           return ($exit_status);
    104         }
    105       }
    106     }
    107     else
    108     {
    109       $exit_status = $exit_status || & mysystem("$gunzip -f -c $root.res.gz > $root.res");
     84  if ($generate ne "yes")
     85  {
     86    if ((-r "$root.res.gz.uu") && ! ( -z "$root.res.gz.uu"))
     87    {
     88      $exit_status
     89        = $exit_status || &mysystem("$uudecode -o $root.res.gz $root.res.gz.uu; $gunzip -f $root.res.gz");
    11090      if ($exit_status)
    11191      {
    112         print (STDERR "Can not `$gunzip -f -c $root.res.gz > $root.res'\n" );
     92        print (STDERR "Can not decode $root.res.gz.uu\n");
    11393        return ($exit_status);
    11494      }
     95    }
     96    elsif (! (-r "$root.res") || ( -z "$root.res"))
     97    {
     98      print (STDERR "Can not read $root.res[.gz.uu]\n");
     99      return (1);
     100     
    115101    }
    116102  }
     
    172158  elsif ($generate eq "yes")
    173159  {
    174     & mysystem("$gzip -f $root.res; $uuencode $root.res.gz $root.res.gz > $root.res.gz.uu");
     160    & mysystem("$gzip -f $root.res; $uuencode $root.res.gz $root.res.gz > $root.res.gz.uu; $rm -rf $root.res.gz");
    175161    if ($keep eq "yes")
    176162    {
    177163      & mysystem("mv $root.new.res $root.res");
    178     }
    179     else
    180     {
    181       & mysystem("$rm -rf $root.new.res $root.res.gz");
    182164    }
    183165  }
Note: See TracChangeset for help on using the changeset viewer.