imakerplugin/com.nokia.s60tools.imaker.tests/tools/iMaker_imp.pl
author Matti Hagman <ext-matti.hagman@nokia.com>
Tue, 21 Sep 2010 13:50:51 +0300
changeset 29 f48eb66e9604
parent 1 7ff23301fe22
permissions -rw-r--r--
Creator Carbide Extension 1.3.0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     1
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     2
# All rights reserved.
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     3
# This component and the accompanying materials are made available
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     4
# under the terms of "Eclipse Public License v1.0"
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     5
# which accompanies this distribution, and is available
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     7
#
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     8
# Initial Contributors:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     9
# Nokia Corporation - initial contribution.
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    10
#
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    11
# Contributors:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    12
#
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    13
# Description:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    14
#
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    15
##########################################################################################################################
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    16
##########################################################################################################################
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    17
#
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    18
# iMakerStub.pl
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    19
#
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    20
# Test stub for iMaker plugin JUnit tests.
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    21
#
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    22
# This stub is used by IMakerWrapperTest and runs one iMaker call at the time.
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    23
# File must be placed to C:\tests\ directory.
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    24
#
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    25
#
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    26
##########################################################################################################################
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    27
##########################################################################################################################
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    28
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    29
$numArgs = $#ARGV + 1;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    30
1
7ff23301fe22 iMaker plugin updated:
haismail <hussein.ismail@nokia.com>
parents: 0
diff changeset
    31
if($numArgs eq 0) {
7ff23301fe22 iMaker plugin updated:
haismail <hussein.ismail@nokia.com>
parents: 0
diff changeset
    32
print "
7ff23301fe22 iMaker plugin updated:
haismail <hussein.ismail@nokia.com>
parents: 0
diff changeset
    33
iMaker 10.03.01, 24-Apr-2009.
7ff23301fe22 iMaker plugin updated:
haismail <hussein.ismail@nokia.com>
parents: 0
diff changeset
    34
";
7ff23301fe22 iMaker plugin updated:
haismail <hussein.ismail@nokia.com>
parents: 0
diff changeset
    35
exit(0);
7ff23301fe22 iMaker plugin updated:
haismail <hussein.ismail@nokia.com>
parents: 0
diff changeset
    36
}
7ff23301fe22 iMaker plugin updated:
haismail <hussein.ismail@nokia.com>
parents: 0
diff changeset
    37
0
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    38
sub printArgs {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    39
	print "-----------------------\n";
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    40
	print "Commandline arguments:\n";
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    41
	foreach $argnum (0 .. $#ARGV) {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    42
	   print "$ARGV[$argnum]\n";
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    43
	}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    44
}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    45
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    46
if(($numArgs eq 2) and($ARGV[0] eq "-f") and ($ARGV[1] =~ /.imp$/)) {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    47
	print "Okei!\n";
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    48
	printArgs();
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    49
	exit 0;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    50
} else {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    51
	print "Bad arguments!\n";
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    52
	printArgs();
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    53
	exit 2;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    54
}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    55
#$testCase = $ARGV[0];
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    56
#print $testCase;