srctools/distillsrc/test/test.pl
author jjkang
Wed, 30 Jun 2010 16:14:56 +0800
changeset 608 690cd13b97a9
parent 602 3145852acc89
permissions -rw-r--r--
Minor change: remove old release-notes.txt from raptor
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
602
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     1
#!\bin\perl -w
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     2
# Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     3
# All rights reserved.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     4
# This component and the accompanying materials are made available
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     5
# under the terms of the License "Eclipse Public License v1.0"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     6
# which accompanies this distribution, and is available
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     8
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     9
# Initial Contributors:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    11
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    12
# Contributors:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    13
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    14
# Description:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    15
# distillsrc.pl test script
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    16
# 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    17
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    18
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    19
use FindBin;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    20
use Cwd ('chdir','abs_path');
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    21
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    22
my $cwd = abs_path($FindBin::Bin."\\..");
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    23
chdir($cwd) or die "Couldn't change directory to $cwd\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    24
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    25
# Test cases
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    26
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    27
# Entry format: [parameters, [[pass regexps],[fail regexps]]]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    28
# 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    29
# [pass regexps] and [fail regexps] are lists of regular expressions, each
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    30
# as a string. All pass regexps must match. No fail regexps may match.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    31
# If a line matches both, it is said to have passed (hence a generic failure
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    32
# rule can be written to match any output which wasn't expected)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    33
my @testcases =
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    34
	(
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    35
	['-r fred -l beech' ,
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    36
		[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    37
			['^ERROR: RealTimeBuild:.*srcpath must be given'],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    38
			['^ERROR: RealTimeBuild:']
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    39
		]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    40
	],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    41
	['-s fred -l beech' ,
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    42
		[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    43
			['^ERROR: RealTimeBuild:.*srcroot must be given'],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    44
			['^ERROR: RealTimeBuild:']
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    45
		]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    46
	],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    47
	['-r fred -s src' ,
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    48
		[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    49
			['^ERROR: RealTimeBuild:.*platform'],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    50
			['^ERROR: RealTimeBuild:']
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    51
		]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    52
	],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    53
	['-d -r test -s source -p prefix -l fred -c test\options.txt -N' ,
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    54
		[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    55
			[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    56
			'= spacey$',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    57
			'= whole$',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    58
			'^DUMMY: File test\\\\source\\\\fixer.mrp',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    59
			'^DUMMY: File test\\\\source\\\\DISTRIBUTION\\.POLICY',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    60
			'^DUMMY: File test\\\\source\\\\missing\\\\unowned'
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    61
			],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    62
			[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    63
			'^DUMMY:.*is not specified in any \\.mrp file',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    64
			'does not include itself'
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    65
			]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    66
		]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    67
	],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    68
	['-d -r test -s source -p prefix -l fred -c test\options.txt -m test\source\fixer.mrp' ,
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    69
		[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    70
			[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    71
			'= spacey$',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    72
			'= whole$',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    73
			'= fixer$',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    74
			'WARNING: \[fixer\] Case of .test\\\\soUrce\\\\DIStribuTION.poliCY. does not match.* Should be test\\\\source\\\\DISTRIBUTION.POLICY$',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    75
			'WARNING: \[fixer\] Case of .test\\\\soUrce\\\\missing.* does not match.* Should be test\\\\source\\\\missing',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    76
			'source\\\\spacey\\\\spa cey.txt = spacey$',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    77
			],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    78
			[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    79
			'^DUMMY:.*is not specified in any \\.mrp file',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    80
			'does not include itself'
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    81
			]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    82
		]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    83
	],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    84
	['-d -r test -s source -p prefix -l fred -f test\base.txt' ,
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    85
		[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    86
			[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    87
			'= whole$',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    88
			'^DUMMY: File test\\\\source\\\\fixer\\.mrp',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    89
			'^DUMMY: File test\\\\source\\\\DISTRIBUTION\\.POLICY',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    90
			'^DUMMY: Directory test\\\\source\\\\missing',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    91
			'^DUMMY: File test\\\\source\\\\shared\\\\missing',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    92
			'^DUMMY: Directory test\\\\source\\\\spacey'
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    93
			],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    94
			[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    95
			'^DUMMY:.*is not specified in any \\.mrp file',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    96
			'does not include itself'
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    97
			]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    98
		]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    99
	],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   100
	['-d -r test -s nowt -l fred -m test\naughty.mrp' ,
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   101
		[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   102
			[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   103
			'nothing_important.* doesn\'t exist',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   104
			'No \.mrp files claim any source',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   105
			'naughty\.mrp.*does not include itself'
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   106
			],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   107
			['^DUMMY:.*is not specified in any \\.mrp file']
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   108
		]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   109
	],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   110
	['-r test -s source -l fred -m test\not_present.mrp' ,
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   111
		[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   112
			['^ERROR: RealTimeBuild:.*not_present\\.mrp.*does not exist'],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   113
			[]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   114
		]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   115
	],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   116
	['-r test -s source -l fred -m test\duffer.mrp',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   117
		[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   118
			['^ERROR: RealTimeBuild:.*not a valid command.*test\\\\duffer\\.mrp'],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   119
			['= duffer$']
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   120
		]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   121
	],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   122
	['-d -r test -s source -p prefix -l fred -f test\base.txt',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   123
		[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   124
			[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   125
			'^WARNING:.*Case of \'.*complete.mrp\' does not match.* Should be.*source.*$',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   126
			'^WARNING:.*Case of \'.*whole.mrp\' does not match.* Should be.*whole.whole.*$',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   127
			],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   128
			['^WARNING:.*Case of .* does not match.* Should be.*$']
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   129
		]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   130
	],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   131
	['-d -r test -s source -p prefix -l fred -m test\bincase.mrp',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   132
		[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   133
			[
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   134
			'^REMARK:.*\\\\epoc32\\\\thisOneIsnt should be lower case',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   135
			'^REMARK:.*\\\\epoc32\\\\andNorIs\/thisone should be lower case',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   136
			'^REMARK:.*\\\\epoc32\\\\thisonesNot should be lower case',
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   137
			'^REMARK:.*\\\\epoc32\\\\norThis\\\\one should be lower case'
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   138
			],
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   139
			['^REMARK:.*should be lower case.*$']
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   140
		]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   141
	]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   142
	);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   143
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   144
my $passes = 0;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   145
my $tests = 0;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   146
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   147
foreach my $testcase (@testcases)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   148
	{
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   149
	my $cmd = "distillsrc.pl ".$testcase->[0];
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   150
	print "\nRunning $cmd\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   151
	my @output = `perl $cmd 2>&1`;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   152
	my @passregexps = @{$testcase->[1]->[0]};
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   153
	my @failregexps = @{$testcase->[1]->[1]};
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   154
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   155
	my $testpass = -1; # (unset)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   156
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   157
	foreach my $line (@output)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   158
		{
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   159
		chomp ($line);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   160
		my $pass = 0;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   161
		my $fail = 0;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   162
		
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   163
		foreach my $passregexp (@passregexps)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   164
			{
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   165
			if ($line =~ /$passregexp/)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   166
				{
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   167
				$pass = 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   168
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   169
				# Remove rule from list
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   170
				@passregexps = grep($_ ne $passregexp, @passregexps);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   171
				}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   172
			}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   173
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   174
		if (!$pass)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   175
			{
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   176
			foreach my $failregexp (@failregexps)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   177
				{
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   178
				if ($line =~ /$failregexp/)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   179
					{
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   180
					$fail = 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   181
					}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   182
				}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   183
			}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   184
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   185
		if ($pass)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   186
			{
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   187
			print "GOOD:$line\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   188
			if ($testpass == -1)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   189
				{
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   190
				$testpass = 1; # Passed (so far)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   191
				}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   192
			}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   193
		elsif ($fail)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   194
			{
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   195
			print "BAD:$line\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   196
			$testpass = 0; # Failed
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   197
			}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   198
		else { print "OKEH:$line\n"; }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   199
		}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   200
	
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   201
	if ($testpass == 1)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   202
		{
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   203
		if ((scalar @passregexps) == 0)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   204
			{
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   205
			print "*** PASS\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   206
			$passes ++;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   207
			}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   208
		else
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   209
			{
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   210
			print "*** FAIL - tests not matched:\n> ";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   211
			print join("\n> ", @passregexps)."\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   212
			}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   213
		}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   214
	elsif ($testpass == 0)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   215
		{
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   216
		print "*** FAIL - hard fail\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   217
		}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   218
	else
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   219
		{
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   220
		print "*** FAIL - no tests matched\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   221
		}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   222
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   223
	$tests ++;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   224
	}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   225
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   226
print "*** Out of $tests tests, $passes passed\n";