cryptomgmtlibs/securitytestfw/test/autotesting/Configuration1.bat
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     1 @rem
       
     2 @rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 @rem All rights reserved.
       
     4 @rem This component and the accompanying materials are made available
       
     5 @rem under the terms of the License "Eclipse Public License v1.0"
       
     6 @rem which accompanies this distribution, and is available
       
     7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 @rem
       
     9 @rem Initial Contributors:
       
    10 @rem Nokia Corporation - initial contribution.
       
    11 @rem
       
    12 @rem Contributors:
       
    13 @rem
       
    14 @rem Description: 
       
    15 @rem
       
    16 rem Certstore Configuration 1 setup script
       
    17 cd \
       
    18 call %SECURITYSOURCEDIR%\os\security\cryptomgmtlibs\securitytestfw\test\autotesting\useautocfg.bat
       
    19 
       
    20 call \epoc32\release\wins\udeb\ced -dtextshell -- -i c:\auto.cfg
       
    21 call \epoc32\release\winscw\udeb\ced -dtextshell -- -i c:\auto.cfg
       
    22 
       
    23 xcopy epoc32\wins\c backup\wins\c\ /e
       
    24 xcopy epoc32\winscw\c backup\winscw\c\ /e
       
    25 
       
    26 mkdir \epoc32\drive_e
       
    27 mkdir \epoc32\drive_d
       
    28 
       
    29 xcopy /y/i/e/s/r/q \epoc32\winscw\c\tswi \epoc32\release\winscw\udeb\z\tswi
       
    30 
       
    31 xcopy \epoc32\drive_d \backup\drive_d\ /e
       
    32 xcopy \epoc32\drive_e \backup\drive_e\ /e
       
    33 
       
    34 perl %SECURITYSOURCEDIR%\os\security\cryptoservices\certificateandkeymgmt\twtlscert\scripts\batchfiles\certstorePlugins disable_all
       
    35 perl %SECURITYSOURCEDIR%\os\security\cryptoservices\certificateandkeymgmt\twtlscert\scripts\batchfiles\certstorePlugins enable filecertstore.dll
       
    36 
       
    37 copy \epoc32\wins\c\tcertstore\data\testkeystore.txt \epoc32\wins\c\system\data\testkeystore.txt
       
    38 copy \epoc32\winscw\c\tcertstore\data\testkeystore.txt \epoc32\winscw\c\system\data\testkeystore.txt
       
    39 
       
    40 call %SECURITYSOURCEDIR%\os\security\cryptomgmtlibs\securitytestfw\test\autotesting\installSwiCertStore.bat tcertstore\data\swicertstore.dat
       
    41 call %SECURITYSOURCEDIR%\os\security\cryptomgmtlibs\securitytestfw\test\autotesting\setupSwiPolicy swipolicy.ini
       
    42 
       
    43 copy /Y \epoc32\winscw\c\tJavaHelper\trust\midp2_trp.xml \epoc32\RELEASE\WINSCW\UDEB\z\private\10203636\security\midp2_trp.xml
       
    44 copy \epoc32\winscw\c\tJavaHelper\trust\security_root5ca.der \epoc32\RELEASE\WINSCW\UDEB\z\private\10203636\security\trustroots\device\certificates\security_root5ca.der
       
    45 
       
    46 rem Copy eclipsable ROM stub and accompanying files to correct places
       
    47 
       
    48 md \epoc32\release\winscw\udeb\z\eclipsetest
       
    49 copy /y \epoc32\winscw\c\tswi\teclipsing\data\eclispingteststub.sis \epoc32\release\winscw\udeb\z\system\install\eclispingteststub.sis
       
    50 copy /y \epoc32\winscw\c\tswi\teclipsing\data\file1.txt \epoc32\RELEASE\WINSCW\UDEB\Z\eclipsetest\file1.txt
       
    51 copy /y \epoc32\winscw\c\tswi\teclipsing\data\file2.txt \epoc32\RELEASE\WINSCW\UDEB\Z\eclipsetest\file2.txt
       
    52 copy /y \epoc32\winscw\c\tswi\teclipsing\data\file3.txt \epoc32\RELEASE\WINSCW\UDEB\Z\eclipsetest\file3.txt
       
    53 
       
    54 copy /y \epoc32\release\winscw\udeb\tswisidupgradeexe.exe 	\epoc32\release\winscw\udeb\z\sys\bin\tswisidupgradeexe.exe
       
    55 copy /y \epoc32\release\winscw\udeb\eclipsetest1.dll 		\epoc32\release\winscw\udeb\z\sys\bin\eclipsetest.dll
       
    56 
       
    57 md \epoc32\release\winscw\udeb\z\sys\bin\test\
       
    58 md \epoc32\release\winscw\udeb\z\sys\bin\test1\test2\
       
    59 copy /y \epoc32\release\winscw\udeb\tswisidcache1.exe 		\epoc32\release\winscw\udeb\z\sys\bin\test\testsidcache1.exe
       
    60 copy /y \epoc32\release\winscw\udeb\tswisidcache2.exe 		\epoc32\release\winscw\udeb\z\sys\bin\test1\test2\testsidcache2.exe
       
    61 
       
    62 rem DEF083628: Orphaned files in protected dirs can be overwritten by untrusted packages
       
    63 
       
    64 copy /y \epoc32\winscw\c\tswi\tsis\data\priv-orphan.sis  \epoc32\release\winscw\udeb\z\private\80604020\import\zorphan.sis		 
       
    65 copy /y \epoc32\winscw\c\tswi\tsis\data\priv-orphan.sis  \epoc32\release\winscw\urel\z\private\80604020\import\zorphan.sis