271
|
1 |
#
|
|
2 |
# Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
# All rights reserved.
|
|
4 |
# This component and the accompanying materials are made available
|
|
5 |
# under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
# which accompanies this distribution, and is available
|
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
#
|
|
9 |
# Initial Contributors:
|
|
10 |
# Nokia Corporation - initial contribution.
|
|
11 |
#
|
|
12 |
# Contributors:
|
|
13 |
#
|
|
14 |
# Description:
|
|
15 |
#
|
|
16 |
#
|
|
17 |
|
|
18 |
use strict;
|
|
19 |
|
|
20 |
chdir "scripts" or die "$!";
|
|
21 |
|
|
22 |
print "======================================\n";
|
|
23 |
print "USBTESTLOOP starts\n";
|
|
24 |
print localtime()."\n";
|
|
25 |
print "======================================\n";
|
|
26 |
|
|
27 |
unless (-e "vascotests.bat")
|
|
28 |
{
|
|
29 |
print "Cannot find vascotests.bat\n";
|
|
30 |
exit 0;
|
|
31 |
}
|
|
32 |
|
|
33 |
while (1)
|
|
34 |
{
|
|
35 |
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
|
|
36 |
|
|
37 |
print localtime().": Start vascotests.bat\n";
|
|
38 |
system "vascotests.bat";
|
|
39 |
print localtime().": Execution of vascotests.bat complete\n";
|
|
40 |
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
|
|
41 |
my $prefix = sprintf("%04d%02d%02d%02d%02d%02d", $year+1900, $mon+1, $mday, $hour, $min, $sec);
|
|
42 |
system "COPY /Y ..\\Results\\vascotests.log ..\\${prefix}_vascotests.log";
|
|
43 |
system "COPY /Y ..\\Results\\vascoperformance.log ..\\${prefix}_vascoperformance.log";
|
|
44 |
}
|