cryptomgmtlibs/securitytestfw/test/autotesting/check_for_cpr_lic_issues.pl
changeset 10 afc583cfa176
parent 8 35751d3474b7
child 11 9d767430696e
child 15 da2ae96f639b
equal deleted inserted replaced
8:35751d3474b7 10:afc583cfa176
     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:       PREQ 2518 - Modification of Symbian OS copy-right notices 
       
    15 #                   PREQ 2683 - Adding distribution.policy.s60 files for all components in the MCL
       
    16 #                   Script to check for the conflicting copy-right-licenses and missing policy files.
       
    17 #                   Just checks the size of the file - verify_issues.txt to decide whether there are 
       
    18 #                   any issues!
       
    19 #
       
    20 
       
    21 
       
    22 #!/usr/bin/perl 
       
    23 use strict; 
       
    24 use warnings; 
       
    25 my $filesize = -s '\epoc32\winscw\c\verify_issues.txt'; 
       
    26 my $outputfile = '\epoc32\winscw\c\verify_issues.txt';
       
    27 open(OP,">>$outputfile") || die("Cannot Open File");
       
    28 
       
    29 if( $filesize == 0 )
       
    30 {
       
    31  	print (OP "\n\n\n\n\n\n\n\n\n No issues found. Test PASSED.\n\n");
       
    32  	print (OP "\n Tests completed OK");
       
    33  	print (OP "\n Run: 1");
       
    34  	print (OP "\n Passed: 1");	
       
    35 	print (OP "\n 0 tests failed out of 1"); 
       
    36 }
       
    37 else
       
    38 {
       
    39 		print (OP "\n\n\n\n\n\n\n\n\n\n Tests completed OK");
       
    40 	        print (OP "\n Issues found.");
       
    41  		print (OP "\n Run: 1");
       
    42  		print (OP "\n Passed: 0");	
       
    43 		print (OP "\n 1 tests failed out of 1"); 
       
    44 }
       
    45 exit 0;