os/boardsupport/haitest/bspsvs/suite/bsp/mmc/scripts/BASE-BSP-SD-SOCKET-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.
sl@0
     1
//
sl@0
     2
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
// All rights reserved.
sl@0
     4
// This component and the accompanying materials are made available
sl@0
     5
// under the terms of "Eclipse Public License v1.0"
sl@0
     6
// which accompanies this distribution, and is available
sl@0
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
//
sl@0
     9
// Initial Contributors:
sl@0
    10
// Nokia Corporation - initial contribution.
sl@0
    11
//
sl@0
    12
// Contributors:
sl@0
    13
//
sl@0
    14
// Description:
sl@0
    15
//
sl@0
    16
sl@0
    17
LOAD_SUITE	T_mmcsd
sl@0
    18
sl@0
    19
sl@0
    20
START_TESTCASE			BASE-BSP-SD-DRIVER-MANUALSocket-0001
sl@0
    21
//! @SYMTestCaseID		BASE-BSP-SD-DRIVER-MANUALSocket-0001
sl@0
    22
//! @SYMAPI			User::LoadLogicalDevice(const TDesC {ref});
sl@0
    23
//! @SYMAuthor			James Mechen
sl@0
    24
//! @SYMCreationDate		11/04/2008
sl@0
    25
//! @SYMTestCaseDesc		Load Logical Device Driver.
sl@0
    26
//! @SYMTestActions		Load D_MMCSDIF LDD Driver
sl@0
    27
//! @SYMTestStatus		Implemented
sl@0
    28
//! @SYMTestPriority		high
sl@0
    29
//! @SYMTestExpectedResults	KErrNone
sl@0
    30
//! @SYMTestType		CIT
sl@0
    31
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER-MANUAL.ini
sl@0
    32
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
    33
		COMMAND		mmcsdsession1	NewL
sl@0
    34
		COMMAND		mmcsdsession1	LoadDriver		BASE-BSP-SD-DRIVER-MANUALSocket-0001-001-LoadDriver_command02
sl@0
    35
		COMMAND		mmcsdsession1	~
sl@0
    36
	END_TEST_BLOCK
sl@0
    37
END_TESTCASE			BASE-BSP-SD-DRIVER-MANUALSocket-0001
sl@0
    38
sl@0
    39
START_TESTCASE			BASE-BSP-SD-DRIVER-MANUALSocket-0002
sl@0
    40
//! @SYMTestCaseID		BASE-BSP-SD-DRIVER-MANUALSocket-0002
sl@0
    41
//! @SYMAPI			DMMCSocket::CardIsPresent();
sl@0
    42
//! @SYMAuthor			James Mechen
sl@0
    43
//! @SYMCreationDate		11/04/2008
sl@0
    44
//! @SYMTestCaseDesc		Card Is Present Test - Display if an MMC/SD card is present.
sl@0
    45
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
    46
//!				2. Open the driver connection
sl@0
    47
//!				3. Ask user to make sure card in is drive
sl@0
    48
//!				4. Check that a card is present
sl@0
    49
//!				5. Destroy the object
sl@0
    50
//! @SYMTestStatus		Implemented
sl@0
    51
//! @SYMTestPriority		high
sl@0
    52
//! @SYMTestExpectedResults	A card is present.
sl@0
    53
//! @SYMTestType		CIT
sl@0
    54
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER-MANUAL.ini
sl@0
    55
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
    56
		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
sl@0
    57
		COMMAND		mmcsdsession1	NewL
sl@0
    58
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-DRIVER-MANUALSocket-0002-001-DriverOpen_command01
sl@0
    59
		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-DRIVER-MANUALSocket-0002-001-NewL_command02
sl@0
    60
		COMMAND		mmcsdsocket1	utilityPromptMessage	BASE-BSP-SD-DRIVER-MANUALSocket-0002-001-PromptUser_command03
sl@0
    61
		COMMAND		mmcsdsocket1	CardIsPresent		BASE-BSP-SD-DRIVER-MANUALSocket-0002-001-CardIsPresent_command04
sl@0
    62
		COMMAND		mmcsdsession1	Close
