cryptomgmtlibs/securitytestfw/inc/SecurityTests.iby
branchRCL_3
changeset 53 030c4fbc13d7
parent 15 da2ae96f639b
child 95 641f389e9157
equal deleted inserted replaced
50:d07aa956024a 53:030c4fbc13d7
    22 rofssize=0x2100000
    22 rofssize=0x2100000
    23 
    23 
    24 // Save build details in ROM
    24 // Save build details in ROM
    25 data=\buildid.txt                 \buildid.txt
    25 data=\buildid.txt                 \buildid.txt
    26 
    26 
    27 define ZDRIVE \epoc32\winscw\c
       
    28 
    27 
    29 // This should be included in the Techview.oby file
    28 // This should be included in the Techview.oby file
    30 // All test data and scripts gets copied to the root of ROM drive.
    29 // 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.
    30 // This should be copied to the relevant directory on the C drive.
    32 
    31 
    36 PlatSecDiagnostics ON
    35 PlatSecDiagnostics ON
    37 PlatSecEnforcement ON
    36 PlatSecEnforcement ON
    38 PlatSecEnforceSysBin ON
    37 PlatSecEnforceSysBin ON
    39 PlatSecProcessIsolation ON
    38 PlatSecProcessIsolation ON
    40 }
    39 }
       
    40 
    41 #include "setcap.iby"
    41 #include "setcap.iby"
    42 #include "testutil.iby"
    42 
    43 #include "testexecute.iby"
    43 #include "testexecute.iby"
    44 #include "t_testhandler.iby"
    44 #include "t_testhandler.iby"
    45 #include "xml.iby" // Needed for security tests
    45 #include "testutil.iby"
       
    46 //#include "xml.iby" // Needed for security tests
    46 
    47 
    47 #include "securityframeworktestserver.iby"
    48 #include "securityframeworktestserver.iby"
       
    49 
       
    50 
       
    51 #if defined SYMBIAN_KEYSTORE_USE_AUTH_SERVER || defined SDP_ROM1
       
    52 
       
    53 	#include "ups.iby"
       
    54 	#include "tups.iby"
       
    55 	#include "asnpkcstests.iby"
       
    56 	#include "certmantests.iby"
       
    57 	#include "tpkcs7server.iby"     
       
    58 	#include "tpkcs12integrationserver.iby"  	
       
    59 	#include "ctframeworktests.iby"
       
    60 	#include "cryptotests.iby"
       
    61 #else
       
    62 	#include "streamingcaf.iby"
       
    63 	// iby files for caf
       
    64 	#include "caf.iby"
       
    65 	#include "caftest.iby"
       
    66 	#include "reccafconfig.iby"
       
    67 	#include "rta.iby"
       
    68 	#include "rtatest.iby"
       
    69 	#include "cryptotests.iby"
       
    70 	#include "tscaf.iby"	
       
    71 	#include "randomtests.iby"
       
    72 	#include "hashtests.iby"
       
    73 
       
    74 	#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
       
    75 	#include "mtputils.iby"
       
    76 	#include "mtputilstest.iby"
       
    77 	#include "refcafhelper.iby"
       
    78 	#endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
       
    79 
       
    80 #endif
       
    81  
       
    82 	
    48 // Common utils libraries
    83 // Common utils libraries
    49 #include "securitycommonutils.iby"
    84 #include "securitycommonutils.iby"
    50 // Common utils libraries test
    85 #include "securitytestframework.iby"	
    51 #include "installtestframework.iby"
    86 #include "secutiltests.iby"
    52 #include "securitytestframework.iby"		
    87 
    53 
    88 //filetokens and authserver run in both the images.
    54 #include "streamingcaf.iby"
    89 #include "filetokenstests.iby"
    55 
    90 
    56 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
    91 
    57 #include "mtputils.iby"
       
    58 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
       
    59 
       
    60 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
    61 	//Universal Software Install Framework production
       
    62 	#include "scr.iby" // Software Component Registry
       
    63 	#include "sif.iby"  // Software Install Framework
       
    64 	#include "sts.iby"  // Software Transaction Services
       
    65 	#include "sifrefinstaller.iby"  // Sif Reference Installer
       
    66 #endif //SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
    67 
       
    68 #ifdef __SECURITY_NORMAL_SWICERTSTORE__
       
    69 	
       
    70 	#ifdef __SECURITY_ONLYJAVA__
       
    71 		
       
    72 		#ifndef SYMBIAN_JAVA_NOT_INCLUDED
       
    73 			#include "sisinstallertest.iby"
       
    74 			#include "JavaMIDletInstallerTest.iby"
       
    75 			#include "rtatest.iby"
       
    76 			#include "recjar.iby"
       
    77 		#endif
       
    78 	#elif __SECURITY_NORMAL__
       
    79 
       
    80 		#ifndef SYMBIAN_JAVA_NOT_INCLUDED
       
    81   			#include "sisinstallertest.iby"
       
    82 		#endif
       
    83 
       
    84 		#include "tsistestdata.iby" 
       
    85 
       
    86 		ECOM_PLUGIN(tsecdlg.dll, 10204789.rsc)
       
    87 		
       
    88 		#include "tups.iby"
       
    89 		#include "ups.iby"
       
    90 		// iby files for caf
       
    91 		#include "caf.iby"
       
    92 		#include "caftest.iby"
       
    93 		#include "reccafconfig.iby"
       
    94 		#include "rta.iby"
       
    95 		#include "rtatest.iby"
       
    96 		#include "tpkcs12integrationserver.iby"
       
    97  		// Dependency
       
    98 		file=ABI_DIR\BUILD_DIR\pkcs7.dll	System\Libs\pkcs7.dll
       
    99 
       
   100 		#include "tscaf.iby"
       
   101 
       
   102 		#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
       
   103 		#include "mtputilstest.iby"
       
   104  		#endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
       
   105 
       
   106 		#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
   107 			//Universal Software Install Framework tests
       
   108 			#include "tscr.iby"
       
   109 			#include "tsif.iby"
       
   110 			#include "tsts.iby"
       
   111 			#include "tsifrefinstaller.iby"
       
   112 		#endif //SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
   113 
       
   114 		
       
   115 	
       
   116 		
       
   117 		
       
   118 		
       
   119 		// Extra test data
       
   120 		#include "tswi.iby"
       
   121 		#include "tswiconsole.iby"
       
   122 		#include "tsissignedtestdata.iby"
       
   123 		#include "secutiltests.iby"
       
   124 
       
   125 	#endif
       
   126 
       
   127 
       
   128 
       
   129 	#ifndef SYMBIAN_JAVA_NOT_INCLUDED
       
   130   		// Jar/Jad recogniser needed for CAF tests
       
   131   		#include "recjar.iby"
       
   132 	#endif
       
   133 
       
   134 #elif __SECURITY_MANDATORY_SWICERTSTORE__
       
   135 	// Temp
       
   136  	#include "cryptodeps.iby"
       
   137              
       
   138       #include "randomtests.iby"
       
   139    	#include "hashtests.iby"
       
   140   	#include "certmantests.iby"
       
   141   	#include "ctframeworktests.iby"
       
   142   	#include "tpkcs7server.iby"
       
   143   	#include "filetokenstests.iby"
       
   144   	#include "asnpkcstests.iby"
       
   145   	#include "tsiscorrupttestdata.iby" 
       
   146   	// uncomment authserver tests when authserver gets released
       
   147 	#ifdef SYMBIAN_AUTH_SERVER
       
   148   		#include "tAuthSvr.iby"
       
   149 	#endif // SYMBIAN_AUTH_SERVER
       
   150 	#ifndef SYMBIAN_JAVA_NOT_INCLUDED
       
   151 		// Jar Download Reference Filter - sets user agent
       
   152 		ECOM_PLUGIN(midletuaheaderfilter.dll,10200a88.rsc)
       
   153 	#endif
       
   154   
       
   155   	// Extra test data
       
   156   	#include "tswi.iby"
       
   157   	#include "tswiconsole.iby"
       
   158   	#include "tsissignedtestdata.iby"
       
   159   	#include "secutiltests.iby"
       
   160 #elif __SECURITY_JAVA__
       
   161 	#ifndef SYMBIAN_JAVA_NOT_INCLUDED
       
   162   		#include "JavaMIDletInstallerTest.iby"
       
   163 	#endif
       
   164 	
       
   165 	#include "cryptotests.iby"
       
   166 	#include "randomtests.iby"
       
   167   	#include "hashtests.iby"
       
   168 	#include "rtatest.iby"
       
   169 	#include "rta.iby"
       
   170 #endif
       
   171 
       
   172 
       
   173 //***********
       
   174 // REMOVE ME WHEN AUTHSERVER IS ADDED TO MAIN BUILD
       
   175 //***********
       
   176 #ifdef SYMBIAN_AUTH_SERVER
    92 #ifdef SYMBIAN_AUTH_SERVER
       
    93 	#include "tAuthSvr.iby"
   177 	#include "authserver.iby"
    94 	#include "authserver.iby"
   178 	#include "pinplugin.iby"
    95 	#include "pinplugin.iby"
   179 #endif // SYMBIAN_AUTH_SERVER
    96 #endif // SYMBIAN_AUTH_SERVER
   180 
    97 
       
    98 
       
    99 define ZDRIVE \epoc32\winscw\c
   181 // This is the bat file to run the security tests automatically
   100 // This is the bat file to run the security tests automatically
   182 // comms configuration (and configuration using sim.tsy)
   101 // comms configuration (and configuration using sim.tsy)
   183 data = ZDRIVE\auto.cfg					\auto.cfg
   102 data = ZDRIVE\auto.cfg					\auto.cfg
   184 data = ZDRIVE\auto_broken.cfg					\auto_broken.cfg
   103 data = ZDRIVE\auto_broken.cfg					\auto_broken.cfg
   185 data = ZDRIVE\autosimtsy.cfg					\autosimtsy.cfg
   104 data = ZDRIVE\autosimtsy.cfg					\autosimtsy.cfg
   187 
   106 
   188 // This the file which used to redirect the request from cam-ocsptest01 to ban-ocsptest01
   107 // This the file which used to redirect the request from cam-ocsptest01 to ban-ocsptest01
   189 data = ZDRIVE\autohardware\hosts		     \hosts
   108 data = ZDRIVE\autohardware\hosts		     \hosts
   190 
   109 
   191 
   110 
   192 
       
   193 #ifdef __AUTO_HARDWARE_TESTS__
   111 #ifdef __AUTO_HARDWARE_TESTS__
   194 	data = ZDRIVE\autohardware\autoexec.bat		\autoexec.bat
   112 	data = ZDRIVE\autohardware\autoexec.bat		\autoexec.bat
   195 #endif
   113 #endif
   196 
   114 
   197 #ifdef __SECURITY_NORMAL_SWICERTSTORE__
   115 
   198 
   116 data = ZDRIVE\autohardware\runcertman.bat			\runcertman.bat
   199 	#ifdef __SECURITY_ONLYJAVA__
   117 data = ZDRIVE\autohardware\runasnpkcs.bat			\runasnpkcs.bat
   200 
   118 data = ZDRIVE\autohardware\runcryptotokens.bat		\runcryptotokens.bat
   201 		#ifndef SYMBIAN_JAVA_NOT_INCLUDED
   119 data = ZDRIVE\autohardware\runupstests.bat			\runupstests.bat
   202 			data = ZDRIVE\autohardware\runjavamidletinstaller_9.4.bat      	\runjavamidletinstaller.bat
   120 data = ZDRIVE\autohardware\runpkcs12tests.bat		\runpkcs12tests.bat
   203 			data = ZDRIVE\autohardware\runsisinstaller_9.4.bat		\runsisinstaller.bat
   121 
   204 			data = ZDRIVE\autohardware\testsecurityonlyjava.bat	\testsecurity.bat
       
   205 		#endif
       
   206 	#elif __SECURITY_NORMAL__
       
   207 		#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
   208 			data = ZDRIVE\autohardware\testsecurity_9.6_nonmcs.bat	\testsecurity.bat
       
   209 			data = ZDRIVE\autohardware\runswiromtests_9.6.bat	\runswiromtests.bat
       
   210 			data = ZDRIVE\autohardware\runusiftests.bat		\runusiftests.bat
       
   211 			data = ZDRIVE\autohardware\runcommonutilstests.bat	\runcommonutilstests.bat
       
   212 		#else
       
   213 			data = ZDRIVE\autohardware\testsecurity_9.5_nonmcs.bat	\testsecurity.bat
       
   214 			data = ZDRIVE\autohardware\runswiromtests_9.5.bat	\runswiromtests.bat
       
   215 		#endif
       
   216 
       
   217 		#ifndef SYMBIAN_JAVA_NOT_INCLUDED
       
   218 			data = ZDRIVE\autohardware\runsisinstaller_9.4.bat		\runsisinstaller.bat
       
   219 		#endif
       
   220 
       
   221 		
       
   222 
       
   223 		data = ZDRIVE\autohardware\runupstests_9.4.bat		\runupstests.bat
       
   224 		data = ZDRIVE\autohardware\runpkcs12tests_9.4.bat		\runpkcs12tests.bat
       
   225 
       
   226 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
       
   227 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
   122 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
   228 		data = ZDRIVE\autohardware\runcaftests_wmdrm.bat		\runcaftests.bat
   123 	data = ZDRIVE\autohardware\runcaftests_wmdrm.bat		\runcaftests.bat
   229 #else
   124 #else
   230 		data = ZDRIVE\autohardware\runcaftests_9.6.bat		\runcaftests.bat
   125 	data = ZDRIVE\autohardware\runcaftests.bat		\runcaftests.bat
   231 #endif
   126 #endif
   232 
   127 
   233 #else
   128 
   234 		data = ZDRIVE\autohardware\runcaftests_9.5.bat		\runcaftests.bat
   129 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
   235 #endif
   130 	data = ZDRIVE\autohardware\runcrypto_wmdrm.bat	               	\runcrypto.bat
   236 		
   131 #else
   237 
   132 	#ifdef __SECURITY_MANDATORY_SWICERTSTORE__
       
   133 		data = ZDRIVE\autohardware\runhardwarecrypto.bat				\runcrypto.bat
       
   134 	#else
       
   135 		data = ZDRIVE\autohardware\runcrypto.bat	               	\runcrypto.bat
   238 	#endif
   136 	#endif
   239 
   137 #endif
   240 #elif __SECURITY_MANDATORY_SWICERTSTORE__
   138 
   241 	
       
   242 	#ifdef SYMBIAN_AUTH_SERVER
       
   243 		#ifdef SYMBIAN_ENABLE_POST_MARKET_AUTHENTICATION_PLUGINS
       
   244 			data = ZDRIVE\autohardware\runauthtests_macroenabled.bat		\runauthtests.bat
       
   245 			data = ZDRIVE\autohardware\testsecurity_9.6_mcs.bat			\testsecurity.bat
       
   246 		#else
       
   247 			data = ZDRIVE\autohardware\testsecurity_9.6_mcs.bat			\testsecurity.bat
       
   248 			data = ZDRIVE\autohardware\runauthtests.bat				\runauthtests.bat
       
   249 		#endif	//SYMBIAN_ENABLE_POST_MARKET_AUTHENTICATION_PLUGINS
       
   250 		#ifdef SYMBIAN_KEYSTORE_USE_AUTH_SERVER
       
   251 			data = ZDRIVE\autohardware\runfiletokens_useauth.bat		\runfiletokens.bat
       
   252 		#elif SYMBIAN_AUTH_SERVER
       
   253 			data = ZDRIVE\autohardware\runfiletokens_disableauth.bat		\runfiletokens.bat
       
   254 		#endif // SYMBIAN_KEYSTORE_USE_AUTH_SERVER
       
   255 	#else
       
   256 		data = ZDRIVE\autohardware\runfiletokens_9.4.bat		\runfiletokens.bat
       
   257 		data = ZDRIVE\autohardware\testsecurity_9.5_mcs.bat			\testsecurity.bat
       
   258 	#endif // SYMBIAN_AUTH_SERVER
       
   259 
       
   260 	data = ZDRIVE\autohardware\runcertman_9.5.bat		\runcertman.bat
       
   261 	data = ZDRIVE\autohardware\runasnpkcs_9.4.bat		\runasnpkcs.bat
       
   262 	data = ZDRIVE\autohardware\runcryptotokens_9.4.bat	\runcryptotokens.bat
       
   263 	data = ZDRIVE\autohardware\runswiromtests_9.4_mcs.bat	\runswiromtests.bat
       
   264 	
       
   265 #elif __SECURITY_JAVA__
       
   266 
       
   267 #ifndef SYMBIAN_JAVA_NOT_INCLUDED
       
   268 	
       
   269 	data = ZDRIVE\autohardware\runjavamidletinstaller_9.4.bat      	\runjavamidletinstaller.bat
       
   270 	data = ZDRIVE\autohardware\testsecurity_9.4_java.bat	\testsecurity.bat
       
   271 #else
       
   272 	data = ZDRIVE\autohardware\testsecurity_9.6_crypto.bat	\testsecurity.bat
       
   273 #endif
       
   274 
       
   275 #ifdef SYMBIAN_CRYPTOSPI
       
   276 	data = ZDRIVE\autohardware\runcrypto_9.5.bat	               	\runcrypto.bat
       
   277 #else
       
   278 	data = ZDRIVE\autohardware\runcrypto_9.4.bat	               	\runcrypto.bat
       
   279 #endif
       
   280 #endif
       
   281 
   139 
   282 data = ZDRIVE\autohardware\testsecurityperformance_cryptalg.bat	\testsecurityperformance_cryptalg.bat
   140 data = ZDRIVE\autohardware\testsecurityperformance_cryptalg.bat	\testsecurityperformance_cryptalg.bat
   283 data = ZDRIVE\autohardware\testsecurityperformance_crypto.bat	\testsecurityperformance_crypto.bat
   141 data = ZDRIVE\autohardware\testsecurityperformance_crypto.bat	\testsecurityperformance_crypto.bat
       
   142 
       
   143 #ifdef SYMBIAN_AUTH_SERVER
       
   144 	#ifdef SYMBIAN_ENABLE_POST_MARKET_AUTHENTICATION_PLUGINS
       
   145 		data = ZDRIVE\autohardware\runauthtests_macroenabled.bat		\runauthtests.bat
       
   146 	#else
       
   147 		data = ZDRIVE\autohardware\runauthtests.bat				\runauthtests.bat
       
   148 	#endif	//SYMBIAN_ENABLE_POST_MARKET_AUTHENTICATION_PLUGINS
       
   149 	#ifdef SYMBIAN_KEYSTORE_USE_AUTH_SERVER
       
   150 		data = ZDRIVE\autohardware\runfiletokens_useauth.bat		\runfiletokens.bat
       
   151 	#else
       
   152 		#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
       
   153 			data = ZDRIVE\autohardware\runfiletokens_disableauth_with_wmdrm.bat		\runfiletokens.bat
       
   154 		#else
       
   155 			data = ZDRIVE\autohardware\runfiletokens_disableauth.bat		\runfiletokens.bat
       
   156 		#endif
       
   157 	#endif // SYMBIAN_KEYSTORE_USE_AUTH_SERVER
       
   158 #else
       
   159 	data = ZDRIVE\autohardware\runfiletokens.bat		\runfiletokens.bat
       
   160 #endif // SYMBIAN_AUTH_SERVER
       
   161 
       
   162 #ifdef SYMBIAN_KEYSTORE_USE_AUTH_SERVER 
       
   163 	data = ZDRIVE\autohardware\testsecurity_sdp_auth.bat		\testsecurity.bat
       
   164 #else
       
   165 #ifdef SDP_ROM1
       
   166 	data = ZDRIVE\autohardware\testsecurity_sdp_newrom.bat		\testsecurity.bat
       
   167 #else
       
   168 	data = ZDRIVE\autohardware\testsecurity_sdp.bat			\testsecurity.bat
       
   169 #endif
       
   170 #endif
       
   171 	
       
   172 
       
   173 
   284 
   174 
   285 //estor.dll is put in ROFS by deafult but we need to put it into CORE as well
   175 //estor.dll is put in ROFS by deafult but we need to put it into CORE as well
   286 //core version will be used; see DEF113303 for details
   176 //core version will be used; see DEF113303 for details
   287 #ifdef __SECURITY_TEST_ROM__
   177 #ifdef __SECURITY_TEST_ROM__
   288 #ifdef _INTERNAL_MMC
   178 #ifdef _INTERNAL_MMC
   289 ROM_IMAGE[0]{
       
   290 file = \epoc32\release\armv5\urel\estor.dll \sys\bin\estor.dll
       
   291 }
       
   292 #elif _NAND2
       
   293 ROM_IMAGE[0] {
   179 ROM_IMAGE[0] {
   294 file = \epoc32\release\armv5\urel\estor.dll \sys\bin\estor.dll
   180 file = \epoc32\release\armv5\urel\estor.dll \sys\bin\estor.dll
   295 }
   181 }
   296 #endif
   182 #else
   297 #endif
   183 #ifdef _NAND2
   298 
   184 ROM_IMAGE[0] {
       
   185 file = \epoc32\release\armv5\urel\estor.dll \sys\bin\estor.dll
       
   186 }
       
   187 #endif
       
   188 #endif
       
   189 #endif
   299 
   190 
   300 REM ---------- Comms-Infras ----------
   191 REM ---------- Comms-Infras ----------
   301 // ced is not included in release builds by default (in commdb.iby)
   192 // ced is not included in release builds by default (in commdb.iby)
   302 // so we include it explicitly here if _DEBUG is NOT defined
   193 // so we include it explicitly here if _DEBUG is NOT defined
   303 file=ABI_DIR\BUILD_DIR\ced.exe                      System\Libs\ced.exe
   194 file=ABI_DIR\BUILD_DIR\ced.exe                      System\Libs\ced.exe
   308 file=ABI_DIR\BUILD_DIR\RUNTESTS.EXE                 System\Programs\RUNTESTS.EXE
   199 file=ABI_DIR\BUILD_DIR\RUNTESTS.EXE                 System\Programs\RUNTESTS.EXE
   309 
   200 
   310 #include "thindump.iby"
   201 #include "thindump.iby"
   311 #include "sntpclient.iby"
   202 #include "sntpclient.iby"
   312 
   203 
   313 
       
   314 // *** Additional includes and configuration for SSM Requirements ***
   204 // *** Additional includes and configuration for SSM Requirements ***
   315 #ifdef _SSMSTARTUPMODE
   205 #ifdef _SSMSTARTUPMODE
   316 data=MULTI_LINGUIFY(RSC EPOCROOT##epoc32\data\z\private\2000d75b\startup\0\eshell  private\2000d75b\startup\0\eshell)
   206 data=MULTI_LINGUIFY(RSC EPOCROOT##epoc32\data\z\private\2000d75b\startup\0\eshell  private\2000d75b\startup\0\eshell)
   317 
   207 
   318 // Addition IBY's required
   208 // Addition IBY's required
   326 // DEF139848 fix - Forward Propogation from Symtb9.1 - Illegal dependency from OCSP to HTTP.
   216 // DEF139848 fix - Forward Propogation from Symtb9.1 - Illegal dependency from OCSP to HTTP.
   327 #include "ocsp.iby" 
   217 #include "ocsp.iby" 
   328 #include "ocsptests.iby"
   218 #include "ocsptests.iby"
   329 
   219 
   330 #endif
   220 #endif
   331 
       
   332