os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-File-PublicApi-NAND.script
First public contribution.
2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
3 // All rights reserved.
4 // This component and the accompanying materials are made available
5 // under the terms of "Eclipse Public License v1.0"
6 // which accompanies this distribution, and is available
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
17 //! @SYMTestSuiteName PBASE-F32-File-PublicApi-NAND
18 //! @SYMScriptTestEnvironment This test script requires a Pagged ROM.
19 //! So tests has to be run on Pagged ROM.This tests is good tests only on H/w on which the memory is pagaed.
20 //! On emulator these tests will not return proper value/so it can be ignored.
21 //! @SYMScriptCreationDate 27/08/2007
22 //! @SYMScriptDescription The test script contains API tests for the following functions of RFile class:
23 //! TInt BlockMap(SBlockMapInfo &aInfo, TInt64 &aStartPos, TInt64 aEndPos=-1, TInt aBlockMapusage=EBlockMapUsagePaging) const;
35 START_TESTCASE PBASE-F32-File-PublicApi-6001
36 //! @SYMTestCaseID PBASE-F32-File-PublicApi-6001
38 //! @SYMTestCaseDesc Function BlockMap() test, replace a file and then call BlockMap() on it to get the block/cluster Information
39 //! Uses API elements: Open(), BlockMap().
40 //! @SYMTestActions 1. Create RFs session.
41 //! 2. Call RFile::Replace()
42 //! 4. Call RFile::BlockMap().
47 //! @SYMTestStatus Implemented
48 //! @SYMTestPriority Critical
49 //! @SYMTestExpectedResults The tests returns KErrNotSupported on the Rom which is unpaged. On the pagged rom this tests will return
50 //! KErrCompletion if the end of the file is reached.
53 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-File-PublicApi.ini
54 CREATE_OBJECT RFs RFs1
55 CREATE_OBJECT RFile file
59 COMMAND file Open PBASE-F32-File-PublicApi-6001-001-Replace_command003
60 COMMAND !Error=-17 file BlockMap PBASE-F32-File-PublicApi-6001-001-BlockMap_command003
65 END_TESTCASE PBASE-F32-File-PublicApi-6001
68 START_TESTCASE PBASE-F32-File-PublicApi-6002
69 //! @SYMTestCaseID PBASE-F32-File-PublicApi-6002
71 //! @SYMTestCaseDesc Function BlockMap() test. Call BlockMap with Usage ETestDebug
72 //! Uses API elements: Open(), BlockMap().
73 //! @SYMTestActions 1. Create RFs session.
74 //! 2. Call RFile::Replace() to create file tc0002 with EFileWrite
75 //! 4. Call RFile::BlockMap() passing EBlockMapUsagePaging for usage, 0 for startPos.
80 //! @SYMTestStatus Implemented
81 //! @SYMTestPriority Critical
82 //! @SYMTestExpectedResults The tests returns KErrNotSupported on the Rom which is unpaged. On the pagged rom this tests will return
83 //! KErrCompletion if the end of the file is reached.
86 START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-File-PublicApi.ini
87 CREATE_OBJECT RFs RFs1
88 CREATE_OBJECT RFile file
92 COMMAND file Open PBASE-F32-File-PublicApi-6002-001-Replace_command003
93 COMMAND !Error=-17 file BlockMap PBASE-F32-File-PublicApi-6002-001-BlockMap_command004
98 END_TESTCASE PBASE-F32-File-PublicApi-6002