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