installationservices/switestfw/test/autotesting/testMakesis.pl
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     1 #
     1 #
     2 # Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 # All rights reserved.
     3 # All rights reserved.
     4 # This component and the accompanying materials are made available
     4 # This component and the accompanying materials are made available
     5 # under the terms of the License "Eclipse Public License v1.0"
     5 # under the terms of the License "Eclipse Public License v1.0"
     6 # which accompanies this distribution, and is available
     6 # which accompanies this distribution, and is available
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
  1774 	unlink $sisEmbeddedFile;
  1774 	unlink $sisEmbeddedFile;
  1775 	unlink $pkgFile; 
  1775 	unlink $pkgFile; 
  1776 	unlink $sisFile;
  1776 	unlink $sisFile;
  1777 	unlink $LogFile;
  1777 	unlink $LogFile;
  1778 	unlink $ExpectedLogFile;
  1778 	unlink $ExpectedLogFile;
  1779 }
       
  1780 
       
  1781 #
       
  1782 # New test code for DEF145101 - MakeSIS cannot handle package files that contain large (>1000) language codes.
       
  1783 # 
       
  1784 sub TestDEF145101 {
       
  1785 
       
  1786 	my $path = "/epoc32/winscw/c/tswi";
       
  1787 	my $pkgfile = "$path/largelanguagecodes";
       
  1788 	my $expectedResult = 0;
       
  1789 
       
  1790 	WriteLog("Test for DEF145101 - MakeSIS cannot handle package files that contain large (>1000) language codes.\n");
       
  1791 	
       
  1792 	# Do MAKESIS test
       
  1793 	@retval = system("$makesisExeLocation $pkgfile.pkg $pkgfile-tmp.sis > $pkgfile.log");
       
  1794 	
       
  1795 	$logMsg = sprintf "Expected code:%5d   result Code:%5d\n", $expectedResult, $?;
       
  1796 	WriteLog( $logMsg);
       
  1797 
       
  1798 	$NumberOfTests++;
       
  1799 	
       
  1800 	if( $? == $expectedResult ) {
       
  1801 		$NumberOfPassed++;
       
  1802 		WriteLog("Passed\n\n");
       
  1803 	}
       
  1804 	else {
       
  1805 		$NumberOfFailed++;
       
  1806 		WriteLog("Failed\n\n");
       
  1807 	}
       
  1808 
       
  1809 	unlink("$pkgfile-tmp.sis");
       
  1810 	unlink("$pkgfile.sis");
       
  1811 	unlink("$pkgfile.log");
       
  1812 }
  1779 }
  1813 
  1780 
  1814 #
  1781 #
  1815 # Main
  1782 # Main
  1816 #
  1783 #
  2945 # Test for Makesis -c option. Added as part of the fix for DEF126467.
  2912 # Test for Makesis -c option. Added as part of the fix for DEF126467.
  2946 #
  2913 #
  2947 TestInterpretsisReport();
  2914 TestInterpretsisReport();
  2948 
  2915 
  2949 #
  2916 #
  2950 # Test for DEF145101 - MakeSIS cannot handle package files that contain large (>1000) language codes.
       
  2951 #
       
  2952 TestDEF145101();
       
  2953 
       
  2954 #
       
  2955 # These tests are very specific to windows OS only
  2917 # These tests are very specific to windows OS only
  2956 #
  2918 #
  2957 #
  2919 #
  2958 
  2920 
  2959 if ($^O =~ /^MSWIN32$/i)
  2921 if ($^O =~ /^MSWIN32$/i)