0
|
1 |
#
|
|
2 |
# Copyright (c) 2009 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 "h4testsusbcv.bat")
|
|
28 |
{
|
|
29 |
print "Cannot find h4testsusbcv.bat\n";
|
|
30 |
exit 0;
|
|
31 |
}
|
|
32 |
unless (-e "h4tests.bat")
|
|
33 |
{
|
|
34 |
print "Cannot find h4tests.bat\n";
|
|
35 |
exit 0;
|
|
36 |
}
|
|
37 |
|
|
38 |
while (1)
|
|
39 |
{
|
|
40 |
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
|
|
41 |
# Sod USBCV for the time being
|
|
42 |
# if ($wday == 5) # It's Friday !
|
|
43 |
# {
|
|
44 |
# print localtime().": Start h4testsusbcv.bat\n";
|
|
45 |
# system "h4testsusbcv.bat";
|
|
46 |
# print localtime().": Execution of h4testsusbcv.bat complete\n";
|
|
47 |
# }
|
|
48 |
# else
|
|
49 |
# {
|
|
50 |
print localtime().": Start h4tests.bat\n";
|
|
51 |
system "h4tests.bat";
|
|
52 |
print localtime().": Execution of h4tests.bat complete\n";
|
|
53 |
# }
|
|
54 |
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
|
|
55 |
my $prefix = sprintf("%04d%02d%02d%02d%02d%02d", $year+1900, $mon+1, $mday, $hour, $min, $sec);
|
|
56 |
system "COPY /Y ..\\Results\\h4tests.log ..\\${prefix}_h4tests.log";
|
|
57 |
system "COPY /Y ..\\Results\\h4performance.log ..\\${prefix}_h4performance.log";
|
|
58 |
}
|