secureswitools/swisistools/test/tinterpretsisinteg/testinterpretsis.bat
changeset 60 245df5276b97
parent 0 ba25891c3a9e
equal deleted inserted replaced
53:ae54820ef82c 60:245df5276b97
     1 @rem
     1 @rem
     2 @rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 @rem Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 @rem All rights reserved.
     3 @rem All rights reserved.
     4 @rem This component and the accompanying materials are made available
     4 @rem This component and the accompanying materials are made available
     5 @rem under the terms of the License "Eclipse Public License v1.0"
     5 @rem under the terms of the License "Eclipse Public License v1.0"
     6 @rem which accompanies this distribution, and is available
     6 @rem which accompanies this distribution, and is available
     7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
  1888 if not exist .\romdrive\system\install mkdir .\romdrive\system\install > NUL
  1888 if not exist .\romdrive\system\install mkdir .\romdrive\system\install > NUL
  1889 if not exist .\romdrive\system\data mkdir .\romdrive\system\data > NUL
  1889 if not exist .\romdrive\system\data mkdir .\romdrive\system\data > NUL
  1890 call copy \epoc32\winscw\c\tswi\tinterpretsisinteg\data\version_5_3.txt .\romdrive\system\data\sisregistry_5.3.txt > NUL
  1890 call copy \epoc32\winscw\c\tswi\tinterpretsisinteg\data\version_5_3.txt .\romdrive\system\data\sisregistry_5.3.txt > NUL
  1891 call interpretsis -z .\romdrive -c .\cdrive -s \epoc32\winscw\c\tswi\tinterpretsisinteg\data\simple.sis -w info -l \epoc32\winscw\c\interpretsis_test_harness.txt > NUL
  1891 call interpretsis -z .\romdrive -c .\cdrive -s \epoc32\winscw\c\tswi\tinterpretsisinteg\data\simple.sis -w info -l \epoc32\winscw\c\interpretsis_test_harness.txt > NUL
  1892 if not %errorlevel%==0 GOTO LAST
  1892 if not %errorlevel%==0 GOTO LAST
  1893 call fc .\cdrive\sys\install\sisregistry\80000001\00000000.reg \epoc32\winscw\c\tswi\tinterpretsisinteg\data\80000001_53\00000000.reg | find "FC: no differences encountered" > NUL
  1893 call fc /c  .\cdrive\sys\install\sisregistry\80000001\00000000.reg \epoc32\winscw\c\tswi\tinterpretsisinteg\data\80000001_53\00000000.reg | find "FC: no differences encountered" > NUL
  1894 if not %errorlevel%==0 GOTO LAST
  1894 if not %errorlevel%==0 GOTO LAST
  1895 ECHO ***ERRORCODE*** %errorlevel% PASS>>\epoc32\winscw\c\interpretsis_test_harness.txt
  1895 ECHO ***ERRORCODE*** %errorlevel% PASS>>\epoc32\winscw\c\interpretsis_test_harness.txt
  1896 GOTO PASS_CLEAN
  1896 GOTO PASS_CLEAN
  1897 
  1897 
  1898 
  1898 
  1902 if exist .\romdrive\system\data rmdir .\romdrive\system\data /S /Q > NUL
  1902 if exist .\romdrive\system\data rmdir .\romdrive\system\data /S /Q > NUL
  1903 mkdir .\romdrive\system\data
  1903 mkdir .\romdrive\system\data
  1904 call copy \epoc32\winscw\c\tswi\tinterpretsisinteg\data\version_5_1.txt .\romdrive\system\data\sisregistry_5.1.txt > NUL
  1904 call copy \epoc32\winscw\c\tswi\tinterpretsisinteg\data\version_5_1.txt .\romdrive\system\data\sisregistry_5.1.txt > NUL
  1905 call interpretsis -z .\romdrive -c .\cdrive -s \epoc32\winscw\c\tswi\tinterpretsisinteg\data\simple.sis -w info -l \epoc32\winscw\c\interpretsis_test_harness.txt > NUL
  1905 call interpretsis -z .\romdrive -c .\cdrive -s \epoc32\winscw\c\tswi\tinterpretsisinteg\data\simple.sis -w info -l \epoc32\winscw\c\interpretsis_test_harness.txt > NUL
  1906 if not %errorlevel%==0 GOTO LAST
  1906 if not %errorlevel%==0 GOTO LAST
  1907 call fc .\cdrive\sys\install\sisregistry\80000001\00000000.reg \epoc32\winscw\c\tswi\tinterpretsisinteg\data\80000001_51\00000000.reg | find "FC: no differences encountered" > NUL
  1907 call fc /c  .\cdrive\sys\install\sisregistry\80000001\00000000.reg \epoc32\winscw\c\tswi\tinterpretsisinteg\data\80000001_51\00000000.reg | find "FC: no differences encountered" > NUL
  1908 if not %errorlevel%==0 GOTO LAST
  1908 if not %errorlevel%==0 GOTO LAST
  1909 ECHO ***ERRORCODE*** %errorlevel% PASS>>\epoc32\winscw\c\interpretsis_test_harness.txt
  1909 ECHO ***ERRORCODE*** %errorlevel% PASS>>\epoc32\winscw\c\interpretsis_test_harness.txt
  1910 GOTO PASS_CLEAN
  1910 GOTO PASS_CLEAN
  1911 
  1911 
  1912 
  1912 
  1916 if exist .\romdrive\system\data\ del .\romdrive\system\data\ /F /Q> NUL
  1916 if exist .\romdrive\system\data\ del .\romdrive\system\data\ /F /Q> NUL
  1917 mkdir .\romdrive\system\data\ > NUL
  1917 mkdir .\romdrive\system\data\ > NUL
  1918 call copy \epoc32\winscw\c\tswi\tinterpretsisinteg\data\version_4_1.txt .\romdrive\system\data\sisregistry_4.0.txt > NUL
  1918 call copy \epoc32\winscw\c\tswi\tinterpretsisinteg\data\version_4_1.txt .\romdrive\system\data\sisregistry_4.0.txt > NUL
  1919 call interpretsis -z .\romdrive -c .\cdrive -s \epoc32\winscw\c\tswi\tinterpretsisinteg\data\simple.sis -w info -l \epoc32\winscw\c\interpretsis_test_harness.txt > NUL
  1919 call interpretsis -z .\romdrive -c .\cdrive -s \epoc32\winscw\c\tswi\tinterpretsisinteg\data\simple.sis -w info -l \epoc32\winscw\c\interpretsis_test_harness.txt > NUL
  1920 if not %errorlevel%==0 GOTO LAST
  1920 if not %errorlevel%==0 GOTO LAST
  1921 call fc .\cdrive\sys\install\sisregistry\80000001\00000000.reg \epoc32\winscw\c\tswi\tinterpretsisinteg\data\80000001_40\00000000.reg | find "FC: no differences encountered" > NUL
  1921 call fc /c  .\cdrive\sys\install\sisregistry\80000001\00000000.reg \epoc32\winscw\c\tswi\tinterpretsisinteg\data\80000001_40\00000000.reg | find "FC: no differences encountered" > NUL
  1922 if not %errorlevel%==0 GOTO LAST
  1922 if not %errorlevel%==0 GOTO LAST
  1923 ECHO ***ERRORCODE*** %errorlevel% PASS>>\epoc32\winscw\c\interpretsis_test_harness.txt
  1923 ECHO ***ERRORCODE*** %errorlevel% PASS>>\epoc32\winscw\c\interpretsis_test_harness.txt
  1924 GOTO PASS_CLEAN
  1924 GOTO PASS_CLEAN
  1925 
  1925 
  1926 
  1926 
  1927 :INT008-004
  1927 :INT008-004
  1928 if not exist .\romdrive\system\install mkdir .\romdrive\system\install > NUL
  1928 if not exist .\romdrive\system\install mkdir .\romdrive\system\install > NUL
  1929 call interpretsis -z .\romdrive -c .\cdrive -s \epoc32\winscw\c\tswi\tinterpretsisinteg\data\simple.sis -k 5.3 -w info -l \epoc32\winscw\c\interpretsis_test_harness.txt > NUL
  1929 call interpretsis -z .\romdrive -c .\cdrive -s \epoc32\winscw\c\tswi\tinterpretsisinteg\data\simple.sis -k 5.3 -w info -l \epoc32\winscw\c\interpretsis_test_harness.txt > NUL
  1930 if not %errorlevel%==0 GOTO LAST
  1930 if not %errorlevel%==0 GOTO LAST
  1931 call fc .\cdrive\sys\install\sisregistry\80000001\00000000.reg \epoc32\winscw\c\tswi\tinterpretsisinteg\data\80000001_53\00000000.reg | find "FC: no differences encountered" > NUL
  1931 call fc /c  .\cdrive\sys\install\sisregistry\80000001\00000000.reg \epoc32\winscw\c\tswi\tinterpretsisinteg\data\80000001_53\00000000.reg | find "FC: no differences encountered" > NUL
  1932 if not %errorlevel%==0 GOTO LAST
  1932 if not %errorlevel%==0 GOTO LAST
  1933 ECHO ***ERRORCODE*** %errorlevel% PASS>>\epoc32\winscw\c\interpretsis_test_harness.txt
  1933 ECHO ***ERRORCODE*** %errorlevel% PASS>>\epoc32\winscw\c\interpretsis_test_harness.txt
  1934 GOTO PASS_CLEAN
  1934 GOTO PASS_CLEAN
  1935 
  1935 
  1936 
  1936 
  1938 if not exist .\romdrive\system\install mkdir .\romdrive\system\install > NUL
  1938 if not exist .\romdrive\system\install mkdir .\romdrive\system\install > NUL
  1939 if not exist .\romdrive\system\data mkdir .\romdrive\system\data > NUL
  1939 if not exist .\romdrive\system\data mkdir .\romdrive\system\data > NUL
  1940 call copy \epoc32\winscw\c\tswi\tinterpretsisinteg\data\version_4_1.txt .\romdrive\system\data\sisregistry_4.0.txt > NUL
  1940 call copy \epoc32\winscw\c\tswi\tinterpretsisinteg\data\version_4_1.txt .\romdrive\system\data\sisregistry_4.0.txt > NUL
  1941 call interpretsis -z .\romdrive -c .\cdrive -s \epoc32\winscw\c\tswi\tinterpretsisinteg\data\simple.sis -k 5.3 -w info -l \epoc32\winscw\c\interpretsis_test_harness.txt > NUL
  1941 call interpretsis -z .\romdrive -c .\cdrive -s \epoc32\winscw\c\tswi\tinterpretsisinteg\data\simple.sis -k 5.3 -w info -l \epoc32\winscw\c\interpretsis_test_harness.txt > NUL
  1942 if not %errorlevel%==0 GOTO LAST
  1942 if not %errorlevel%==0 GOTO LAST
  1943 call fc .\cdrive\sys\install\sisregistry\80000001\00000000.reg \epoc32\winscw\c\tswi\tinterpretsisinteg\data\80000001_53\00000000.reg | find "FC: no differences encountered" > NUL
  1943 call fc /c  .\cdrive\sys\install\sisregistry\80000001\00000000.reg \epoc32\winscw\c\tswi\tinterpretsisinteg\data\80000001_53\00000000.reg | find "FC: no differences encountered" > NUL
  1944 if not %errorlevel%==0 GOTO LAST
  1944 if not %errorlevel%==0 GOTO LAST
  1945 ECHO ***ERRORCODE*** %errorlevel% PASS>>\epoc32\winscw\c\interpretsis_test_harness.txt
  1945 ECHO ***ERRORCODE*** %errorlevel% PASS>>\epoc32\winscw\c\interpretsis_test_harness.txt
  1946 GOTO PASS_CLEAN
  1946 GOTO PASS_CLEAN
  1947 
  1947 
  1948 
  1948 
  1950 if not exist .\romdrive\system\install mkdir .\romdrive\system\install > NUL
  1950 if not exist .\romdrive\system\install mkdir .\romdrive\system\install > NUL
  1951 if not exist .\romdrive\system\data mkdir .\romdrive\system\data > NUL
  1951 if not exist .\romdrive\system\data mkdir .\romdrive\system\data > NUL
  1952 call copy \epoc32\winscw\c\tswi\tinterpretsisinteg\data\version_5_3.txt .\romdrive\system\data\sisregistry_5.3.txt > NUL
  1952 call copy \epoc32\winscw\c\tswi\tinterpretsisinteg\data\version_5_3.txt .\romdrive\system\data\sisregistry_5.3.txt > NUL
  1953 call interpretsis -z .\romdrive -c .\cdrive -s \epoc32\winscw\c\tswi\tinterpretsisinteg\data\simple.sis -w info -l \epoc32\winscw\c\interpretsis_test_harness.txt > NUL
  1953 call interpretsis -z .\romdrive -c .\cdrive -s \epoc32\winscw\c\tswi\tinterpretsisinteg\data\simple.sis -w info -l \epoc32\winscw\c\interpretsis_test_harness.txt > NUL
  1954 if not %errorlevel%==0 GOTO LAST
  1954 if not %errorlevel%==0 GOTO LAST
  1955 call fc .\cdrive\sys\install\sisregistry\80000001\00000000.reg \epoc32\winscw\c\tswi\tinterpretsisinteg\data\80000001_53\00000000.reg | find "FC: no differences encountered" > NUL
  1955 call fc /c  .\cdrive\sys\install\sisregistry\80000001\00000000.reg \epoc32\winscw\c\tswi\tinterpretsisinteg\data\80000001_53\00000000.reg | find "FC: no differences encountered" > NUL
  1956 if not %errorlevel%==0 GOTO LAST
  1956 if not %errorlevel%==0 GOTO LAST
  1957 ECHO ***ERRORCODE*** %errorlevel% PASS>>\epoc32\winscw\c\interpretsis_test_harness.txt
  1957 ECHO ***ERRORCODE*** %errorlevel% PASS>>\epoc32\winscw\c\interpretsis_test_harness.txt
  1958 GOTO PASS_CLEAN
  1958 GOTO PASS_CLEAN
  1959 
  1959 
  1960 
  1960 
  1962 if exist .\romdrive\system\data rmdir .\romdrive\system\data /S /Q > NUL
  1962 if exist .\romdrive\system\data rmdir .\romdrive\system\data /S /Q > NUL
  1963 mkdir .\romdrive\system\data
  1963 mkdir .\romdrive\system\data
  1964 call copy \epoc32\winscw\c\tswi\tinterpretsisinteg\data\version_5_1.txt .\romdrive\system\data\sisregistry_5.1.txt > NUL
  1964 call copy \epoc32\winscw\c\tswi\tinterpretsisinteg\data\version_5_1.txt .\romdrive\system\data\sisregistry_5.1.txt > NUL
  1965 call interpretsis -z .\romdrive -c .\cdrive -s \epoc32\winscw\c\tswi\tinterpretsisinteg\data\simple.sis -w info -l \epoc32\winscw\c\interpretsis_test_harness.txt > NUL
  1965 call interpretsis -z .\romdrive -c .\cdrive -s \epoc32\winscw\c\tswi\tinterpretsisinteg\data\simple.sis -w info -l \epoc32\winscw\c\interpretsis_test_harness.txt > NUL
  1966 if not %errorlevel%==0 GOTO LAST
  1966 if not %errorlevel%==0 GOTO LAST
  1967 call fc .\cdrive\sys\install\sisregistry\80000001\00000000.reg \epoc32\winscw\c\tswi\tinterpretsisinteg\data\80000001_51\00000000.reg | find "FC: no differences encountered" > NUL
  1967 call fc /c  .\cdrive\sys\install\sisregistry\80000001\00000000.reg \epoc32\winscw\c\tswi\tinterpretsisinteg\data\80000001_51\00000000.reg | find "FC: no differences encountered" > NUL
  1968 if not %errorlevel%==0 GOTO LAST
  1968 if not %errorlevel%==0 GOTO LAST
  1969 ECHO ***ERRORCODE*** %errorlevel% PASS>>\epoc32\winscw\c\interpretsis_test_harness.txt
  1969 ECHO ***ERRORCODE*** %errorlevel% PASS>>\epoc32\winscw\c\interpretsis_test_harness.txt
  1970 GOTO PASS_CLEAN
  1970 GOTO PASS_CLEAN
  1971 
  1971 
  1972 
  1972 
  1974 if not exist .\romdrive\system\install mkdir .\romdrive\system\install > NUL
  1974 if not exist .\romdrive\system\install mkdir .\romdrive\system\install > NUL
  1975 if not exist .\romdrive\system\data mkdir .\romdrive\system\data > NUL
  1975 if not exist .\romdrive\system\data mkdir .\romdrive\system\data > NUL
  1976 call copy \epoc32\winscw\c\tswi\tinterpretsisinteg\data\version_5_3.txt .\romdrive\system\data\sisregistry_5.3.txt > NUL
  1976 call copy \epoc32\winscw\c\tswi\tinterpretsisinteg\data\version_5_3.txt .\romdrive\system\data\sisregistry_5.3.txt > NUL
  1977 call interpretsis -z .\romdrive -c .\cdrive -s \epoc32\winscw\c\tswi\tinterpretsisinteg\data\simple.sis -w info -l \epoc32\winscw\c\interpretsis_test_harness.txt > NUL
  1977 call interpretsis -z .\romdrive -c .\cdrive -s \epoc32\winscw\c\tswi\tinterpretsisinteg\data\simple.sis -w info -l \epoc32\winscw\c\interpretsis_test_harness.txt > NUL
  1978 if not %errorlevel%==0 GOTO LAST
  1978 if not %errorlevel%==0 GOTO LAST
  1979 call fc .\cdrive\sys\install\sisregistry\80000001\00000000.reg \epoc32\winscw\c\tswi\tinterpretsisinteg\data\80000001_53\00000000.reg | find "FC: no differences encountered" > NUL
  1979 call fc /c  .\cdrive\sys\install\sisregistry\80000001\00000000.reg \epoc32\winscw\c\tswi\tinterpretsisinteg\data\80000001_53\00000000.reg | find "FC: no differences encountered" > NUL
  1980 if not %errorlevel%==0 GOTO LAST
  1980 if not %errorlevel%==0 GOTO LAST
  1981 ECHO ***ERRORCODE*** %errorlevel% PASS>>\epoc32\winscw\c\interpretsis_test_harness.txt
  1981 ECHO ***ERRORCODE*** %errorlevel% PASS>>\epoc32\winscw\c\interpretsis_test_harness.txt
  1982 GOTO PASS_CLEAN
  1982 GOTO PASS_CLEAN
  1983 
  1983 
  1984 
  1984 
  2501 if not exist .\edrive mkdir .\edrive > NUL
  2501 if not exist .\edrive mkdir .\edrive > NUL
  2502 call interpretsis -z .\romdrive -c .\cdrive -s \epoc32\winscw\c\tswi\tinterpretsisinteg\data\ruromupgraderucertsa_diffdrive_h4_sucert.sis +e +mcard +sucert -w info -l \epoc32\winscw\c\interpretsis_test_harness.txt -i \epoc32\winscw\c\tswi\tinterpretsisinteg\data\config-drives.ini > NUL
  2502 call interpretsis -z .\romdrive -c .\cdrive -s \epoc32\winscw\c\tswi\tinterpretsisinteg\data\ruromupgraderucertsa_diffdrive_h4_sucert.sis +e +mcard +sucert -w info -l \epoc32\winscw\c\interpretsis_test_harness.txt -i \epoc32\winscw\c\tswi\tinterpretsisinteg\data\config-drives.ini > NUL
  2503 if not %errorlevel%==0 GOTO LAST
  2503 if not %errorlevel%==0 GOTO LAST
  2504 set exist_file=.\edrive\private\10202dce\802730A9_0.sis
  2504 set exist_file=.\edrive\private\10202dce\802730A9_0.sis
  2505 if not exist %exist_file% GOTO FAIL_NOT_FOUND
  2505 if not exist %exist_file% GOTO FAIL_NOT_FOUND
  2506 call fc .\edrive\private\10202dce\802730A9_0.sis \epoc32\winscw\c\tswi\tinterpretsisinteg\data\802730A9_0.sis | find "FC: no differences encountered" > NUL
  2506 call fc /c  .\edrive\private\10202dce\802730A9_0.sis \epoc32\winscw\c\tswi\tinterpretsisinteg\data\802730A9_0.sis | find "FC: no differences encountered" > NUL
  2507 if not %errorlevel%==0 GOTO LAST
  2507 if not %errorlevel%==0 GOTO LAST
  2508 ECHO ***ERRORCODE*** %errorlevel% PASS>>\epoc32\winscw\c\interpretsis_test_harness.txt
  2508 ECHO ***ERRORCODE*** %errorlevel% PASS>>\epoc32\winscw\c\interpretsis_test_harness.txt
  2509 GOTO PASS_CLEAN
  2509 GOTO PASS_CLEAN
  2510 
  2510 
  2511 
  2511