cryptomgmtlibs/securitytestfw/inc/SecurityTests_apr_9.5.iby
branchRCL_3
changeset 45 030c4fbc13d7
parent 44 d07aa956024a
child 47 b54b58ee9d58
equal deleted inserted replaced
44:d07aa956024a 45:030c4fbc13d7
     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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __SECURITYTESTS_IBY__
       
    19 #define __SECURITYTESTS_IBY__
       
    20 
       
    21 // We need bigger ROFS files for tests with TBAS
       
    22 rofssize=0x2100000
       
    23 
       
    24 // Save build details in ROM
       
    25 data=\buildid.txt                 \buildid.txt
       
    26 
       
    27 
       
    28 
       
    29 // This should be included in the Techview.oby file
       
    30 // All test data and scripts gets copied to the root of ROM drive.
       
    31 // This should be copied to the relevant directory on the C drive.
       
    32 
       
    33 // platsec.oby should be included, but a problem in rombuild prevents build with watchers disabled and PlatSecEnforceSysBin ON
       
    34 //#include "platsec.oby"
       
    35 ROM_IMAGE[0] {
       
    36 PlatSecDiagnostics ON
       
    37 PlatSecEnforcement ON
       
    38 PlatSecEnforceSysBin ON
       
    39 PlatSecProcessIsolation ON
       
    40 }
       
    41 
       
    42 #include "setcap.iby"
       
    43 
       
    44 #include "testexecute.iby"
       
    45 
       
    46 #include "xml.iby" // Needed for security tests
       
    47 
       
    48 
       
    49 #include "streamingcaf.iby"
       
    50 
       
    51 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
    52 	//Universal Software Install Framework production
       
    53 	#include "scr.iby" // Software Component Registry
       
    54 	#include "sif.iby"  // Software Install Framework
       
    55 	#include "sts.iby"  // Software Transaction Services
       
    56 	#include "sifrefinstaller.iby"  // Sif Reference Installer
       
    57 #endif //SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
    58 
       
    59 #include "securitycommonutils.iby"	
       
    60 // Common utils libraries test
       
    61 #include "installtestframework.iby"		
       
    62 #include "aprrtautils.iby"
       
    63 
       
    64 #ifdef __SECURITY_NORMAL_SWICERTSTORE__
       
    65 
       
    66 	#ifdef __SECURITY_ONLYJAVA__
       
    67 		
       
    68 		#ifndef SYMBIAN_JAVA_NOT_INCLUDED
       
    69 			#include "sisinstallertest.iby"
       
    70 			#include "JavaMIDletInstallerTest.iby"
       
    71 			#include "recjar.iby"
       
    72 		#endif
       
    73 	#elif __SECURITY_NORMAL__
       
    74 
       
    75 		#ifndef SYMBIAN_JAVA_NOT_INCLUDED
       
    76   			#include "sisinstallertest.iby"
       
    77 		#endif
       
    78 
       
    79 		#include "tsistestdata.iby" 
       
    80 
       
    81 	#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
    82 		//Universal Software Install Framework tests
       
    83 		#include "tscr.iby"
       
    84 		#include "tsif.iby"
       
    85 		#include "tsts.iby"
       
    86 		#include "tsifrefinstaller.iby"
       
    87 	#endif //SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
    88 
       
    89 		// Extra test data
       
    90 		#include "tswi.iby"
       
    91 		#include "tswiconsole.iby"
       
    92 		#include "tsissignedtestdata.iby"
       
    93 
       
    94 	#endif
       
    95 
       
    96 
       
    97 	#ifndef SYMBIAN_JAVA_NOT_INCLUDED
       
    98   		// Jar/Jad recogniser needed for CAF tests
       
    99   		#include "recjar.iby"
       
   100 	#endif
       
   101 	#include "rta.iby"
       
   102 
       
   103   
       
   104 #elif __SECURITY_MANDATORY_SWICERTSTORE__
       
   105 	// SWI cert store data file, with Root5CA mandatory
       
   106 	data = \epoc32\winscw\c\tswi\certstore\swicertstore_mandatory.dat	resource\swicertstore.dat attrib=r
       
   107 
       
   108   	#include "tsiscorrupttestdata.iby" 
       
   109   
       
   110   	// Extra test data
       
   111   	#include "tswi.iby"
       
   112   	#include "tswiconsole.iby"
       
   113   	#include "tsissignedtestdata.iby"
       
   114 
       
   115 	
       
   116 #elif __SECURITY_JAVA__
       
   117   
       
   118 	#ifndef SYMBIAN_JAVA_NOT_INCLUDED
       
   119   		#include "JavaMIDletInstallerTest.iby"
       
   120 	#endif
       
   121 	
       
   122 	#include "rta.iby"
       
   123 #endif
       
   124 
       
   125 
       
   126 define ZDRIVE \epoc32\winscw\c
       
   127 // This is the bat file to run the security tests automatically
       
   128 // comms configuration (and configuration using sim.tsy)
       
   129 data = ZDRIVE\auto.cfg					\auto.cfg
       
   130 data = ZDRIVE\auto_broken.cfg					\auto_broken.cfg
       
   131 data = ZDRIVE\autosimtsy.cfg					\autosimtsy.cfg
       
   132 data = ZDRIVE\prompt.cfg					\prompt.cfg
       
   133 
       
   134 // This the file which used to redirect the request from cam-ocsptest01 to ban-ocsptest01
       
   135 data = ZDRIVE\autohardware\hosts		     \hosts
       
   136 
       
   137 #ifdef __AUTO_HARDWARE_TESTS__
       
   138 	data = ZDRIVE\autohardware\autoexec.bat		\autoexec.bat
       
   139 #endif
       
   140 
       
   141 #ifdef __SECURITY_NORMAL_SWICERTSTORE__
       
   142 
       
   143 	#ifdef __SECURITY_ONLYJAVA__
       
   144 
       
   145 		#ifndef SYMBIAN_JAVA_NOT_INCLUDED
       
   146 		data = ZDRIVE\autohardware\runjavamidletinstaller_9.4.bat      	\runjavamidletinstaller.bat
       
   147 		data = ZDRIVE\autohardware\runsisinstaller_9.4.bat		\runsisinstaller.bat
       
   148 		data = ZDRIVE\autohardware\testsecurityonlyjava.bat	\testsecurity.bat
       
   149 		#endif
       
   150 	#elif __SECURITY_NORMAL__
       
   151 		#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
   152 			data = ZDRIVE\autohardware\testsecurity_9.6_nonmcs.bat	\testsecurity.bat
       
   153 			data = ZDRIVE\autohardware\runswiromtests_9.6.bat	\runswiromtests.bat
       
   154 			data = ZDRIVE\autohardware\runusiftests.bat		\runusiftests.bat
       
   155 			data = ZDRIVE\autohardware\runcommonutilstests.bat	\runcommonutilstests.bat
       
   156 		#else
       
   157 			data = ZDRIVE\autohardware\testsecurity_9.5_nonmcs.bat	\testsecurity.bat
       
   158 			data = ZDRIVE\autohardware\runswiromtests_9.5.bat	\runswiromtests.bat
       
   159 		#endif
       
   160 
       
   161 		#ifndef SYMBIAN_JAVA_NOT_INCLUDED
       
   162 			data = ZDRIVE\autohardware\runsisinstaller_9.4.bat		\runsisinstaller.bat
       
   163 		#endif
       
   164 
       
   165 	#endif
       
   166 
       
   167 #elif __SECURITY_MANDATORY_SWICERTSTORE__
       
   168 	data = ZDRIVE\autohardware\testsecurity_9.5_mcs.bat			\testsecurity.bat
       
   169 	data = ZDRIVE\autohardware\runswiromtests_9.4_mcs.bat	\runswiromtests.bat
       
   170 #elif __SECURITY_JAVA__
       
   171 
       
   172 #ifndef SYMBIAN_JAVA_NOT_INCLUDED
       
   173 	data = ZDRIVE\autohardware\testsecurity_9.4_java.bat	\testsecurity.bat
       
   174 	data = ZDRIVE\autohardware\runjavamidletinstaller_9.4.bat      	\runjavamidletinstaller.bat
       
   175 #endif
       
   176 
       
   177 #endif
       
   178 
       
   179 
       
   180 //estor.dll is put in ROFS by deafult but we need to put it into CORE as well
       
   181 //core version will be used; see DEF113303 for details
       
   182 #ifdef __SECURITY_TEST_ROM__
       
   183 #ifdef _NAND2
       
   184 ROM_IMAGE[0] {
       
   185 file = \epoc32\release\armv5\urel\estor.dll \sys\bin\estor.dll
       
   186 }
       
   187 #endif
       
   188 #endif
       
   189 
       
   190 
       
   191 REM ---------- Comms-Infras ----------
       
   192 // ced is not included in release builds by default (in commdb.iby)
       
   193 // so we include it explicitly here if _DEBUG is NOT defined
       
   194 file=ABI_DIR\BUILD_DIR\ced.exe                      System\Libs\ced.exe
       
   195 data=EPOCROOT##epoc32\data\z\system\data\meshpreface1.cfg		system\data\meshpreface1.cfg
       
   196 
       
   197 file=ABI_DIR\BUILD_DIR\ceddump.exe                  System\Programs\ceddump.exe
       
   198 
       
   199 file=ABI_DIR\BUILD_DIR\RUNTESTS.EXE                 System\Programs\RUNTESTS.EXE
       
   200 
       
   201 #include "thindump.iby"
       
   202 #include "sntpclient.iby"
       
   203 
       
   204 // *** Additional includes and configuration for SSM Requirements ***
       
   205 #ifdef _SSMSTARTUPMODE
       
   206 data=MULTI_LINGUIFY(RSC EPOCROOT##epoc32\data\z\private\2000d75b\startup\0\eshell  private\2000d75b\startup\0\eshell)
       
   207 
       
   208 // Addition IBY's required
       
   209 #include "aplp.iby"
       
   210 #include "amastart.iby"
       
   211 #include "shma.iby"
       
   212 #include "ssrefplugins.iby" 
       
   213 #endif
       
   214 
       
   215 
       
   216 #endif