0
|
1 |
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
# All rights reserved.
|
|
3 |
# This component and the accompanying materials are made available
|
|
4 |
# under the terms of "Eclipse Public License v1.0"
|
|
5 |
# which accompanies this distribution, and is available
|
|
6 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
#
|
|
8 |
# Initial Contributors:
|
|
9 |
# Nokia Corporation - initial contribution.
|
|
10 |
#
|
|
11 |
# Contributors:
|
|
12 |
#
|
|
13 |
# Description:
|
|
14 |
#
|
|
15 |
##########################################################################################################################
|
|
16 |
##########################################################################################################################
|
|
17 |
#
|
|
18 |
# iMakerStub.pl
|
|
19 |
#
|
|
20 |
# Test stub for iMaker plugin JUnit tests.
|
|
21 |
#
|
|
22 |
# This stub is used by IMakerWrapperTest and runs one iMaker call at the time.
|
|
23 |
# File must be placed to C:\tests\ directory.
|
|
24 |
#
|
|
25 |
#
|
|
26 |
##########################################################################################################################
|
|
27 |
##########################################################################################################################
|
|
28 |
|
|
29 |
$numArgs = $#ARGV + 1;
|
|
30 |
|
|
31 |
sub printArgs {
|
|
32 |
print "-----------------------\n";
|
|
33 |
print "Commandline arguments:\n";
|
|
34 |
foreach $argnum (0 .. $#ARGV) {
|
|
35 |
print "$ARGV[$argnum]\n";
|
|
36 |
}
|
|
37 |
}
|
|
38 |
|
|
39 |
if(($numArgs eq 2) and($ARGV[0] eq "-f") and ($ARGV[1] =~ /.imp$/)) {
|
|
40 |
print "Okei!\n";
|
|
41 |
printArgs();
|
|
42 |
exit 0;
|
|
43 |
} else {
|
|
44 |
print "Bad arguments!\n";
|
|
45 |
printArgs();
|
|
46 |
exit 2;
|
|
47 |
}
|
|
48 |
#$testCase = $ARGV[0];
|
|
49 |
#print $testCase;
|