os/kernelhwsrv/kerneltest/e32test/usb/t_usb_win/usbtestloop.pl
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kerneltest/e32test/usb/t_usb_win/usbtestloop.pl	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,58 @@
     1.4 +#
     1.5 +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +# All rights reserved.
     1.7 +# This component and the accompanying materials are made available
     1.8 +# under the terms of the License "Eclipse Public License v1.0"
     1.9 +# which accompanies this distribution, and is available
    1.10 +# at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +#
    1.12 +# Initial Contributors:
    1.13 +# Nokia Corporation - initial contribution.
    1.14 +#
    1.15 +# Contributors:
    1.16 +# 
    1.17 +# Description:
    1.18 +#
    1.19 +#
    1.20 +
    1.21 +use strict;
    1.22 +
    1.23 +chdir "scripts" or die "$!";
    1.24 +
    1.25 +print "======================================\n";
    1.26 +print "USBTESTLOOP starts\n";
    1.27 +print localtime()."\n";
    1.28 +print "======================================\n";
    1.29 +
    1.30 +unless (-e "h4testsusbcv.bat")
    1.31 +	{
    1.32 +	print "Cannot find h4testsusbcv.bat\n";
    1.33 +	exit 0;
    1.34 +	}
    1.35 +unless (-e "h4tests.bat")
    1.36 +	{
    1.37 +	print "Cannot find h4tests.bat\n";
    1.38 +	exit 0;
    1.39 +	}
    1.40 +
    1.41 +while (1)
    1.42 +	{
    1.43 +	my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
    1.44 +# Sod USBCV for the time being
    1.45 +#	if ($wday == 5) # It's Friday !
    1.46 +#		{
    1.47 +#		print localtime().": Start h4testsusbcv.bat\n";
    1.48 +#		system "h4testsusbcv.bat";
    1.49 +#		print localtime().": Execution of h4testsusbcv.bat complete\n";
    1.50 +#		}
    1.51 +#	else
    1.52 +#		{
    1.53 +		print localtime().": Start h4tests.bat\n";
    1.54 +		system "h4tests.bat";
    1.55 +		print localtime().": Execution of h4tests.bat complete\n";
    1.56 +#		}
    1.57 +	($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
    1.58 +	my $prefix = sprintf("%04d%02d%02d%02d%02d%02d", $year+1900, $mon+1, $mday, $hour, $min, $sec);
    1.59 +	system "COPY /Y ..\\Results\\h4tests.log ..\\${prefix}_h4tests.log";
    1.60 +	system "COPY /Y ..\\Results\\h4performance.log ..\\${prefix}_h4performance.log";
    1.61 +	}