- Timestamp:
- Apr 23, 1998, 10:30:52 AM (26 years ago)
- Branches:
- (u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
- Children:
- e4b0ecb335b41553f06500f3237225b9440c8935
- Parents:
- 751c5ca78ac69036cc8a0d6ae34bb24f7be5454c
- Location:
- Tst
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Tst/README
r751c5c r863a27 22 22 is run. 23 23 5.) 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 and25 xx.new.res are kept, diffs are printed to stdout, and regress.cmd26 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. 27 27 28 28 Do also 29 29 ../regress.cmd -h 30 for some more details on regress.cmd. 30 and see the source code of ../regress.cmd for some more details on 31 regress.cmd. 31 32 32 33 To add a new test for a library/commando to the test-suite: … … 76 77 "memory" keyword -- // ignore: memory: 77 78 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)); 80 89 81 90 * Command for generating *.res files: -
Tst/regress.cmd
r751c5c r863a27 2 2 3 3 ################################################################# 4 # $Id: regress.cmd,v 1. 1.1.1 1998-04-17 15:06:45obachman Exp $4 # $Id: regress.cmd,v 1.2 1998-04-23 08:30:52 obachman Exp $ 5 5 # FILE: regress.cmd 6 6 # PURPOSE: Script which runs regress test of Singular … … 20 20 [-h] -- print out help and exit 21 21 [-n] -- do not ignore output from tst_ignore when diffing 22 [-k] -- keep result (*.res) files, do not gzip original res file22 [-k] -- keep result (*.res) files, do not zip original res file 23 23 [-v num] -- set verbosity to num (used range 0..3, default: 1) 24 24 [-g] -- generate result (*.res) files, only … … 54 54 $rm = "rm"; 55 55 $cp = "cp"; 56 $uuencode = "uuencode"; 57 $uudecode = "uudecode"; 56 58 57 59 ################################################################# … … 84 86 if (! (-r "$root.res.gz")) 85 87 { 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 } 90 105 } 91 106 } … … 95 110 if ($exit_status) 96 111 { 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" ); 98 113 return ($exit_status); 99 114 } … … 146 161 { 147 162 & mysystem("$rm -rf $root.new.res $root.diff"); 148 if (-r "$root.res.gz ")163 if (-r "$root.res.gz.uu") 149 164 { 150 165 & mysystem("$rm -rf $root.res"); … … 152 167 else 153 168 { 154 & mysystem("$gzip -f $root.res ");169 & mysystem("$gzip -f $root.res; $uuencode $root.res.gz $root.res.gz > $root.res.gz"); 155 170 } 156 171 } 157 172 elsif ($generate eq "yes") 158 173 { 159 & mysystem("$gzip -f $root.res ");174 & mysystem("$gzip -f $root.res; $uuencode $root.res.gz $root.res.gz > $root.res.gz"); 160 175 if ($keep eq "yes") 161 176 {
Note: See TracChangeset
for help on using the changeset viewer.