imakerplugin/com.nokia.s60tools.imaker.tests/tools/iMaker_imp.pl
author dpodwall
Tue, 12 Jan 2010 13:17:53 -0600
changeset 0 61163b28edca
child 1 7ff23301fe22
permissions -rw-r--r--
initial EPL conversion
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
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    31
sub printArgs {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    32
	print "-----------------------\n";
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    33
	print "Commandline arguments:\n";
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    34
	foreach $argnum (0 .. $#ARGV) {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    35
	   print "$ARGV[$argnum]\n";
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    36
	}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    37
}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    38
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    39
if(($numArgs eq 2) and($ARGV[0] eq "-f") and ($ARGV[1] =~ /.imp$/)) {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    40
	print "Okei!\n";
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    41
	printArgs();
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    42
	exit 0;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    43
} else {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    44
	print "Bad arguments!\n";
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    45
	printArgs();
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    46
	exit 2;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    47
}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    48
#$testCase = $ARGV[0];
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    49
#print $testCase;