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