sl@0
    63
		COMMAND		mmcsdsocket1	~
sl@0
    64
		COMMAND		mmcsdsession1	~
sl@0
    65
	END_TEST_BLOCK
sl@0
    66
END_TESTCASE			BASE-BSP-SD-DRIVER-MANUALSocket-0002
sl@0
    67
sl@0
    68
START_TESTCASE			BASE-BSP-SD-DRIVER-MANUALSocket-0003
sl@0
    69
//! @SYMTestCaseID		BASE-BSP-SD-DRIVER-MANUALSocket-0003
sl@0
    70
//! @SYMAPI			DMMCSocket::CardIsPresent();
sl@0
    71
//! @SYMAuthor			James Mechen
sl@0
    72
//! @SYMCreationDate		25/06/2008
sl@0
    73
//! @SYMTestCaseDesc		Card Is Present Test - Display if an MMC/SD card is present.
sl@0
    74
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
    75
//!				2. Open the driver connection
sl@0
    76
//!				3. Ask user to make sure card is not in drive
sl@0
    77
//!				4. Check that a card is not present
sl@0
    78
//!				5. Ask user to make sure card is in drive
sl@0
    79
//!				6. Destroy the object
sl@0
    80
//! @SYMTestStatus		Implemented
sl@0
    81
//! @SYMTestPriority		high
sl@0
    82
//! @SYMTestExpectedResults	A card is not present.
sl@0
    83
//! @SYMTestType		CIT
sl@0
    84
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER-MANUAL.ini
sl@0
    85
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
    86
		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
sl@0
    87
		COMMAND		mmcsdsession1	NewL
sl@0
    88
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-DRIVER-MANUALSocket-0003-001-DriverOpen_command01
sl@0
    89
		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-DRIVER-MANUALSocket-0003-001-NewL_command02
sl@0
    90
		COMMAND		mmcsdsocket1	utilityPromptMessage	BASE-BSP-SD-DRIVER-MANUALSocket-0003-001-PromptUser_command03
sl@0
    91
		COMMAND		mmcsdsocket1	CardIsPresent		BASE-BSP-SD-DRIVER-MANUALSocket-0003-001-CardIsPresent_command04
sl@0
    92
		COMMAND		mmcsdsocket1	utilityPromptMessage	BASE-BSP-SD-DRIVER-MANUALSocket-0003-001-PromptUser_command05
sl@0
    93
		COMMAND		mmcsdsession1	Close
sl@0
    94
		COMMAND		mmcsdsocket1	~
sl@0
    95
		COMMAND		mmcsdsession1	~
sl@0
    96
	END_TEST_BLOCK
sl@0
    97
END_TESTCASE			BASE-BSP-SD-DRIVER-MANUALSocket-0003
sl@0
    98
sl@0
    99
START_TESTCASE			BASE-BSP-SD-DRIVER-MANUALSocket-0004
sl@0
   100
//! @SYMTestCaseID		BASE-BSP-SD-DRIVER-MANUALSocket-0004
sl@0
   101
//! @SYMAPI			DMMCSocket::CardIsPresent();
sl@0
   102
//! @SYMAuthor			James Mechen
sl@0
   103
//! @SYMCreationDate		25/06/2008
sl@0
   104
//! @SYMTestCaseDesc		Card Is Present Test - Display if an MMC/SD card is present.
sl@0
   105
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   106
//!				2. Open the driver connection
sl@0
   107
//!				3. Ask user to make sure card is in drive
sl@0
   108
//!				4. Check that a card is present
sl@0
   109
//!				5. Ask user to make sure card is not in drive
sl@0
   110
//!				6. Check that a card is not present
sl@0
   111
//!				7. Ask user to make sure card is in drive
sl@0
   112
//!				8. Check that a card is present
sl@0
   113
//!				9. Destroy the object
sl@0
   114
//! @SYMTestStatus		Implemented
sl@0
   115
//! @SYMTestPriority		high
sl@0
   116
//! @SYMTestExpectedResults	A card is not present.
sl@0
   117
