SHELL_PARAM_ITEM ParamList[] = {\r
{L"/Param1", TypeFlag},\r
{L"/Param2", TypeValue},\r
+ {L"/Param3", TypeDoubleValue},\r
+ {L"/Param4", TypeMaxValue},\r
{NULL, TypeMax}};\r
\r
/**\r
EFI_FILE_HANDLE FileHandle;\r
EFI_STATUS Status;\r
CHAR16 FileName[100];\r
- UINTN BufferSize;\r
- UINT64 Position;\r
- UINT8 Buffer[200];\r
+// UINTN BufferSize;\r
+// UINT64 Position;\r
+// UINT8 Buffer[200];\r
EFI_FILE_INFO *pFileInfo;\r
UINT64 Size;\r
BOOLEAN NoFile;\r
EFI_SHELL_FILE_INFO *pShellFileInfo;\r
LIST_ENTRY *List;\r
+ CONST CHAR16 *Tester;\r
\r
FileHandle = NULL;\r
StrCpy(FileName, L"testfile.txt");\r
- Position = 0;\r
+// Position = 0;\r
pFileInfo = NULL;\r
Size = 0;\r
NoFile = FALSE;\r
pShellFileInfo = NULL;\r
List = NULL;\r
\r
+ // command line param functions\r
+ Status = ShellCommandLineParse(ParamList, &List, NULL, FALSE);\r
+ // if you put an invalid parameter you SHOULD hit this assert.\r
+ ASSERT_EFI_ERROR(Status);\r
+ if (List) {\r
+ ASSERT(ShellCommandLineGetFlag(List, L"/Param5") == FALSE);\r
+ ASSERT(ShellCommandLineGetFlag(List, L"/Param1") != FALSE);\r
+ ASSERT(StrCmp(ShellCommandLineGetValue(List, L"/Param2"), L"Val1")==0);\r
+ ASSERT(StrCmp(ShellCommandLineGetRawValue(List, 0), L"SimpleApplication.efi")==0);\r
+ Tester = ShellCommandLineGetValue(List, L"/Param3");\r
+ Tester = ShellCommandLineGetValue(List, L"/Param4");\r
+\r
+ ShellCommandLineFreeVarList(List);\r
+ } else {\r
+ Print(L"param checking skipped.\r\n");\r
+ }\r
+\r
+// return (EFI_SUCCESS);\r
+\r
+\r
ASSERT(ShellGetExecutionBreakFlag() == FALSE);\r
- ASSERT(StrCmp(ShellGetCurrentDir(NULL), L"f8:\\") == 0);\r
+ ASSERT(StrCmp(ShellGetCurrentDir(NULL), L"f10:\\") == 0);\r
Print(L"execution break and get cur dir - pass\r\n");\r
\r
ShellSetPageBreakMode(TRUE);\r
\r
// get environment variable\r
// made for testing under nt32\r
- ASSERT(StrCmp(ShellGetEnvironmentVariable(L"path"), L".;f8:\\efi\\tools;f8:\\efi\\boot;f8:\\;f9:\\efi\\tools;f9:\\efi\\boot;f9:\\") == 0);\r
+ ASSERT(StrCmp(ShellGetEnvironmentVariable(L"path"), L".;f10:\\efi\\tools;f10:\\efi\\boot;f10:\\;f9:\\efi\\tools;f9:\\efi\\boot;f9:\\") == 0);\r
Print(L"ShellGetEnvironmentVariable - pass\r\n");\r
\r
// set environment variable\r
ASSERT_EFI_ERROR(Status);\r
// the pass printout for this is performed by EmptyApplication\r
Print(L"\r\n");\r
- \r
- // command line param functions\r
- Status = ShellCommandLineParse(ParamList, &List, NULL, FALSE);\r
- // if you put an invalid parameter you SHOULD hit this assert.\r
- ASSERT_EFI_ERROR(Status);\r
- if (List) {\r
- ASSERT(ShellCommandLineGetFlag(List, L"/Param5") == FALSE);\r
- ASSERT(ShellCommandLineGetFlag(List, L"/Param1") != FALSE);\r
- ASSERT(StrCmp(ShellCommandLineGetValue(List, L"/Param2"), L"Val1")==0);\r
- ASSERT(StrCmp(ShellCommandLineGetRawValue(List, 0), L"SimpleApplication.efi")==0);\r
-\r
- ShellCommandLineFreeVarList(List);\r
- } else {\r
- Print(L"param checking skipped.\r\n");\r
- }\r
\r
// page break mode (done last so we can see the results)\r
// we set this true at the begining of the program\r
done - ShellCommandLineGetFlag\r
done - ShellCommandLineGetValue\r
done - ShellCommandLineGetRawValue\r
-*/
\ No newline at end of file
+*/\r