sl@0
|
1 |
#
|
sl@0
|
2 |
# Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
# All rights reserved.
|
sl@0
|
4 |
# This component and the accompanying materials are made available
|
sl@0
|
5 |
# under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
# which accompanies this distribution, and is available
|
sl@0
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
#
|
sl@0
|
9 |
# Initial Contributors:
|
sl@0
|
10 |
# Nokia Corporation - initial contribution.
|
sl@0
|
11 |
#
|
sl@0
|
12 |
# Contributors:
|
sl@0
|
13 |
#
|
sl@0
|
14 |
# Description:
|
sl@0
|
15 |
#
|
sl@0
|
16 |
use Cwd;
|
sl@0
|
17 |
|
sl@0
|
18 |
my $theEpocRoot=$ENV{EPOCROOT};
|
sl@0
|
19 |
my $epoc32Location="$theEpocRoot.\\epoc32";
|
sl@0
|
20 |
|
sl@0
|
21 |
my $currentDirectory=cwd;
|
sl@0
|
22 |
$currentDirectory =~ s/Group//i;
|
sl@0
|
23 |
$currentDirectory =~ s/\//\\/g;
|
sl@0
|
24 |
|
sl@0
|
25 |
my $currentDrive = substr($currentDirectory,0,2);
|
sl@0
|
26 |
|
sl@0
|
27 |
my $cmd="TestDriver config";
|
sl@0
|
28 |
my $suite="file:/$currentDrive$epoc32Location\\testdriver\\testproduct\\base.driver#base";
|
sl@0
|
29 |
$suite =~ s.\\./.g;
|
sl@0
|
30 |
$suite =~ s\/./\/\g;
|
sl@0
|
31 |
|
sl@0
|
32 |
$cmd .= " --bldclean OFF";
|
sl@0
|
33 |
$cmd .= " --bldmake OFF";
|
sl@0
|
34 |
$cmd .= " -e $currentDrive$theEpocRoot";
|
sl@0
|
35 |
$cmd .= " -x $currentDrive$epoc32Location\\testdriver\\testproduct";
|
sl@0
|
36 |
$cmd .= " --repos $currentDrive$epoc32Location\\testdriver\\Repository";
|
sl@0
|
37 |
$cmd .= " -c $currentDrive$epoc32Location\\testdriver\\Results";
|
sl@0
|
38 |
$cmd .= " -i $currentDirectory";
|
sl@0
|
39 |
$cmd .= " -s $suite";
|
sl@0
|
40 |
$cmd .= " --source $currentDirectory";
|
sl@0
|
41 |
$cmd .= " --tp $currentDirectory";
|
sl@0
|
42 |
$cmd .= " --platsec ON";
|
sl@0
|
43 |
$cmd .= " --testexec ON";
|
sl@0
|
44 |
$cmd .= " --commdb overwrite";
|
sl@0
|
45 |
$cmd .= " --testtimelimit 600000";
|
sl@0
|
46 |
system("$cmd");
|