Changeset 863a27 in git for Tst


Ignore:
Timestamp:
Apr 23, 1998, 10:30:52 AM (26 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
Children:
e4b0ecb335b41553f06500f3237225b9440c8935
Parents:
751c5ca78ac69036cc8a0d6ae34bb24f7be5454c
Message:
* switched from gzipprd files to uuencoded files


git-svn-id: file:///usr/local/Singular/svn/trunk@1428 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Tst
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Tst/README

    r751c5c r863a27  
    2222    is run.
    23235.) If no diffs were found, xx.diff and xx.new.res are rm'ed and
    24     xx.res is gzip'ed. Otherwise (i.e., diffs were found), xx.diff and
    25     xx.new.res are kept, diffs are printed to stdout, and regress.cmd
    26     exits with exit status != 0.
     24    xx.res is gzip'ed and uuencoded. Otherwise (i.e., diffs were
     25    found), xx.diff and xx.new.res are kept, diffs are printed to
     26    stdout, and regress.cmd exits with exit status != 0.
    2727
    2828Do also
    2929   ../regress.cmd -h
    30 for some more details on regress.cmd.
     30and see the source code of ../regress.cmd for some more details on
     31regress.cmd.
    3132
    3233To add a new test for a library/commando to the test-suite:
     
    7677  "memory" keyword -- // ignore: memory:
    7778  which causes automatic tests to ignore these lines when doing a diff
    78   on result files. If possible, short tests should not contain
    79   system-dependent output.
     79  on result files.
     80 
     81  3.) Time and/or memory-intensive tests should be followed by
     82  (tst_ignore'd) time (resp. memory) output, so that we can keep track
     83  of the timing (resp. memory) behaviour of Singular. This could be
     84  accomplished as shown below:
     85  int mytime = timer;
     86  /* time/memory intesive computations */
     87  tst_ignore("time", timer - mytime);
     88  tst_ignore("memory", memory(0));
    8089
    8190* Command for generating *.res files:
  • Tst/regress.cmd

    r751c5c r863a27  
    22
    33#################################################################
    4 # $Id: regress.cmd,v 1.1.1.1 1998-04-17 15:06:45 obachman Exp $
     4# $Id: regress.cmd,v 1.2 1998-04-23 08:30:52 obachman Exp $
    55# FILE:    regress.cmd
    66# PURPOSE: Script which runs regress test of Singular
     
    2020  [-h]             -- print out help and exit
    2121  [-n]             -- do not ignore output from tst_ignore when diffing
    22   [-k]             -- keep result (*.res) files, do not gzip original res file
     22  [-k]             -- keep result (*.res) files, do not zip original res file
    2323  [-v num]         -- set verbosity to num (used range 0..3, default: 1)
    2424  [-g]             -- generate result (*.res) files, only
     
    5454$rm = "rm";
    5555$cp = "cp";
     56$uuencode = "uuencode";
     57$uudecode = "uudecode";
    5658
    5759#################################################################
     
    8486    if (! (-r "$root.res.gz"))
    8587    {
    86       if ($generate ne "yes")
    87       {
    88         print (STDERR "Can not read $root.res[.gz]\n");
    89         return (1);
     88      if (! (-r "$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        }
    90105      }
    91106    }
     
    95110      if ($exit_status)
    96111      {
    97         print (STDERR "Can not $gunzip -f -c $root.res.gz > $root.res" );
     112        print (STDERR "Can not `$gunzip -f -c $root.res.gz > $root.res'\n" );
    98113        return ($exit_status);
    99114      }
     
    146161  {
    147162    & mysystem("$rm -rf $root.new.res $root.diff");
    148     if (-r "$root.res.gz")
     163    if (-r "$root.res.gz.uu")
    149164    {
    150165      & mysystem("$rm -rf $root.res");
     
    152167    else
    153168    {
    154       & mysystem("$gzip -f $root.res");
     169      & mysystem("$gzip -f $root.res; $uuencode $root.res.gz $root.res.gz > $root.res.gz");
    155170    }
    156171  }
    157172  elsif ($generate eq "yes")
    158173  {
    159     & mysystem("$gzip -f $root.res");
     174    & mysystem("$gzip -f $root.res; $uuencode $root.res.gz $root.res.gz > $root.res.gz");
    160175    if ($keep eq "yes")
    161176    {
Note: See TracChangeset for help on using the changeset viewer.