os/textandloc/fontservices/fontstore/group/FntstoreTest.iby
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/textandloc/fontservices/fontstore/group/FntstoreTest.iby	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,131 @@
     1.4 +/*
     1.5 +* Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: 
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +#ifndef __FNTSTORETEST_IBY__
    1.23 +#define __FNTSTORETEST_IBY__
    1.24 +
    1.25 +#include <graphics_testharness.iby>
    1.26 +#include <dummyfonts.iby>
    1.27 +#ifdef GRAPHICS_EXCLUDE_FREETYPE
    1.28 +#include <ityperast.iby>
    1.29 +#endif
    1.30 +
    1.31 +// batch file that runs all automatic fntstore tests
    1.32 +data=DATAZ_\fntstoretest\fntstoretest_run.bat		\fntstoretest_run.bat
    1.33 +data=DATAZ_\fntstoretest\fntstoretest.bat			\fntstoretest.bat
    1.34 +
    1.35 +//script files
    1.36 +data=DATAZ_\fntstoretest\fntstoretest_T_All.script				\fntstoretest\fntstoretest_T_All.script
    1.37 +data=DATAZ_\fntstoretest\fntstoretest_T_Fnt.script						\fntstoretest\fntstoretest_T_Fnt.script
    1.38 +data=DATAZ_\fntstoretest\fntstoretest_T_FntMem.script					\fntstoretest\fntstoretest_T_FntMem.script
    1.39 +data=DATAZ_\fntstoretest\fntstoretest_T_FontBitmap.script				\fntstoretest\fntstoretest_T_FontBitmap.script
    1.40 +data=DATAZ_\fntstoretest\fntstoretest_T_FsOpen.script					\fntstoretest\fntstoretest_T_FsOpen.script
    1.41 +data=DATAZ_\fntstoretest\fntstoretest_T_GlyphTreeDel.script				\fntstoretest\fntstoretest_T_GlyphTreeDel.script
    1.42 +data=DATAZ_\fntstoretest\fntstoretest_T_MatchFonts.script				\fntstoretest\fntstoretest_T_MatchFonts.script
    1.43 +data=DATAZ_\fntstoretest\fntstoretest_T_OpenFontTypes.script			\fntstoretest\fntstoretest_T_OpenFontTypes.script
    1.44 +data=DATAZ_\fntstoretest\fntstoretest_T_FontMetrics.script				\fntstoretest\fntstoretest_T_FontMetrics.script
    1.45 +data=DATAZ_\fntstoretest\fntstoretest_T_GetNearestFont.script			\fntstoretest\fntstoretest_T_GetNearestFont.script
    1.46 +data=DATAZ_\fntstoretest\fntstoretest_t_getnearestfontcapability.script	\fntstoretest\fntstoretest_t_getnearestfontcapability.script
    1.47 +data=DATAZ_\fntstoretest\fntstoretest_T_CorruptFonts.script				\fntstoretest\fntstoretest_T_CorruptFonts.script
    1.48 +data=DATAZ_\fntstoretest\fntstoretest_T_ShaperCache.script				\fntstoretest\fntstoretest_T_ShaperCache.script
    1.49 +data=DATAZ_\fntstoretest\fntstoretest_T_LinkedFonts.script				\fntstoretest\fntstoretest_T_LinkedFonts.script
    1.50 +data=DATAZ_\fntstoretest\fntstoretest_t_cachedeletion.script			\fntstoretest\fntstoretest_t_cachedeletion.script
    1.51 +data=DATAZ_\fntstoretest\fntstoretest_t_setdefaulttypefacename.script	\fntstoretest\fntstoretest_t_setdefaulttypefacename.script
    1.52 +data=DATAZ_\fntstoretest\fntstoretest_T_LinkedFontUpdateInitial.script	\fntstoretest\fntstoretest_T_LinkedFontUpdateInitial.script
    1.53 +data=DATAZ_\fntstoretest\fntstoretest_T_LinkedFontUpdateStage1.script	\fntstoretest\fntstoretest_T_LinkedFontUpdateStage1.script
    1.54 +data=DATAZ_\fntstoretest\fntstoretest_T_LinkedFontUpdateStage2.script	\fntstoretest\fntstoretest_T_LinkedFontUpdateStage2.script
    1.55 +data=DATAZ_\fntstoretest\fntstoretest_T_Cache.script			\fntstoretest\fntstoretest_T_Cache.script
    1.56 +data=DATAZ_\fntstoretest\fntstoretest_T_FontSessionCache.script			\fntstoretest\fntstoretest_T_FontSessionCache.script
    1.57 +
    1.58 +// FntStore test code - TFntStoreServer.exe needs to be copied into \sys\bin\ and set as data so it will be copied to the c: drive and we can change the capabilities of the .exe
    1.59 +data=ABI_DIR\DEBUG_DIR\TFntStoreServer.exe    \sys\bin\TFntStoreServer.exe
    1.60 +//file=ABI_DIR\DEBUG_DIR\TFntStoreServer.exe    \sys\bin\TFntStoreServer.exe
    1.61 +file=ABI_DIR\DEBUG_DIR\tcachedeletionprocess.exe    \sys\bin\tcachedeletionprocess.exe
    1.62 +file=ABI_DIR\DEBUG_DIR\tfontsessioncacheproc.exe	\sys\bin\tfontsessioncacheproc.exe
    1.63 +
    1.64 +// 7650 font which should be compatible with new font compression
    1.65 +
    1.66 +ROM_IMAGE[0] {
    1.67 +data=ZRESOURCE\Fonts\ceurope.gdr         Resource\Fonts\ceurope.gdr
    1.68 +}
    1.69 +
    1.70 +// font used for testing font loading from C: drive
    1.71 +ROM_IMAGE[0] {
    1.72 +data=ZSYSTEM\test\TSection.gdr         Test\TSection.gdr
    1.73 +}
    1.74 +
    1.75 +REM near-duplicate fonts for test  CTFntMem::TestDuplicateBitmapFontFileEntriesL
    1.76 +ROM_IMAGE[0] {
    1.77 +data=DATAZ_\PlatTest\Graphics\TestData\uniquified_fonts\XXeuro.gdr	\PlatTest\Graphics\TestData\uniquified_fonts\XXeuro.gdr
    1.78 +}
    1.79 +
    1.80 +ROM_IMAGE[0] {
    1.81 +data=DATAZ_\PlatTest\Graphics\TestData\uniquified_fonts\YYeuro.gdr	\PlatTest\Graphics\TestData\uniquified_fonts\YYeuro.gdr
    1.82 +}
    1.83 +
    1.84 +
    1.85 +
    1.86 +REM corrupt font files, these get copied / renamed on to the C: drive
    1.87 +ROM_IMAGE[0] {
    1.88 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_gdr_fonts\bad_streamid \PlatTest\Graphics\TestData\corrupt_gdr_fonts\bad_streamid
    1.89 +
    1.90 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\bad_entrysel \PlatTest\Graphics\TestData\corrupt_ttf_fonts\bad_entrysel
    1.91 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\bad_length \PlatTest\Graphics\TestData\corrupt_ttf_fonts\bad_length
    1.92 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\bad_numtables \PlatTest\Graphics\TestData\corrupt_ttf_fonts\bad_numtables
    1.93 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\bad_offset \PlatTest\Graphics\TestData\corrupt_ttf_fonts\bad_offset
    1.94 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\bad_rangeshift \PlatTest\Graphics\TestData\corrupt_ttf_fonts\bad_rangeshift
    1.95 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\bad_searchrange \PlatTest\Graphics\TestData\corrupt_ttf_fonts\bad_searchrange
    1.96 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\bad_tag_order \PlatTest\Graphics\TestData\corrupt_ttf_fonts\bad_tag_order
    1.97 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\cvt_len \PlatTest\Graphics\TestData\corrupt_ttf_fonts\cvt_len
    1.98 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\fpgm_len \PlatTest\Graphics\TestData\corrupt_ttf_fonts\fpgm_len
    1.99 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\glyf_len \PlatTest\Graphics\TestData\corrupt_ttf_fonts\glyf_len
   1.100 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\head_len \PlatTest\Graphics\TestData\corrupt_ttf_fonts\head_len
   1.101 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\hhea_len \PlatTest\Graphics\TestData\corrupt_ttf_fonts\hhea_len
   1.102 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\hmtx_len \PlatTest\Graphics\TestData\corrupt_ttf_fonts\hmtx_len
   1.103 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\loca_len \PlatTest\Graphics\TestData\corrupt_ttf_fonts\loca_len
   1.104 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\maxp_len \PlatTest\Graphics\TestData\corrupt_ttf_fonts\maxp_len
   1.105 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\name_len \PlatTest\Graphics\TestData\corrupt_ttf_fonts\name_len
   1.106 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\post_len \PlatTest\Graphics\TestData\corrupt_ttf_fonts\post_len
   1.107 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\prep_len \PlatTest\Graphics\TestData\corrupt_ttf_fonts\prep_len
   1.108 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\cmap_len \PlatTest\Graphics\TestData\corrupt_ttf_fonts\cmap_len
   1.109 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\gdef_len \PlatTest\Graphics\TestData\corrupt_ttf_fonts\gdef_len
   1.110 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\gpos_len \PlatTest\Graphics\TestData\corrupt_ttf_fonts\gpos_len
   1.111 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\gsub_len \PlatTest\Graphics\TestData\corrupt_ttf_fonts\gsub_len
   1.112 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\os2_len \PlatTest\Graphics\TestData\corrupt_ttf_fonts\os2_len
   1.113 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\gasp_len \PlatTest\Graphics\TestData\corrupt_ttf_fonts\gasp_len
   1.114 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\fftm_len \PlatTest\Graphics\TestData\corrupt_ttf_fonts\fftm_len
   1.115 +data=DATAZ_\PlatTest\Graphics\TestData\corrupt_ttf_fonts\wrong_offset \PlatTest\Graphics\TestData\corrupt_ttf_fonts\wrong_offset
   1.116 +}
   1.117 +
   1.118 +REM file of hash values for linked fonts testing
   1.119 +#ifndef GRAPHICS_EXCLUDE_FREETYPE
   1.120 +data=DATAZ_\fntstoretest\tlinkedfontscomparison_armv5.ini \fntstoretest\tlinkedfontscomparison.ini
   1.121 +#else
   1.122 +data=DATAZ_\fntstoretest\tlinkedfontscomparison_armv5_itype.ini \fntstoretest\tlinkedfontscomparison.ini
   1.123 +#endif
   1.124 +
   1.125 +data=DATAZ_\fntstoretest\tlinkedfontscapability.ini \fntstoretest\tlinkedfontscapability.ini
   1.126 +data=DATAZ_\fntstoretest\tsetdefaulttypefacename.ini \fntstoretest\tsetdefaulttypefacename.ini
   1.127 +
   1.128 +REM Executables for T_Fnt.cpp Invalid font fallback tests
   1.129 +
   1.130 +file=ABI_DIR\BUILD_DIR\T_WriteInvalidFontFile.exe 	sys/bin/T_WriteInvalidFontFile.exe
   1.131 +file=ABI_DIR\BUILD_DIR\T_RemoveInvalidFontFile.exe 	sys/bin/T_RemoveInvalidFontFile.exe
   1.132 +
   1.133 +
   1.134 +#endif	//__FNTSTORETEST_IBY__