//! @SYMTestType		CIT
sl@0
   118
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER-MANUAL.ini
sl@0
   119
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   120
		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
sl@0
   121
		COMMAND		mmcsdsession1	NewL
sl@0
   122
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-DRIVER-MANUALSocket-0004-001-DriverOpen_command01
sl@0
   123
		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-DRIVER-MANUALSocket-0004-001-NewL_command02
sl@0
   124
		COMMAND		mmcsdsocket1	utilityPromptMessage	BASE-BSP-SD-DRIVER-MANUALSocket-0004-001-PromptUser_command03
sl@0
   125
		COMMAND		mmcsdsocket1	CardIsPresent		BASE-BSP-SD-DRIVER-MANUALSocket-0004-001-CardIsPresent_command04
sl@0
   126
		COMMAND		mmcsdsocket1	utilityPromptMessage	BASE-BSP-SD-DRIVER-MANUALSocket-0004-001-PromptUser_command05
sl@0
   127
		COMMAND		mmcsdsocket1	CardIsPresent		BASE-BSP-SD-DRIVER-MANUALSocket-0004-001-CardIsPresent_command06
sl@0
   128
		COMMAND		mmcsdsocket1	utilityPromptMessage	BASE-BSP-SD-DRIVER-MANUALSocket-0004-001-PromptUser_command07
sl@0
   129
		COMMAND		mmcsdsocket1	CardIsPresent		BASE-BSP-SD-DRIVER-MANUALSocket-0004-001-CardIsPresent_command08
sl@0
   130
		COMMAND		mmcsdsession1	Close
sl@0
   131
		COMMAND		mmcsdsocket1	~
sl@0
   132
		COMMAND		mmcsdsession1	~
sl@0
   133
	END_TEST_BLOCK
sl@0
   134
END_TESTCASE			BASE-BSP-SD-DRIVER-MANUALSocket-0004
sl@0
   135
sl@0
   136
START_TESTCASE			BASE-BSP-SD-DRIVER-MANUALSocket-0005
sl@0
   137
//! @SYMTestCaseID		BASE-BSP-SD-DRIVER-MANUALSocket-0005
sl@0
   138
//! @SYMAPI			DMMCSocket::CardIsPresent();
sl@0
   139
//! @SYMAuthor			James Mechen
sl@0
   140
//! @SYMCreationDate		25/06/2008
sl@0
   141
//! @SYMTestCaseDesc		Card Is Present Test - Display if an MMC/SD card is present after reset.
sl@0
   142
//! @SYMTestActions    		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   143
//!				2. Open the driver connection
sl@0
   144
//!				3. Reset the socket by powering down the stack
sl@0
   145
//!				4. Ask user to make sure card is in drive
sl@0
   146
//!				5. Check that a card is present
sl@0
   147
//!				6. Destroy the object
sl@0
   148
//! @SYMTestStatus		Implemented
sl@0
   149
//! @SYMTestPriority		high
sl@0
   150
//! @SYMTestExpectedResults	A card is present.
sl@0
   151
//! @SYMTestType		CIT
sl@0
   152
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER-MANUAL.ini
sl@0
   153
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   154
		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
sl@0
   155
		COMMAND		mmcsdsession1	NewL
sl@0
   156
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-DRIVER-MANUALSocket-0005-001-DriverOpen_command01
sl@0
   157
		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-DRIVER-MANUALSocket-0005-001-NewL_command02
sl@0
   158
		COMMAND		mmcsdsocket1	Reset1
sl@0
   159
		COMMAND		mmcsdsocket1	utilityPromptMessage	BASE-BSP-SD-DRIVER-MANUALSocket-0005-001-PromptUser_command04
sl@0
   160
		COMMAND		mmcsdsocket1	CardIsPresent		BASE-BSP-SD-DRIVER-MANUALSocket-0005-001-CardIsPresent_command05
sl@0
   161
		COMMAND		mmcsdsession1	Close
sl@0
   162
		COMMAND		mmcsdsocket1	~
sl@0
   163
		COMMAND		mmcsdsession1	~
sl@0
   164
	END_TEST_BLOCK
