--- a/installationservices/switestfw/test/autotesting/testMakesis.pl Thu Aug 19 10:02:49 2010 +0300
+++ b/installationservices/switestfw/test/autotesting/testMakesis.pl Tue Aug 31 15:21:33 2010 +0300
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+# Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved.
# This component and the accompanying materials are made available
# under the terms of the License "Eclipse Public License v1.0"
@@ -1779,6 +1779,39 @@
}
#
+# New test code for DEF145101 - MakeSIS cannot handle package files that contain large (>1000) language codes.
+#
+sub TestDEF145101 {
+
+ my $path = "/epoc32/winscw/c/tswi";
+ my $pkgfile = "$path/largelanguagecodes";
+ my $expectedResult = 0;
+
+ WriteLog("Test for DEF145101 - MakeSIS cannot handle package files that contain large (>1000) language codes.\n");
+
+ # Do MAKESIS test
+ @retval = system("$makesisExeLocation $pkgfile.pkg $pkgfile-tmp.sis > $pkgfile.log");
+
+ $logMsg = sprintf "Expected code:%5d result Code:%5d\n", $expectedResult, $?;
+ WriteLog( $logMsg);
+
+ $NumberOfTests++;
+
+ if( $? == $expectedResult ) {
+ $NumberOfPassed++;
+ WriteLog("Passed\n\n");
+ }
+ else {
+ $NumberOfFailed++;
+ WriteLog("Failed\n\n");
+ }
+
+ unlink("$pkgfile-tmp.sis");
+ unlink("$pkgfile.sis");
+ unlink("$pkgfile.log");
+}
+
+#
# Main
#
# Create environment and control test flow to testing MAKESIS.EXE
@@ -2914,6 +2947,11 @@
TestInterpretsisReport();
#
+# Test for DEF145101 - MakeSIS cannot handle package files that contain large (>1000) language codes.
+#
+TestDEF145101();
+
+#
# These tests are very specific to windows OS only
#
#