cryptomgmtlibs/securitytestfw/inc/SecurityTests.iby
changeset 8 35751d3474b7
parent 0 2c201484c85f
child 15 da2ae96f639b
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description: 
    14 * Description: 
    15 *
    15 *
    16 */
    16 */
       
    17 
    17 #ifndef __SECURITYTESTS_IBY__
    18 #ifndef __SECURITYTESTS_IBY__
    18 #define __SECURITYTESTS_IBY__
    19 #define __SECURITYTESTS_IBY__
    19 
    20 
    20 // We need bigger ROFS files for tests with TBAS
    21 // We need bigger ROFS files for tests with TBAS
    21 rofssize=0x2100000
    22 rofssize=0x2100000
    36 PlatSecEnforcement ON
    37 PlatSecEnforcement ON
    37 PlatSecEnforceSysBin ON
    38 PlatSecEnforceSysBin ON
    38 PlatSecProcessIsolation ON
    39 PlatSecProcessIsolation ON
    39 }
    40 }
    40 #include "setcap.iby"
    41 #include "setcap.iby"
    41 
    42 #include "testutil.iby"
    42 #include "testexecute.iby"
    43 #include "testexecute.iby"
    43 #include "t_testhandler.iby"
    44 #include "t_testhandler.iby"
    44 #include "xml.iby" // Needed for security tests
    45 #include "xml.iby" // Needed for security tests
    45 
    46 
    46 #include "securityframeworktestserver.iby"
    47 #include "securityframeworktestserver.iby"
       
    48 // Common utils libraries
       
    49 #include "securitycommonutils.iby"
       
    50 // Common utils libraries test
       
    51 #include "installtestframework.iby"
       
    52 #include "securitytestframework.iby"		
       
    53 
       
    54 #include "streamingcaf.iby"
       
    55 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
    56 	//Universal Software Install Framework production
       
    57 	#include "scr.iby" // Software Component Registry
       
    58 	#include "sif.iby"  // Software Install Framework
       
    59 	#include "sts.iby"  // Software Transaction Services
       
    60 	#include "sifrefinstaller.iby"  // Sif Reference Installer
       
    61 #endif //SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
    47 
    62 
    48 #ifdef __SECURITY_NORMAL_SWICERTSTORE__
    63 #ifdef __SECURITY_NORMAL_SWICERTSTORE__
    49 	#include "tsistestdata.iby" 
    64 	
    50 
    65 	#ifdef __SECURITY_ONLYJAVA__
    51 	ECOM_PLUGIN(tsecdlg.dll, 10204789.rsc)
    66 		
    52 
    67 		#ifndef SYMBIAN_JAVA_NOT_INCLUDED
    53 #ifdef SYMBIAN_USER_PROMPT_SERVICE
    68 			#include "sisinstallertest.iby"
    54 	#include "ups.iby"
    69 			#include "JavaMIDletInstallerTest.iby"
    55 	#include "tups.iby"
    70 			#include "rtatest.iby"
    56 #endif
    71 			#include "recjar.iby"
    57 	// iby files for caf
    72 		#endif
    58 	#include "caf.iby"
    73 	#elif __SECURITY_NORMAL__
    59 	#include "caftest.iby"
    74 
    60 	#include "reccafconfig.iby"
    75 		#ifndef SYMBIAN_JAVA_NOT_INCLUDED
    61 	#include "rta.iby"
    76   			#include "sisinstallertest.iby"
    62 	#include "rtatest.iby"
    77 		#endif
    63 	#include "tpkcs12integrationserver.iby"
    78 
    64 	// Dependency
    79 		#include "tsistestdata.iby" 
    65 	file=ABI_DIR\BUILD_DIR\pkcs7.dll	System\Libs\pkcs7.dll
    80 
    66 
    81 		ECOM_PLUGIN(tsecdlg.dll, 10204789.rsc)
    67 #ifdef SYMBIAN_CAF_STREAMING
    82 		
    68 	#include "streamingcaf.iby"
    83 		#include "tups.iby"
    69 	#include "tscaf.iby"
    84 		#include "ups.iby"
    70 #endif	
    85 		// iby files for caf
    71 
    86 		#include "caf.iby"
    72 	// Extra test data
    87 		#include "caftest.iby"
    73 	#include "tswi.iby"
    88 		#include "reccafconfig.iby"
    74 	#include "tswiconsole.iby"
    89 		#include "rta.iby"
    75 	#include "tsissignedtestdata.iby"
    90 		#include "rtatest.iby"
    76 	#include "secutiltests.iby"
    91 		#include "tpkcs12integrationserver.iby"
       
    92  		// Dependency
       
    93 		file=ABI_DIR\BUILD_DIR\pkcs7.dll	System\Libs\pkcs7.dll
       
    94 
       
    95 		#include "tscaf.iby"
       
    96  
       
    97 
       
    98 		#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
    99 			//Universal Software Install Framework tests
       
   100 			#include "tscr.iby"
       
   101 			#include "tsif.iby"
       
   102 			#include "tsts.iby"
       
   103 			#include "tsifrefinstaller.iby"
       
   104 		#endif //SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
   105 
       
   106 		
       
   107 	
       
   108 		
       
   109 		
       
   110 		
       
   111 		// Extra test data
       
   112 		#include "tswi.iby"
       
   113 		#include "tswiconsole.iby"
       
   114 		#include "tsissignedtestdata.iby"
       
   115 		#include "secutiltests.iby"
       
   116 
       
   117 	#endif
       
   118 
       
   119 
       
   120 
       
   121 	#ifndef SYMBIAN_JAVA_NOT_INCLUDED
       
   122   		// Jar/Jad recogniser needed for CAF tests
       
   123   		#include "recjar.iby"
       
   124 	#endif
    77 
   125 
    78 #elif __SECURITY_MANDATORY_SWICERTSTORE__
   126 #elif __SECURITY_MANDATORY_SWICERTSTORE__
    79 	// Temp
   127 	// Temp
    80 	#include "cryptodeps.iby"
   128  	#include "cryptodeps.iby"
    81            	
   129              
    82              #include "randomtests.iby"
   130       #include "randomtests.iby"
    83  	#include "hashtests.iby"
   131    	#include "hashtests.iby"
    84 	#include "certmantests.iby"
   132   	#include "certmantests.iby"
    85 
   133   	#include "ctframeworktests.iby"
    86 	#include "ctframeworktests.iby"
   134   	#include "tpkcs7server.iby"
    87 	#include "tpkcs7server.iby"
   135   	#include "filetokenstests.iby"
    88 	#include "filetokenstests.iby"
   136   	#include "asnpkcstests.iby"
    89 	#include "asnpkcstests.iby"
   137   	#include "tsiscorrupttestdata.iby" 
    90 	#include "tsiscorrupttestdata.iby" 
   138   	// uncomment authserver tests when authserver gets released
    91 	// uncomment authserver tests when authserver gets released
   139 	#ifdef SYMBIAN_AUTH_SERVER
    92 	// #include "tAuthSvr.iby"
   140   		#include "tAuthSvr.iby"
    93 
   141 	#endif // SYMBIAN_AUTH_SERVER
    94 	// Extra test data
   142 	#ifndef SYMBIAN_JAVA_NOT_INCLUDED
    95 	#include "tswi.iby"
   143 		// Jar Download Reference Filter - sets user agent
    96 	#include "tswiconsole.iby"
   144 		ECOM_PLUGIN(midletuaheaderfilter.dll,10200a88.rsc)
    97 	#include "tsissignedtestdata.iby"
   145 	#endif
    98 	#include "secutiltests.iby"
   146   
       
   147   	// Extra test data
       
   148   	#include "tswi.iby"
       
   149   	#include "tswiconsole.iby"
       
   150   	#include "tsissignedtestdata.iby"
       
   151   	#include "secutiltests.iby"
    99 #elif __SECURITY_JAVA__
   152 #elif __SECURITY_JAVA__
   100 
   153 	#ifndef SYMBIAN_JAVA_NOT_INCLUDED
       
   154   		#include "JavaMIDletInstallerTest.iby"
       
   155 	#endif
       
   156 	
   101 	#include "cryptotests.iby"
   157 	#include "cryptotests.iby"
   102 	#include "randomtests.iby"
   158 	#include "randomtests.iby"
   103 	#include "hashtests.iby"
   159   	#include "hashtests.iby"
   104 	#include "rtatest.iby"	
   160 	#include "rtatest.iby"
   105 #endif
   161 	#include "rta.iby"
       
   162 #endif
       
   163 
   106 
   164 
   107 //***********
   165 //***********
   108 // REMOVE ME WHEN AUTHSERVER IS ADDED TO MAIN BUILD
   166 // REMOVE ME WHEN AUTHSERVER IS ADDED TO MAIN BUILD
   109 //***********
   167 //***********
   110 //#include "authserver.iby"
   168 #ifdef SYMBIAN_AUTH_SERVER
       
   169 	#include "authserver.iby"
       
   170 	#include "pinplugin.iby"
       
   171 #endif // SYMBIAN_AUTH_SERVER
   111 
   172 
   112 // This is the bat file to run the security tests automatically
   173 // This is the bat file to run the security tests automatically
   113 // comms configuration (and configuration using sim.tsy)
   174 // comms configuration (and configuration using sim.tsy)
   114 data = ZDRIVE\auto.cfg					\auto.cfg
   175 data = ZDRIVE\auto.cfg					\auto.cfg
   115 data = ZDRIVE\auto_broken.cfg					\auto_broken.cfg
   176 data = ZDRIVE\auto_broken.cfg					\auto_broken.cfg
   117 data = ZDRIVE\prompt.cfg					\prompt.cfg
   178 data = ZDRIVE\prompt.cfg					\prompt.cfg
   118 
   179 
   119 // This the file which used to redirect the request from cam-ocsptest01 to ban-ocsptest01
   180 // This the file which used to redirect the request from cam-ocsptest01 to ban-ocsptest01
   120 data = ZDRIVE\autohardware\hosts		     \hosts
   181 data = ZDRIVE\autohardware\hosts		     \hosts
   121 
   182 
       
   183 
       
   184 
   122 #ifdef __AUTO_HARDWARE_TESTS__
   185 #ifdef __AUTO_HARDWARE_TESTS__
   123 	data = ZDRIVE\autohardware\autoexec.bat		\autoexec.bat
   186 	data = ZDRIVE\autohardware\autoexec.bat		\autoexec.bat
   124 #endif
   187 #endif
   125 
   188 
   126 #ifdef __SECURITY_NORMAL_SWICERTSTORE__
   189 #ifdef __SECURITY_NORMAL_SWICERTSTORE__
   127 
   190 
   128 #ifdef SYMBIAN_JAVA_NOT_INCLUDED
   191 	#ifdef __SECURITY_ONLYJAVA__
   129 	data = ZDRIVE\autohardware\testsecurity_9.6_nonmcs.bat	\testsecurity.bat
   192 
   130 	data = ZDRIVE\autohardware\runswiromtests_9.6.bat	\runswiromtests.bat
   193 		#ifndef SYMBIAN_JAVA_NOT_INCLUDED
   131 #elif defined(SYMBIAN_USER_PROMPT_SERVICE)
   194 			data = ZDRIVE\autohardware\runjavamidletinstaller_9.4.bat      	\runjavamidletinstaller.bat
   132 	data = ZDRIVE\autohardware\testsecurity_9.5_nonmcs.bat	\testsecurity.bat
   195 			data = ZDRIVE\autohardware\runsisinstaller_9.4.bat		\runsisinstaller.bat
   133 	data = ZDRIVE\autohardware\runswiromtests_9.5.bat	\runswiromtests.bat
   196 			data = ZDRIVE\autohardware\testsecurityonlyjava.bat	\testsecurity.bat
       
   197 		#endif
       
   198 	#elif __SECURITY_NORMAL__
       
   199 		#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
   200 			data = ZDRIVE\autohardware\testsecurity_9.6_nonmcs.bat	\testsecurity.bat
       
   201 			data = ZDRIVE\autohardware\runswiromtests_9.6.bat	\runswiromtests.bat
       
   202 			data = ZDRIVE\autohardware\runusiftests.bat		\runusiftests.bat
       
   203 			data = ZDRIVE\autohardware\runcommonutilstests.bat	\runcommonutilstests.bat
       
   204 		#else
       
   205 			data = ZDRIVE\autohardware\testsecurity_9.5_nonmcs.bat	\testsecurity.bat
       
   206 			data = ZDRIVE\autohardware\runswiromtests_9.5.bat	\runswiromtests.bat
       
   207 		#endif
       
   208 
       
   209 		#ifndef SYMBIAN_JAVA_NOT_INCLUDED
       
   210 			data = ZDRIVE\autohardware\runsisinstaller_9.4.bat		\runsisinstaller.bat
       
   211 		#endif
       
   212 
       
   213 		
       
   214 
       
   215 		data = ZDRIVE\autohardware\runupstests_9.4.bat		\runupstests.bat
       
   216 		data = ZDRIVE\autohardware\runpkcs12tests_9.4.bat		\runpkcs12tests.bat
       
   217 
       
   218 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
       
   219 		data = ZDRIVE\autohardware\runcaftests_9.6.bat		\runcaftests.bat
   134 #else
   220 #else
   135 	data = ZDRIVE\autohardware\testsecurity_9.4_nonmcs.bat	\testsecurity.bat
   221 		data = ZDRIVE\autohardware\runcaftests_9.5.bat		\runcaftests.bat
   136 	data = ZDRIVE\autohardware\runswiromtests_9.4.bat	\runswiromtests.bat
   222 #endif
   137 #endif
   223 		
   138 
   224 
   139 	data = ZDRIVE\autohardware\runtlsclientauth_9.4.bat		\runtlsclientauth.bat
   225 	#endif
   140 	data = ZDRIVE\autohardware\runupstests_9.4.bat		\runupstests.bat
       
   141 	data = ZDRIVE\autohardware\runpkcs12tests_9.4.bat		\runpkcs12tests.bat
       
   142 
       
   143 #ifdef SYMBIAN_CAF_STREAMING
       
   144 	data = ZDRIVE\autohardware\runcaftests_9.6.bat		\runcaftests.bat
       
   145 #else	
       
   146 	data = ZDRIVE\autohardware\runcaftests_9.4.bat		\runcaftests.bat
       
   147 #endif
       
   148 
   226 
   149 #elif __SECURITY_MANDATORY_SWICERTSTORE__
   227 #elif __SECURITY_MANDATORY_SWICERTSTORE__
   150 #ifdef SYMBIAN_USER_PROMPT_SERVICE
   228 	
   151 	data = ZDRIVE\autohardware\testsecurity_9.5_mcs.bat			\testsecurity.bat
   229 	#ifdef SYMBIAN_AUTH_SERVER
   152 #else
   230 		#ifdef SYMBIAN_ENABLE_POST_MARKET_AUTHENTICATION_PLUGINS
   153 	data = ZDRIVE\autohardware\testsecurity_9.4_mcs.bat			\testsecurity.bat
   231 			data = ZDRIVE\autohardware\runauthtests_macroenabled.bat		\runauthtests.bat
   154 #endif
   232 			data = ZDRIVE\autohardware\testsecurity_9.6_mcs.bat			\testsecurity.bat
   155 	data = ZDRIVE\autohardware\runcertman_9.4.bat		\runcertman.bat
   233 		#else
       
   234 			data = ZDRIVE\autohardware\testsecurity_9.6_mcs.bat			\testsecurity.bat
       
   235 			data = ZDRIVE\autohardware\runauthtests.bat				\runauthtests.bat
       
   236 		#endif	//SYMBIAN_ENABLE_POST_MARKET_AUTHENTICATION_PLUGINS
       
   237 		#ifdef SYMBIAN_KEYSTORE_USE_AUTH_SERVER
       
   238 			data = ZDRIVE\autohardware\runfiletokens_useauth.bat		\runfiletokens.bat
       
   239 		#elif SYMBIAN_AUTH_SERVER
       
   240 			data = ZDRIVE\autohardware\runfiletokens_disableauth.bat		\runfiletokens.bat
       
   241 		#endif // SYMBIAN_KEYSTORE_USE_AUTH_SERVER
       
   242 	#else
       
   243 		data = ZDRIVE\autohardware\runfiletokens_9.4.bat		\runfiletokens.bat
       
   244 		data = ZDRIVE\autohardware\testsecurity_9.5_mcs.bat			\testsecurity.bat
       
   245 	#endif // SYMBIAN_AUTH_SERVER
       
   246 
       
   247 	data = ZDRIVE\autohardware\runcertman_9.5.bat		\runcertman.bat
   156 	data = ZDRIVE\autohardware\runasnpkcs_9.4.bat		\runasnpkcs.bat
   248 	data = ZDRIVE\autohardware\runasnpkcs_9.4.bat		\runasnpkcs.bat
   157 	data = ZDRIVE\autohardware\runfiletokens_9.4.bat		\runfiletokens.bat
       
   158 	data = ZDRIVE\autohardware\runcryptotokens_9.4.bat	\runcryptotokens.bat
   249 	data = ZDRIVE\autohardware\runcryptotokens_9.4.bat	\runcryptotokens.bat
   159 	data = ZDRIVE\autohardware\runswiromtests_9.4_mcs.bat	\runswiromtests.bat
   250 	data = ZDRIVE\autohardware\runswiromtests_9.4_mcs.bat	\runswiromtests.bat
   160 	// PREQ218 is still vFuture, run it just in 9.4 not any lower build
   251 	
   161 //	data = ZDRIVE\autohardware\runauthtests.bat		\runauthtests.bat
       
   162 #elif __SECURITY_JAVA__
   252 #elif __SECURITY_JAVA__
   163 
   253 
       
   254 #ifndef SYMBIAN_JAVA_NOT_INCLUDED
       
   255 	
       
   256 	data = ZDRIVE\autohardware\runjavamidletinstaller_9.4.bat      	\runjavamidletinstaller.bat
       
   257 	data = ZDRIVE\autohardware\testsecurity_9.4_java.bat	\testsecurity.bat
       
   258 #else
   164 	data = ZDRIVE\autohardware\testsecurity_9.6_crypto.bat	\testsecurity.bat
   259 	data = ZDRIVE\autohardware\testsecurity_9.6_crypto.bat	\testsecurity.bat
   165 
   260 #endif
   166 
   261 
   167 #ifdef SYMBIAN_CRYPTOSPI
   262 #ifdef SYMBIAN_CRYPTOSPI
   168 	data = ZDRIVE\autohardware\runcrypto_9.5.bat	               	\runcrypto.bat
   263 	data = ZDRIVE\autohardware\runcrypto_9.5.bat	               	\runcrypto.bat
   169 #else
   264 #else
   170 	data = ZDRIVE\autohardware\runcrypto_9.4.bat	               	\runcrypto.bat
   265 	data = ZDRIVE\autohardware\runcrypto_9.4.bat	               	\runcrypto.bat
   175 data = ZDRIVE\autohardware\testsecurityperformance_crypto.bat	\testsecurityperformance_crypto.bat
   270 data = ZDRIVE\autohardware\testsecurityperformance_crypto.bat	\testsecurityperformance_crypto.bat
   176 
   271 
   177 //estor.dll is put in ROFS by deafult but we need to put it into CORE as well
   272 //estor.dll is put in ROFS by deafult but we need to put it into CORE as well
   178 //core version will be used; see DEF113303 for details
   273 //core version will be used; see DEF113303 for details
   179 #ifdef __SECURITY_TEST_ROM__
   274 #ifdef __SECURITY_TEST_ROM__
   180 #ifdef _NAND2
   275 #ifdef _INTERNAL_MMC
       
   276 ROM_IMAGE[0]{
       
   277 file = \epoc32\release\armv5\urel\estor.dll \sys\bin\estor.dll
       
   278 }
       
   279 #elif _NAND2
   181 ROM_IMAGE[0] {
   280 ROM_IMAGE[0] {
   182 file = \epoc32\release\armv5\urel\estor.dll \sys\bin\estor.dll
   281 file = \epoc32\release\armv5\urel\estor.dll \sys\bin\estor.dll
   183 }
   282 }
   184 #endif
   283 #endif
   185 #endif
   284 #endif
   196 file=ABI_DIR\BUILD_DIR\RUNTESTS.EXE                 System\Programs\RUNTESTS.EXE
   295 file=ABI_DIR\BUILD_DIR\RUNTESTS.EXE                 System\Programs\RUNTESTS.EXE
   197 
   296 
   198 #include "thindump.iby"
   297 #include "thindump.iby"
   199 #include "sntpclient.iby"
   298 #include "sntpclient.iby"
   200 
   299 
   201 // DEF137562 fix - Removing illegal dependency from OS to MW layer. Relocation of OCSP component from OS to MW layer.
   300 
       
   301 // *** Additional includes and configuration for SSM Requirements ***
       
   302 #ifdef _SSMSTARTUPMODE
       
   303 data=MULTI_LINGUIFY(RSC EPOCROOT##epoc32\data\z\private\2000d75b\startup\0\eshell  private\2000d75b\startup\0\eshell)
       
   304 
       
   305 // Addition IBY's required
       
   306 #include "aplp.iby"
       
   307 #include "amastart.iby"
       
   308 #include "shma.iby"
       
   309 #include "ssrefplugins.iby" 
       
   310 #endif
       
   311 
       
   312 
       
   313 // DEF139848 fix - Forward Propogation from Symtb9.1 - Illegal dependency from OCSP to HTTP.
   202 #include "ocsp.iby" 
   314 #include "ocsp.iby" 
   203 #include "ocsptests.iby"
   315 #include "ocsptests.iby"
   204 
   316 
   205 #endif
   317 #endif
       
   318 
       
   319