sl@0
   165
END_TESTCASE			BASE-BSP-SD-DRIVER-MANUALSocket-0005
sl@0
   166
sl@0
   167
START_TESTCASE			BASE-BSP-SD-DRIVER-MANUALSocket-0006
sl@0
   168
//! @SYMTestCaseID		BASE-BSP-SD-DRIVER-MANUALSocket-0006
sl@0
   169
//! @SYMAPI			DMMCSocket::CardIsPresent();
sl@0
   170
//! @SYMAuthor			James Mechen
sl@0
   171
//! @SYMCreationDate		25/06/2008
sl@0
   172
//! @SYMTestCaseDesc		Card Is Present Test - Display if an MMC/SD card is present after double reset.
sl@0
   173
//! @SYMTestActions    		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   174
//!				2. Open the driver connection
sl@0
   175
//!				3. Reset the socket by powering down the stack
sl@0
   176
//!				4. Reset the socket and free up allocated resources
sl@0
   177
//!				5. Ask user to make sure card is in drive
sl@0
   178
//!				6. Check that a card is present
sl@0
   179
//!				7. Destroy the object
sl@0
   180
//! @SYMTestStatus		Implemented
sl@0
   181
//! @SYMTestPriority		high
sl@0
   182
//! @SYMTestExpectedResults	A card is present.
sl@0
   183
//! @SYMTestType		CIT
sl@0
   184
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER-MANUAL.ini
sl@0
   185
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   186
		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
sl@0
   187
		COMMAND		mmcsdsession1	NewL
sl@0
   188
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-DRIVER-MANUALSocket-0006-001-DriverOpen_command01
sl@0
   189
		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-DRIVER-MANUALSocket-0006-001-NewL_command02
sl@0
   190
		COMMAND		mmcsdsocket1	Reset1
sl@0
   191
		COMMAND		mmcsdsocket1	Reset2
sl@0
   192
		COMMAND		mmcsdsocket1	utilityPromptMessage	BASE-BSP-SD-DRIVER-MANUALSocket-0006-001-PromptUser_command05
sl@0
   193
		COMMAND		mmcsdsocket1	CardIsPresent		BASE-BSP-SD-DRIVER-MANUALSocket-0006-001-CardIsPresent_command06
sl@0
   194
		COMMAND		mmcsdsession1	Close
sl@0
   195
		COMMAND		mmcsdsocket1	~
sl@0
   196
		COMMAND		mmcsdsession1	~
sl@0
   197
	END_TEST_BLOCK
sl@0
   198
END_TESTCASE			BASE-BSP-SD-DRIVER-MANUALSocket-0006
sl@0
   199
sl@0
   200
START_TESTCASE			BASE-BSP-SD-DRIVER-MANUALSocket-0007
sl@0
   201
//! @SYMTestCaseID		BASE-BSP-SD-DRIVER-MANUALSocket-0007
sl@0
   202
//! @SYMAPI			FreeLogicalDevice(const TDesC {ref});
sl@0
   203
//! @SYMAuthor			James Mechen
sl@0
   204
//! @SYMCreationDate		11/04/2008
sl@0
   205
//! @SYMTestCaseDesc		Free the Logical Device Driver
sl@0
   206
//! @SYMTestActions    		Free the D_MMCSDIF LDD Driver
sl@0
   207
//! @SYMTestStatus		Implemented
sl@0
   208
//! @SYMTestPriority		high
sl@0
   209
//! @SYMTestExpectedResults	Displayed Power supply information.
sl@0
   210
//! @SYMTestType		CIT
sl@0
   211
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER-MANUAL.ini
sl@0
   212
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   213
		COMMAND		mmcsdsession1	NewL
sl@0
   214
		COMMAND		mmcsdsession1	UnLoadDriver		BASE-BSP-SD-DRIVER-MANUALSocket-0007-001-UnLoadDriver_command02
sl@0
   215
		COMMAND		mmcsdsession1	~
sl@0
   216
	END_TEST_BLOCK
sl@0
   217
END_TESTCASE			BASE-BSP-SD-DRIVER-MANUALSocket-0007