os/boardsupport/haitest/bspsvs/suite/bsp/mmc/scripts/BASE-BSP-SD-STACK-DRIVER-MANUAL.script
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 //
     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".
     8 //
     9 // Initial Contributors:
    10 // Nokia Corporation - initial contribution.
    11 //
    12 // Contributors:
    13 //
    14 // Description:
    15 //
    16 
    17 LOAD_SUITE	T_mmcsd -SharedData
    18 
    19 
    20 START_TESTCASE			BASE-BSP-SD-DRIVER-MANUALStack-0001
    21 //! @SYMTestCaseID		BASE-BSP-SD-DRIVER-MANUALStack-0001
    22 //! @SYMAPI			User::LoadLogicalDevice(const TDesC {ref});
    23 //! @SYMAuthor			Matt Flowers
    24 //! @SYMCreationDate		17/04/2008
    25 //! @SYMTestCaseDesc		Load Logical Device Driver.
    26 //! @SYMTestActions    		Load D_MMCSDIF LDD Driver
    27 //! @SYMTestStatus		Implemented
    28 //! @SYMTestPriority		high
    29 //! @SYMTestExpectedResults  	KErrNone
    30 //! @SYMTestType		CIT
    31 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-STACK-DRIVER-MANUAL.ini
    32 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
    33 		COMMAND		mmcsdsession1	NewL
    34 		COMMAND		mmcsdsession1	LoadDriver		BASE-BSP-SD-DRIVER-MANUALStack-0001-001-LoadDriver_command02
    35 		COMMAND		mmcsdsession1	~
    36 	END_TEST_BLOCK
    37 END_TESTCASE			BASE-BSP-SD-DRIVER-MANUALStack-0001
    38 
    39 START_TESTCASE			BASE-BSP-SD-DRIVER-MANUALStack-0002
    40 //! @SYMTestCaseID		BASE-BSP-SD-DRIVER-MANUALStack-0002
    41 //! @SYMAPI			DMMCStack::HasCardsPresent();
    42 //! @SYMAuthor			Matt Flowers
    43 //! @SYMCreationDate		06/05/2008
    44 //! @SYMTestCaseDesc		Has Cards Present Test - Test whether any cards are present on the stack.
    45 //! @SYMTestActions    		1. Create RMMCSDTestControllerInterface Handle object.
    46 //!				2. Open the driver connection
    47 //!				3. Get whether any cards are present on the stack
    48 //!				4. Destroy the object
    49 //! @SYMTestStatus		Implemented
    50 //! @SYMTestPriority		high
    51 //! @SYMTestExpectedResults  	Cards Present status correctly returned with no errors.
    52 //! @SYMTestType		CIT
    53 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-STACK-DRIVER-MANUAL.ini
    54 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
    55 		CREATE_OBJECT	MMCSDStack	mmcsdstack1
    56 		COMMAND		mmcsdsession1	NewL
    57 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-DRIVER-MANUALStack-0002-001-DriverOpen_command01
    58 		COMMAND		mmcsdstack1	NewL			BASE-BSP-SD-DRIVER-MANUALStack-0002-001-NewL_command02
    59 		COMMAND		mmcsdstack1	utilityPromptMessage	BASE-BSP-SD-DRIVER-MANUALStack-0002-001-PromptUser_command03
    60 		COMMAND 	mmcsdstack1	HasCardsPresent		BASE-BSP-SD-DRIVER-MANUALStack-0002-001-HasCardsPresent_command04
    61 		COMMAND		mmcsdsession1	Close
    62 		COMMAND		mmcsdstack1	~
    63 		COMMAND		mmcsdsession1	~
    64 	END_TEST_BLOCK
    65 END_TESTCASE			BASE-BSP-SD-DRIVER-MANUALStack-0002
    66 
    67 START_TESTCASE			BASE-BSP-SD-DRIVER-MANUALStack-0003
    68 //! @SYMTestCaseID		BASE-BSP-SD-DRIVER-MANUALStack-0003
    69 //! @SYMAPI			DMMCStack::Init();
    70 //! @SYMAuthor			Matt Flowers
    71 //! @SYMCreationDate		16/05/2008
    72 //! @SYMTestCaseDesc		Initialise test - Initialise the generic MMC stack
    73 //! @SYMTestActions 		1. Create RMMCSDTestControllerInterface Handle object.
    74 //!				2. Open the driver connection
    75 //!				3. Initialise the generic MMC stack
    76 //!				4. Ask user to eject and reinsert card
    77 //!				5. Destroy the object
    78 //! @SYMTestStatus		Implemented
    79 //! @SYMTestPriority		high
    80 //! @SYMTestExpectedResults	MMC stack initialised with no error.
    81 //! @SYMTestType		CIT
    82 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-STACK-DRIVER-MANUAL.ini
    83 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
    84 		CREATE_OBJECT	MMCSDStack	mmcsdstack1
    85 		COMMAND		mmcsdsession1	NewL
    86 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-DRIVER-MANUALStack-0003-001-DriverOpen_command01
    87 		COMMAND		mmcsdstack1	NewL			BASE-BSP-SD-DRIVER-MANUALStack-0003-001-NewL_command02
    88 		COMMAND		mmcsdstack1	Init
    89 		COMMAND		mmcsdstack1	utilityPromptMessage	BASE-BSP-SD-DRIVER-MANUALStack-0003-001-PromptUser_command04
    90 		COMMAND		mmcsdsession1	Close
    91 		COMMAND		mmcsdstack1	~
    92 		COMMAND		mmcsdsession1	~
    93 	END_TEST_BLOCK
    94 END_TESTCASE			BASE-BSP-SD-DRIVER-MANUALStack-0003
    95 
    96 START_TESTCASE			BASE-BSP-SD-DRIVER-MANUALStack-0004
    97 //! @SYMTestCaseID		BASE-BSP-SD-DRIVER-MANUALStack-0004
    98 //! @SYMAPI			DMMCStack::Init();
    99 //! @SYMAuthor			Matt Flowers
   100 //! @SYMCreationDate		16/05/2008
   101 //! @SYMTestCaseDesc		Initialise test - Initialise the generic MMC stack
   102 //! @SYMTestActions 		1. Create RMMCSDTestControllerInterface Handle object.
   103 //!				2. Open the driver connection
   104 //!				3. Initialise the generic MMC stack
   105 //!				4. Ask user to eject and reinsert card
   106 //!				5. Destroy the object
   107 //! @SYMTestStatus		Implemented
   108 //! @SYMTestPriority		high
   109 //! @SYMTestExpectedResults	MMC stack initialised with error KErrInUse.
   110 //! @SYMTestType		CIT
   111 	START_TEST_BLOCK		100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-STACK-DRIVER-MANUAL.ini
   112 		CREATE_OBJECT		MMCSDSession	mmcsdsession1
   113 		CREATE_OBJECT		MMCSDStack	mmcsdstack1
   114 		COMMAND			mmcsdsession1	NewL
   115 		COMMAND			mmcsdsession1	DriverOpen		BASE-BSP-SD-DRIVER-MANUALStack-0004-001-DriverOpen_command01
   116 		COMMAND			mmcsdstack1	NewL			BASE-BSP-SD-DRIVER-MANUALStack-0004-001-NewL_command02
   117 		COMMAND	!Error=-14	mmcsdstack1	Init
   118 		COMMAND			mmcsdstack1	utilityPromptMessage	BASE-BSP-SD-DRIVER-MANUALStack-0004-001-PromptUser_command04
   119 		COMMAND			mmcsdsession1	Close
   120 		COMMAND			mmcsdstack1	~
   121 		COMMAND			mmcsdsession1	~
   122 	END_TEST_BLOCK
   123 END_TESTCASE			BASE-BSP-SD-DRIVER-MANUALStack-0004
   124 
   125 START_TESTCASE			BASE-BSP-SD-DRIVER-MANUALStack-0005
   126 //! @SYMTestCaseID		BASE-BSP-SD-DRIVER-MANUALStack-0005
   127 //! @SYMAPI			DMMCStack::HasCardsPresent();
   128 //! @SYMAuthor			Matt Flowers
   129 //! @SYMCreationDate		06/05/2008
   130 //! @SYMTestCaseDesc		Has Cards Present Test - Test whether any cards are present on the stack.
   131 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   132 //!				2. Open the driver connection
   133 //!				3. Get whether any cards are present on the stack
   134 //!				4. Destroy the object
   135 //! @SYMTestStatus		Implemented
   136 //! @SYMTestPriority		high
   137 //! @SYMTestExpectedResults	Cards Present status correctly returned with no errors.
   138 //! @SYMTestType		CIT
   139 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-STACK-DRIVER-MANUAL.ini
   140 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   141 		CREATE_OBJECT	MMCSDStack	mmcsdstack1
   142 		COMMAND		mmcsdsession1	NewL
   143 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-DRIVER-MANUALStack-0005-001-DriverOpen_command01
   144 		COMMAND		mmcsdstack1	NewL			BASE-BSP-SD-DRIVER-MANUALStack-0005-001-NewL_command02
   145 		COMMAND		mmcsdstack1	utilityPromptMessage	BASE-BSP-SD-DRIVER-MANUALStack-0005-001-PromptUser_command03
   146 		COMMAND		mmcsdstack1	HasCardsPresent		BASE-BSP-SD-DRIVER-MANUALStack-0005-001-HasCardsPresent_command04
   147 		COMMAND		mmcsdstack1	utilityPromptMessage	BASE-BSP-SD-DRIVER-MANUALStack-0005-001-PromptUser_command05
   148 		COMMAND		mmcsdstack1	HasCardsPresent		BASE-BSP-SD-DRIVER-MANUALStack-0005-001-HasCardsPresent_command06
   149 		COMMAND		mmcsdstack1	utilityPromptMessage	BASE-BSP-SD-DRIVER-MANUALStack-0005-001-PromptUser_command07
   150 		COMMAND		mmcsdstack1	HasCardsPresent		BASE-BSP-SD-DRIVER-MANUALStack-0005-001-HasCardsPresent_command08
   151 		COMMAND		mmcsdsession1	Close
   152 		COMMAND		mmcsdstack1	~
   153 		COMMAND		mmcsdsession1	~
   154 	END_TEST_BLOCK
   155 END_TESTCASE			BASE-BSP-SD-DRIVER-MANUALStack-0005
   156 
   157 START_TESTCASE			BASE-BSP-SD-DRIVER-MANUALStack-0006
   158 //! @SYMTestCaseID		BASE-BSP-SD-DRIVER-MANUALStack-0006
   159 //! @SYMAPI			FreeLogicalDevice(const TDesC {ref});
   160 //! @SYMAuthor			James Mechen
   161 //! @SYMCreationDate		17/04/2008
   162 //! @SYMTestCaseDesc		Free the Logical Device Driver
   163 //! @SYMTestActions		Free the D_MMCSDIF LDD Driver
   164 //! @SYMTestStatus		Implemented
   165 //! @SYMTestPriority		high
   166 //! @SYMTestExpectedResults  	logical device driver unloaded.
   167 //! @SYMTestType		CIT
   168 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-STACK-DRIVER-MANUAL.ini
   169 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   170 		COMMAND		mmcsdsession1	NewL
   171 		COMMAND		mmcsdsession1	UnLoadDriver		BASE-BSP-SD-DRIVER-MANUALStack-0006-001-UnloadDriver_command02
   172 		COMMAND		mmcsdsession1	~
   173 	END_TEST_BLOCK
   174 END_TESTCASE			BASE-BSP-SD-DRIVER-MANUALStack-0006