os/boardsupport/haitest/bspsvs/suite/bsp/mmc/scripts/BASE-BSP-MMC-PSU-DRIVER.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
    18 
    19 
    20 START_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0001
    21 //! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-DMMCPsu-0001
    22 //! @SYMTestCaseDesc		Load MMC/SD Logical Device Driver
    23 //! @SYMTestPriority		high
    24 //! @SYMTestActions		Load D_MMCSDIF LDD Driver
    25 //! @SYMTestExpectedResults	KErrNone
    26 //! @SYMTestType		CIT
    27 //! @SYMCreationDate		1/4/2008
    28 //! @SYMAuthor			Saravanakumar
    29 //! @SYMTestStatus		Implemented
    30 //! @SYMAPI			User::LoadLogicalDevice(const TDesC {ref});
    31 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-PSU-DRIVER.ini
    32 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
    33 		COMMAND		mmcsdsession1	NewL
    34 		COMMAND		mmcsdsession1	LoadDriver		BASE-BSP-MMC-DRIVER-LDDName-CMD0001
    35 		COMMAND		mmcsdsession1	~
    36 	END_TEST_BLOCK
    37 END_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0001
    38 
    39 
    40 START_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0002
    41 //! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-DMMCPsu-0002
    42 //! @SYMTestCaseDesc		MMC/SD Power Supply Test - Display the MMC/SD card Bus inactivity Timeout
    43 //! @SYMTestPriority		high
    44 //! @SYMTestActions		1. Create  RMMCSDTestControllerInterface Handle object.
    45 //!				2. Load the Driver
    46 //!				3. Open the driver connection
    47 //!				4. Reads the bus inactivity count
    48 //!				5. Display the bus inactivity count
    49 //!				6. Close the driver connection
    50 //!				7. Destroy the object
    51 //! @SYMTestExpectedResults	Displayed the bus inactivity count
    52 //! @SYMTestType		CIT
    53 //! @SYMCreationDate		1/4/2008
    54 //! @SYMAuthor			Saravanakumar
    55 //! @SYMTestStatus		Implemented
    56 //! @SYMAPI			DMMCPsu::PsuInfo(TPBusPsuInfo {ref});
    57 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-PSU-DRIVER.ini
    58 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
    59 		CREATE_OBJECT	MMCSDPsu	mmcsdpsu1	
    60 		COMMAND		mmcsdsession1	NewL
    61 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-DRIVER-StackNumber
    62 		COMMAND		mmcsdpsu1	NewL			BASE-BSP-MMC-DRIVER-SessionWrapperName
    63 		COMMAND		mmcsdpsu1	PsuInfo			BASE-BSP-MMC-DRIVER-PsuInfo-CMD002
    64 		COMMAND		mmcsdsession1	Close
    65 		COMMAND		mmcsdpsu1	~
    66 		COMMAND		mmcsdsession1	~
    67 	END_TEST_BLOCK
    68 END_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0002
    69 
    70 
    71 START_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0003
    72 //! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-DMMCPsu-0003
    73 //! @SYMTestCaseDesc		MMC/SD Power Supply Test - Set the supported voltage setting to be used when the stack is next powered up
    74 //!				the voltage level, or range of voltages supported in OCR format
    75 //! @SYMTestPriority		high
    76 //! @SYMTestActions		1. Create  RMMCSDTestControllerInterface Handle object.
    77 //!				2. Load the Driver
    78 //!				3. Open the driver connection
    79 //!				4. Set the voltages supported in OCR format
    80 //!				5. Display voltages supported in OCR format
    81 //!				6. Close the driver connection
    82 //!				7. Destroy the object
    83 //! @SYMTestExpectedResults	KErrNone
    84 //! @SYMTestType		CIT
    85 //! @SYMCreationDate		1/4/2008
    86 //! @SYMAuthor			Saravanakumar
    87 //! @SYMTestStatus		Implemented
    88 //! @SYMAPI			DMMCPsu::DoSetVoltage();
    89 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-PSU-DRIVER.ini
    90 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
    91 		CREATE_OBJECT	MMCSDPsu	mmcsdpsu1	
    92 		COMMAND		mmcsdsession1	NewL
    93 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-DRIVER-StackNumber
    94 		COMMAND		mmcsdpsu1	NewL			BASE-BSP-MMC-DRIVER-SessionWrapperName
    95 		COMMAND		mmcsdpsu1	SetVoltage		BASE-BSP-MMC-DRIVER-Supported-PSUVoltageOCR-CMD0003
    96 		COMMAND		mmcsdsession1	Close
    97 		COMMAND		mmcsdpsu1	~
    98 		COMMAND		mmcsdsession1	~
    99 	END_TEST_BLOCK
   100 END_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0003
   101 
   102 
   103 START_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0004
   104 //! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-DMMCPsu-0004
   105 //! @SYMTestCaseDesc		MMC/SD Power Supply Test - Set the MMC/SD card Current VCC state as OFF
   106 //!				Uses API elements:
   107 //!				DMMCPsu::iVcc()
   108 //! @SYMTestPriority		high
   109 //! @SYMTestActions		1. Create  RMMCSDTestControllerInterface Handle object.
   110 //!				2. Load the Driver
   111 //!				3. Open the driver connection
   112 //!				4. Set the MMC/SD card Current VCC state
   113 //!				5. Display Current VCC state
   114 //!				6. Close the driver connection
   115 //!				7. Destroy the object
   116 //! @SYMTestExpectedResults	VCC state Displayed OFF
   117 //! @SYMTestType		CIT
   118 //! @SYMCreationDate		1/4/2008
   119 //! @SYMAuthor			Saravanakumar
   120 //! @SYMTestStatus		Implemented
   121 //! @SYMAPI			DMMCPsu::SetState(TPBusPsuState);
   122 //!				DMMCSocket::{DPBusPsuBase {ptr}}iVcc
   123 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-PSU-DRIVER.ini
   124 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   125 		CREATE_OBJECT	MMCSDPsu	mmcsdpsu1	
   126 		COMMAND		mmcsdsession1	NewL
   127 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-DRIVER-StackNumber
   128 		COMMAND		mmcsdpsu1	NewL			BASE-BSP-MMC-DRIVER-SessionWrapperName
   129 		COMMAND		mmcsdpsu1	SetState  		BASE-BSP-MMC-DRIVER-VccStateOFF-CMD0004
   130 		COMMAND		mmcsdpsu1	VccState  		BASE-BSP-MMC-DRIVER-VccStateOFF-CMD0004
   131 		COMMAND		mmcsdsession1	Close
   132 		COMMAND		mmcsdpsu1	~
   133 		COMMAND		mmcsdsession1	~
   134 	END_TEST_BLOCK
   135 END_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0004
   136 
   137 
   138 START_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0005
   139 //! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-DMMCPsu-0005
   140 //! @SYMTestCaseDesc		MMC/SD Power Supply Test - Set the MMC/SD card VCC state as EPsuOnCurLimit
   141 //! @SYMTestPriority		high
   142 //! @SYMTestActions		1. Create  RMMCSDTestControllerInterface Handle object.
   143 //!				2. Load the Driver
   144 //!				3. Open the driver connection
   145 //!				4. Set the MMC/SD card Current VCC state EPsuOnCurLimit
   146 //!				5. Display Current PSU state
   147 //!				6. Close the driver connection
   148 //!				7. Destroy the object
   149 //! @SYMTestExpectedResults	Current VCC state Displayed
   150 //! @SYMTestType		CIT
   151 //! @SYMCreationDate		1/4/2008
   152 //! @SYMAuthor			Saravanakumar
   153 //! @SYMTestStatus		Implemented
   154 //! @SYMAPI			DMMCPsu::SetState(TPBusPsuState);
   155 //!				DMMCSocket::{DPBusPsuBase {ptr}}iVcc
   156 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-PSU-DRIVER.ini
   157 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   158 		CREATE_OBJECT	MMCSDPsu	mmcsdpsu1	
   159 		COMMAND		mmcsdsession1	NewL
   160 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-DRIVER-StackNumber
   161 		COMMAND		mmcsdpsu1	NewL			BASE-BSP-MMC-DRIVER-SessionWrapperName
   162 		COMMAND		mmcsdpsu1	SetState		BASE-BSP-MMC-DRIVER-VccStatePsuOnCurLimit-CMD0005
   163 		COMMAND		mmcsdpsu1	VccState		BASE-BSP-MMC-DRIVER-VccStatePsuOnCurLimit-CMD0005
   164 		COMMAND		mmcsdsession1	Close
   165 		COMMAND		mmcsdpsu1	~
   166 		COMMAND		mmcsdsession1	~
   167 	END_TEST_BLOCK
   168 END_TESTCASE			 BASE-BSP-MMC-DRIVER-DMMCPsu-0005
   169 
   170 
   171 START_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0006
   172 //! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-DMMCPsu-0006
   173 //! @SYMTestCaseDesc		MMC/SD Power Supply Test - Set Current VCC state EPsuOnFull
   174 //! @SYMTestPriority		high
   175 //! @SYMTestActions		1. Create  RMMCSDTestControllerInterface Handle object.
   176 //!				2. Load the Driver
   177 //!				3. Open the driver connection
   178 //!				4. Set the MMC/SD card Current VCC state
   179 //!				5. Display Current VCC state
   180 //!				6. Close the driver connection
   181 //!				7. Destroy the object
   182 //! @SYMTestExpectedResults	Current VCC state Displayed
   183 //! @SYMTestType		CIT
   184 //! @SYMCreationDate		1/4/2008
   185 //! @SYMAuthor			Saravanakumar
   186 //! @SYMTestStatus		Implemented
   187 //! @SYMAPI			DMMCSocket::{DPBusPsuBase {ptr}}iVcc
   188 	START_TEST_BLOCK	100		T_mmcsd		 	\base\mmcsd\BASE-BSP-MMC-PSU-DRIVER.ini
   189 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   190 		CREATE_OBJECT	MMCSDPsu	mmcsdpsu1	
   191 		COMMAND		mmcsdsession1	NewL
   192 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-DRIVER-StackNumber
   193 		COMMAND		mmcsdpsu1	NewL			BASE-BSP-MMC-DRIVER-SessionWrapperName
   194 		COMMAND		mmcsdpsu1	SetState  		BASE-BSP-MMC-DRIVER-VccStatePsuOnFull-CMD0006
   195 		COMMAND		mmcsdpsu1	VccState 		BASE-BSP-MMC-DRIVER-VccStatePsuOnFull-CMD0006
   196 		COMMAND		mmcsdsession1	Close
   197 		COMMAND		mmcsdpsu1	~
   198 		COMMAND		mmcsdsession1	~
   199 	END_TEST_BLOCK
   200 END_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0006
   201 
   202 
   203 START_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0007
   204 //! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-DMMCPsu-0007
   205 //! @SYMTestCaseDesc		MMC/SD Socket Power Supply Test - Current Bus State.
   206 //! @SYMTestPriority		high
   207 //! @SYMTestActions		1. Create  RMMCSDTestControllerInterface Handle object.
   208 //!				2. Load the Driver
   209 //!				3. Open the driver connection
   210 //!				4. Check TPBusPsuState
   211 //!				5. Display the BusPsuState
   212 //!				6. Close the driver connection
   213 //!				7. Destroy the object
   214 //! @SYMTestExpectedResults	Displayed the platform status while turn on
   215 //! @SYMTestType		CIT
   216 //! @SYMCreationDate		1/4/2008
   217 //! @SYMAuthor			Saravanakumar
   218 //! @SYMTestStatus		Implemented
   219 //! @SYMAPI			DMMCSocket::iState();
   220 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-PSU-DRIVER.ini
   221 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   222 		CREATE_OBJECT	MMCSDPsu	mmcsdpsu1	
   223 		COMMAND		mmcsdsession1	NewL
   224 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-DRIVER-StackNumber
   225 		COMMAND		mmcsdpsu1	NewL			BASE-BSP-MMC-DRIVER-SessionWrapperName
   226 		COMMAND		mmcsdpsu1	PbusState		BASE-BSP-MMC-DRIVER-PbusState-CMD0007
   227 		COMMAND		mmcsdsession1	Close
   228 		COMMAND		mmcsdpsu1	~
   229 		COMMAND		mmcsdsession1	~
   230 	END_TEST_BLOCK
   231 END_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0007
   232 
   233 
   234 START_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0008
   235 //! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-DMMCPsu-0008
   236 //! @SYMTestCaseDesc		MMC/SD Power Supply Test - Reads PSU Unit number.
   237 //! @SYMTestPriority		high
   238 //! @SYMTestActions		1. Create  RMMCSDTestControllerInterface Handle object.
   239 //!				2. Load the Driver
   240 //!				3. Open the driver connection
   241 //!				4. Reads PSU Unit number
   242 //!				5. Display the PSU Unit number
   243 //!				6. Close the driver connection
   244 //!				7. Destroy the object
   245 //! @SYMTestExpectedResults	KErrNone
   246 //! @SYMTestType		CIT
   247 //! @SYMCreationDate		1/4/2008
   248 //! @SYMAuthor			Saravanakumar
   249 //! @SYMTestStatus		Implemented
   250 //! @SYMAPI			DMMCPsu::iPsuNum();
   251 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-PSU-DRIVER.ini
   252 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   253 		CREATE_OBJECT	MMCSDPsu	mmcsdpsu1	
   254 		COMMAND		mmcsdsession1	NewL
   255 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-DRIVER-StackNumber
   256 		COMMAND		mmcsdpsu1	NewL			BASE-BSP-MMC-DRIVER-SessionWrapperName
   257 		COMMAND		mmcsdpsu1	PsuNumber		BASE-BSP-MMC-DRIVER-PsuNumber-CMD0008
   258 		COMMAND		mmcsdsession1	Close
   259 		COMMAND		mmcsdpsu1	~
   260 		COMMAND		mmcsdsession1	~
   261 	END_TEST_BLOCK
   262 END_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0008
   263 
   264 
   265 START_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0009
   266 //! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-DMMCPsu-0009
   267 //! @SYMTestCaseDesc		MMC/SD Power Supply Test - Reads Meadia Change number.
   268 //! @SYMTestPriority		high
   269 //! @SYMTestActions		1. Create  RMMCSDTestControllerInterface Handle object.
   270 //!				2. Load the Driver
   271 //!				3. Open the driver connection
   272 //!				4. Reads Meadia Change number
   273 //!				5. Display the Meadia Change number
   274 //!				6. Close the driver connection
   275 //!				7. Destroy the object
   276 //! @SYMTestExpectedResults	KErrNone
   277 //! @SYMTestType		CIT
   278 //! @SYMCreationDate		1/4/2008
   279 //! @SYMAuthor			Saravanakumar
   280 //! @SYMTestStatus		Implemented
   281 //! @SYMAPI			DMMCPsu::iMediaChangeNum()
   282 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-PSU-DRIVER.ini
   283 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   284 		CREATE_OBJECT	MMCSDPsu	mmcsdpsu1	
   285 		COMMAND		mmcsdsession1	NewL
   286 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-DRIVER-StackNumber
   287 		COMMAND		mmcsdpsu1	NewL			BASE-BSP-MMC-DRIVER-SessionWrapperName
   288 		COMMAND		mmcsdpsu1	MediaChangeNumber	BASE-BSP-MMC-DRIVER-MediaChangeNumber-CMD0009
   289 		COMMAND		mmcsdsession1	Close
   290 		COMMAND		mmcsdpsu1	~
   291 		COMMAND		mmcsdsession1	~
   292 	END_TEST_BLOCK
   293 END_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0009
   294 
   295 
   296 START_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0010
   297 //! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-DMMCPsu-0010
   298 //! @SYMTestCaseDesc		MMC/SD Power Supply Test - Reads platform has current limit check support.
   299 //! @SYMTestPriority		high
   300 //! @SYMTestActions		1. Create  RMMCSDTestControllerInterface Handle object.
   301 //!				2. Load the Driver
   302 //!				3. Open the driver connection
   303 //!				4. Reads platform has current limit check support
   304 //!				5. Display the platform status
   305 //!				6. Close the driver connection
   306 //!				7. Destroy the object
   307 //! @SYMTestExpectedResults	KErrNotSupported
   308 //! @SYMTestType		CIT
   309 //! @SYMCreationDate		1/4/2008
   310 //! @SYMAuthor			Saravanakumar
   311 //! @SYMTestStatus		Implemented
   312 //! @SYMAPI			DMMCPsu::iCurrLimited()
   313 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-PSU-DRIVER.ini
   314 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   315 		CREATE_OBJECT	MMCSDPsu	mmcsdpsu1	
   316 		COMMAND		mmcsdsession1	NewL
   317 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-DRIVER-StackNumber
   318 		COMMAND		mmcsdpsu1	NewL			BASE-BSP-MMC-DRIVER-SessionWrapperName
   319 		COMMAND 	mmcsdpsu1	PsuCurLimit		BASE-BSP-MMC-DRIVER-PsuCurLimit-CMD0010
   320 		COMMAND		mmcsdsession1	Close
   321 		COMMAND		mmcsdpsu1	~
   322 		COMMAND		mmcsdsession1	~
   323 	END_TEST_BLOCK
   324 END_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0010
   325 
   326 
   327 START_TESTCASE			BASE-BSP-MMC-DRIVER-DMMCPsu-0011
   328 //! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-DMMCPsu-0011
   329 //! @SYMTestCaseDesc		UnLoad MMC/SD Logical Device Driver.
   330 //! @SYMTestPriority		high
   331 //! @SYMTestActions		Load D_MMCSDIF LDD Driver
   332 //! @SYMTestExpectedResults	KErrNone
   333 //! @SYMTestType		CIT
   334 //! @SYMCreationDate		1/4/2008
   335 //! @SYMAuthor			Saravanakumar
   336 //! @SYMTestStatus		Implemented
   337 //! @SYMAPI			User::FreeLogicalDevice(const TDesC{ref});
   338 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-PSU-DRIVER.ini
   339 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   340 		COMMAND		mmcsdsession1	NewL
   341 		COMMAND		mmcsdsession1	UnLoadDriver		BASE-BSP-MMC-DRIVER-LDDName-CMD0001
   342 		COMMAND		mmcsdsession1	~
   343 	END_TEST_BLOCK
   344 END_TESTCASE 			BASE-BSP-MMC-DRIVER-DMMCPsu-0011