os/security/cryptomgmtlibs/securitytestfw/test/autotesting/ScheduleTests.pl
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/cryptomgmtlibs/securitytestfw/test/autotesting/ScheduleTests.pl	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,36 @@
     1.4 +#
     1.5 +# Copyright (c) 2005-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 +use strict;
    1.21 +
    1.22 +# This program simply schedules the tests to run every day at 9pm
    1.23 +# Currently only builds against Typhoon mainline 02129
    1.24 +for (;;)
    1.25 +{
    1.26 +	(my $hour, my $day) = (localtime)[2, 3];
    1.27 +	if ($hour == 20)
    1.28 +	{
    1.29 +		# for the moment, do unzip, perforce sync, build, and test, but using wins/udeb
    1.30 +		system("perl -w RunSecurityTests.pl -a");
    1.31 +	}
    1.32 +
    1.33 +	(my $date = `date /t`) =~ s/\n//;
    1.34 +	(my $time = `time /t`) =~ s/\n//;
    1.35 +	print "Sleeping for 59 mins at $date $time\n";
    1.36 +
    1.37 +	# now sleep for 59 minutes
    1.38 +	sleep 3500;
    1.39 +}