Changeset 52f5a58 in git for Tst


Ignore:
Timestamp:
Sep 25, 2011, 8:32:06 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
94247563c0a457265fa75e6855cb41bf4fff3a39
Parents:
3de3f9ab13ec9653869bd4238e04e07baef77aec
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-09-25 20:32:06+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:13:29+01:00
Message:
FIX: regress.cmd should handle pathes better (e.g. trim leading "\s*./")
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Tst/regress.cmd

    r3de3f9 r52f5a58  
    10451045foreach (@ARGV)
    10461046{
     1047  if( /^([^:]*): *(.*)$/ )
     1048  {
     1049    $_=$2;
     1050  }
     1051
     1052  if ( /^\s*([^ ].*)$/ )
     1053  {
     1054    $_ = $1;
     1055  } 
     1056 
     1057  if ( /^\.\/(.*)$/ )
     1058  {
     1059    $_ = $1;
     1060  }
     1061
    10471062  $test_file = $_;
    10481063
    10491064  tcLog("test_file: $test_file");
    1050  
     1065
    10511066  if ( /^(.*)\.([^\.\/]*)$/ )
    10521067  {
    10531068    $_ = $1;
    10541069    $extension = $2;
    1055   }
     1070  } else
     1071  {
     1072    print ("Wrong input: [$_] has no extension!");
     1073    tcWarn("Wrong input: [$_] has no extension!");
     1074    next;
     1075  }
     1076   
     1077 
     1078   
     1079   
    10561080
    10571081  if ( /^(.*)\/([^\/]*)$/ )
     
    11001124        next;
    11011125      }
     1126  if( /^([^:]*): *(.*)$/ )
     1127  {
     1128    $_=$2;
     1129  }
     1130
     1131  if ( /^\s*([^\s].*)$/ )
     1132  {
     1133    $_ = $1;
     1134  } 
     1135 
     1136  if ( /^\.\/(.*)$/ )
     1137  {
     1138    $_ = $1;
     1139  }
     1140       
    11021141      next if (/^\s*$/); #ignore whitespaced lines
    11031142      chop if (/\n$/);   #chop of \n
     
    11131152        $test_file = $_;
    11141153      }
     1154
     1155      $test_file =~ s/^[ ]*\.\///;
    11151156                     
    11161157     
Note: See TracChangeset for help on using the changeset viewer.