Changeset 663baa in git
- Timestamp:
- Jul 28, 2009, 12:39:05 PM (14 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 1f3a1b8c5d19502f1e5edf853b7db2d835ef2e5c
- Parents:
- 3f4e526e3cc452dc07c10ec2049456a441cf11d8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Tst/regress.cmd
r3f4e52 r663baa 2 2 3 3 ################################################################# 4 # $Id: regress.cmd,v 1.4 1 2009-07-27 19:31:16 motsakExp $4 # $Id: regress.cmd,v 1.42 2009-07-28 10:39:05 Singular Exp $ 5 5 # FILE: regress.cmd 6 6 # PURPOSE: Script which runs regress test of Singular … … 717 717 } 718 718 719 sub file_check 720 { 721 local($t)= $_[0]; 722 print( "Processing: $t\n"); 719 720 # now do the work 721 foreach (@ARGV) 722 { 723 723 724 724 if ( /^(.*)\.([^\.\/]*)$/ ) … … 732 732 $path = $1; 733 733 $base = $2; 734 735 local($pwd);736 chop($pwd=`pwd`);737 738 734 chdir($path); 739 735 print "cd $path\n" if ($verbosity > 2); … … 753 749 elsif ($extension eq "lst") 754 750 { 751 755 752 if (! open(LST_FILE, "<$file")) 756 753 { … … 766 763 if (/^;/) # ignore lines starting with ; 767 764 { 768 765 print unless ($verbosity == 0); 769 766 next; 770 767 } 771 768 next if (/^\s*$/); #ignore whitespaced lines 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 769 chop if (/\n$/); #chop of \n 770 771 $_ = $1 if (/^(.*)\.([^\.\/]*)$/ ); # chop of extension 789 772 if ( /^(.*)\/([^\/]*)$/ ) 790 773 { … … 813 796 } 814 797 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) 815 800 } 816 801 else … … 821 806 if ($path ne "") 822 807 { 823 chdir($ pwd);808 chdir($curr_dir); 824 809 print "cd $curr_dir\n" if ($verbosity > 2); 825 810 } 826 811 } 827 828 829 # now do the work830 foreach (@ARGV)831 {832 file_check($_);833 }834 835 printf("$base Summary: Checks:$lst_checks Failed:%d Time:%.2f\n", $lst_checks - $lst_checks_pass, $lst_used_time)836 unless ($verbosity < 2);837 838 812 839 813 unless ($verbosity < 2 || $lst_checks == $total_checks)
Note: See TracChangeset
for help on using the changeset viewer.