Symbian3/PDK/Source/GUID-FFDD3689-A83B-5E67-A2BD-7723B141E198.dita
changeset 1 25a17d01db0c
child 3 46218c8b8afa
equal deleted inserted replaced
0:89d6a7a84779 1:25a17d01db0c
       
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
       
     3 <!-- This component and the accompanying materials are made available under the terms of the License 
       
     4 "Eclipse Public License v1.0" which accompanies this distribution, 
       
     5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
       
     6 <!-- Initial Contributors:
       
     7     Nokia Corporation - initial contribution.
       
     8 Contributors: 
       
     9 -->
       
    10 <!DOCTYPE concept
       
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
       
    12 <concept id="GUID-FFDD3689-A83B-5E67-A2BD-7723B141E198" xml:lang="en"><title> FAT32
       
    13 Conformance Test Suite</title><shortdesc>Describes the FAT32 conformance test suite.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
       
    14 <section id="GUID-3531B60A-500A-47E6-A5FB-ADF7C6076432"><title>Test Suite Overview</title> <p>The FAT32 Conformance Test
       
    15 Suite ensures conformance with various functionality provided by the implementation
       
    16 of FAT32. This includes verification of FAT32 parameters as defined by the <i>Microsoft
       
    17 Extensible Firmware Initiative FAT32 System Specification</i> (refer the <xref href="http://www.microsoft.com/whdc/system/platform/firmware/fatgen.mspx" scope="external">Microsoft</xref> Web site). </p> </section>
       
    18 <section id="GUID-23ADBF26-7FED-4091-BC2E-770B9F4A1829"><title>Test Approach</title> <p>The test suite attempts to validate
       
    19 all the FAT32 parameters in the boot sector, the FAT table and the FSInfo
       
    20 sector. It ensures that these fields contain correct values and that the system
       
    21 handles the introduction of incorrect values by generating appropriate errors. </p> <p>This
       
    22 suite tests the File Allocation Table and its integrity in various conditions.
       
    23 For example, attempts are made to access clusters that are beyond the legal
       
    24 cluster bounds, to fill the disk to its maximum capacity and to remove the
       
    25 media while operations are taking place. </p> <p>Negative testing is be performed
       
    26 where applicable to confirm that errors are returned as documented. </p> <p>All
       
    27 tests except the final test, <codeph>REMOVEMEDIA</codeph>, are automated.
       
    28 The final test case requires user intervention to remove a memory card when
       
    29 advised. </p> </section>
       
    30 <section id="GUID-9C7445B4-13D3-4249-84B0-4A85E37DADFC"><title>Coverage Omissions</title> <p>The following are not tested: </p> <ul>
       
    31 <li id="GUID-88D14F05-7D03-58DA-835D-3EA2EFD489AC"><p>Fields specific to the
       
    32 FAT16 and FAT12 implementation. </p> </li>
       
    33 <li id="GUID-4CECA041-8835-54EE-A002-4DEB81DD56F0"><p>Name limits and character
       
    34 sets. </p> </li>
       
    35 </ul> </section>
       
    36 <section id="GUID-60CA0A75-7A09-4EEC-970D-2451FE03B54A"><title> Test Suite Details</title> <p><b>Test
       
    37 Script Source Tree Location</b> </p> <p>Descriptions of the test cases that
       
    38 is, test script can be found at the following location: </p> <p> <filepath>...\baseapitest\basesvs\conformance\f32\fat32\scripts\f32-fat32-conformance.script</filepath>. </p> <p><b>Test
       
    39 Script EPOC tree Location</b> </p> <p>When the tests are built for emulator
       
    40 or hardware (winscw/armv5), the script is exported into the following location
       
    41 in the epoc tree: <filepath>%EPOCROOT%\epoc32\data\Z\base\conformance\f32\fat32</filepath>. </p> <p><b>Test Script Build Location</b> </p> <p>When the tests are built, the script
       
    42 is built into the following location: </p> <p> <filepath>%EPOCROOT%\epoc32\release\&lt;winscw|armv5&gt;\&lt;udeb|urel&gt;\Z\base\conformance\f32\fat32\</filepath> </p> <p><note> When the tests are built to be executed on hardware the files
       
    43 are built into the z: drive of the ROM. </note></p> <p id="GUID-D0F57E8A-9AF1-57E4-BA22-3FE4AB49E8F9"><b> Test Data Source Tree Location</b> </p> <p>The
       
    44 test suite contains following test data file: </p> <p> <filepath>...\baseapitest\basesvs\conformance\f32\fat32\testdata\&lt;winscw|armv5&gt;\f32-fat32-conformance.ini</filepath> </p> <p><note> This test suite is only available for Symbian OS v9.4 and
       
    45 later versions.</note> </p> <p id="GUID-8654BC4C-FF04-53BD-8982-1866A0F45BB0"><b>Test Data Files EPOC Tree
       
    46 Location</b> </p> <p>When the tests are built for emulator or hardware (winscw/armv5),
       
    47 the data file is exported into the following location in the epoc tree: <filepath>%EPOCROOT%\epoc32\data\Z\base\conformance\f32\fat32\</filepath>. </p> <p><b>Test
       
    48 Data Files Emulator Location</b> </p> <p>When the tests are built, the test
       
    49 data file are built into the following location: <filepath>%EPOCROOT%\epoc32\release\winscw\&lt;udeb/urel&gt;\Z\base\conformance\f32\fat32\</filepath>. </p> <p> <note> When the tests are built to be executed on hardware the
       
    50 files are built into the z: drive of the ROM </note></p> <p><b>Test .driver File</b> </p> <p>The <filepath>base.driver</filepath> file
       
    51 found in <filepath>...\baseapitest\basesvs\testsuites\base\</filepath> is
       
    52 used by the test driver to construct the test suite tree structure and export
       
    53 all the appropriate files to the correct location in the epoc32 tree and on
       
    54 the device. </p> <p>When the tests are built, the <filepath>.driver</filepath> file
       
    55 can be found in the following location: <filepath>%EPOCROOT%\epoc32\testdriver\testproduct\</filepath>. </p> <p id="GUID-72714310-D4B3-5077-89C6-D7B8D4FFC5F7"><b>TCS File Source Location</b> </p> <p>The <filepath>.tcs</filepath> file
       
    56 is found in the following location: </p> <p> <filepath>...\baseapitest\basesvs\config\t_base.tcs</filepath>  </p> <p><b>TCS File Build Location</b> </p> <p>When the tests are built, the script
       
    57 is generated in the following location: </p> <p> <filepath>%EPOCROOT%\epoc32\release\&lt;winscw|armv5&gt;\&lt;udeb|urel&gt;\Z\base\</filepath> </p> <p><note> When the tests are built to be executed on hardware, the files are built
       
    58 into the <filepath>z:</filepath> drive of the ROM.</note> </p> </section>
       
    59 <section id="GUID-247E06DA-44C0-4E4C-AF85-812848981B09"><title>Test Environment and Execution</title> <p><b>General
       
    60 Test environment</b> </p> <p>The test suite has the following environment
       
    61 requirements: </p> <ul>
       
    62 <li id="GUID-AB5E3784-183F-546A-AF4E-4DFD92115D9E"><p>Removable media must
       
    63 have a FAT32 file system </p> </li>
       
    64 <li id="GUID-75853F65-951B-5F70-85A2-22F890D88F8A"><p>The minimum size of
       
    65 SD card acceptable for FAT32 is 2GB. For MMC and other forms of removable
       
    66 media the minimum size is 512MB. </p> </li>
       
    67 <li id="GUID-BFCB5D33-7EC7-57E6-99D6-8D18B8996BF8"><p>The card must be inserted
       
    68 before test suite execution. </p> </li>
       
    69 <li id="GUID-353FA700-1920-5F16-BC48-3A439711142D"><p>If testing on an emulator
       
    70 (WINSCW) the size of the emulated memory card can be changed by modifying
       
    71 the epoc.ini file. This file can be found in <filepath>%EPOCROOT%\epoc32\data\</filepath>. </p> <p>For
       
    72 example, MultiMediaCardSize=1048510 sets the size to 1GB </p> </li>
       
    73 </ul> <p>Refer to <xref href="GUID-3C26B5B2-1B90-5F96-9342-1D53F6EDD94F.dita">Base
       
    74 F32 Test Technology</xref> for general environment details. </p> <p><b>How to create error logs</b> </p> <p>File System logging is switched off
       
    75 by default. To turn it on, set the SetDebug field in the Common section of
       
    76 the configuration file (f32-fat32-conformance.ini) to 1. Refer to <xref href="GUID-FFDD3689-A83B-5E67-A2BD-7723B141E198.dita#GUID-FFDD3689-A83B-5E67-A2BD-7723B141E198/GUID-D0F57E8A-9AF1-57E4-BA22-3FE4AB49E8F9">Test Data Source Tree Location</xref> and <xref href="GUID-FFDD3689-A83B-5E67-A2BD-7723B141E198.dita#GUID-FFDD3689-A83B-5E67-A2BD-7723B141E198/GUID-8654BC4C-FF04-53BD-8982-1866A0F45BB0">Test
       
    77 Data Files EPOC Tree Location</xref> for the file locations. </p> <p>File
       
    78 System logging only applies to UDEB builds. The log data output will be sent
       
    79 to a terminal emulation program, such as Hyper Terminal, through a debug port
       
    80 on the hardware board (for H4 this is Com0). </p> <p>The port settings for
       
    81 the terminal emulator are: </p> <ul>
       
    82 <li id="GUID-1D6C7527-F0A0-5907-B9F5-F4DC6B5E55BA"><p>Baud rate: 115200 </p> </li>
       
    83 <li id="GUID-93ADCB50-C1C9-539B-9FE5-4E90EF19B838"><p>Data bits: 8 </p> </li>
       
    84 <li id="GUID-BEB57F93-A4E8-5E4C-9CC7-BB9F1AABA363"><p>Stop bits: 1 </p> </li>
       
    85 <li id="GUID-940A8FC0-0BFE-5A2E-82E7-A17544F81488"><p>Parity: none </p> </li>
       
    86 <li id="GUID-F8F95C83-E88F-5A5B-9F85-CC6A0F3833DE"><p>Flow control: none </p> </li>
       
    87 </ul> <p><b>Test
       
    88 execution instructions</b> </p> <p>For test execution instructions refer to <xref href="GUID-3C26B5B2-1B90-5F96-9342-1D53F6EDD94F.dita">Base F32 Test Technology</xref>.
       
    89 The test suite requires a ROM to be built with FAT32 and SD support. To do
       
    90 this substitute the buildrom step in the Base Test Technology Document with
       
    91 the steps listed below </p> <p> <b>Building ROM for hardware testing</b>  </p> <ol id="GUID-BF114751-755F-5004-B6D7-0BFE204385C0">
       
    92 <li id="GUID-D3586956-26A0-50A3-9789-95E2D90CB88E"><p>Navigate to <codeph>…\epoc32\rom</codeph> and
       
    93 execute one of the following commands: </p> <p>for automated testing using
       
    94 Test Driver: </p> <p><userinput>buildrom –D_STARTUPMODE2 –D_EABI=ARMV5 –DRVCT
       
    95 &lt;h4hrp/h2&gt; –DUSE_SDIO_SD_MMC –DWITH_FAT32 techview_statapi</userinput> </p> <p>for
       
    96 manual testing (without Test Driver): </p> <p><userinput>buildrom -D_STARTUPMODE2
       
    97 -D_NAND2 &lt;h4hrp/h2&gt; techview t_base</userinput> </p> </li>
       
    98 <li id="GUID-BFF2FD8F-237A-5652-BAEB-B26B7B3B5A4E"><p>To transfer the image
       
    99 onto the hardware board through MMC card zip the image file and rename it <filepath>sys$rom.zip</filepath>.
       
   100 Place the zipped file on an MMC card and start the board. </p> </li>
       
   101 </ol> </section>
       
   102 </conbody></concept>