[UEFI]Shell command test

EFI Shell – basic commands    Boot to EFI shell.
Step Name Step Description Expected
Step1 Verify the following command: ? Displays the Help for the system
Step2 Verify the following command: alias Displays, creates, or deletes aliases in the EFI shell.
Step3 Verify the following command: attrib Displays or changes the attributes of files or directories
Step4 Verify the following command: cd Displays or changes the current directory
Step5 Verify the following command: cls Clears the standard output with an optional background color
Step6 Verify the following command: comp Compares the contents of two files
Step7 Verify the following command: cp Copies one or more files/directories to another location
Step8 Verify the following command: date Gets/sets the date
Step9 Verify the following command: drivers Displays the list of drivers that follow the EFI Driver Model
Step10 Verify the following command: echo Displays messages or turns command echoing on or off
Step11 Verify the following command: edit Edits an ASCII or UNICODE file in full screen
Step12 Verify the following command: EfiCompress Compress a file
Step13 Verify the following command: EfiDecompress Decompress a file
Step14 Verify the following command: exit Exits the EFI Shell
Step15 Verify the following command: help Displays commands list or verbose help of a command
Step17 Verify the following command: load Loads and optionally connected EFI drivers
Step18 Verify the following command: ls Displays a list of files and subdirectories in a directory
Step19 Verify the following command: map Displays or defines mappings
Step20 Verify the following command: mkdir Creates one or more directories
Step21 Verify the following command: mm Displays or modifies MEM/IO/PCI
Step22 Verify the following command: mount Mounts a file system on a block device
Step23 Verify the following command: mv Moves one or more files/directories to destination
Step24 Verify the following command: pci Displays PCI devices or PCI function configuration space
Step25 Verify the following command: reconnect Reconnects one or more drivers from a device
Step26 Verify the following command: reset Resets the system
Step27 Verify the following command: rm Deletes one or more files or directories
Step28 Verify the following command: set Displays, creates, changes or deletes EFI environment variables
Step29 Verify the following command: stall Stalls the processor for some microseconds
Step30 Verify the following command: time Displays the current time or sets the time of the system
Step31 Verify the following command: type Displays the contents of a file
Step32 Verify the following command: unload Unloads a protocol image
Step33 Verify the following command: ver Displays the EFI version information
Step34 Verify the following command: vol Displays volume information of the file system
EFI Shell – Script-only Commands  Boot to EFI shell.
Step Name Step Description Expected
Step1 Verify PAUSE command  
Step2 Verify ECHO command  
Step3 Verify CLS command works in scripts.  
Step4 Verify “IF” works.  (when true)  
Step5 Verify “IF” works.  (when false)  
Step6 Verify “IF-ELSE” works (when false)  
Step7 Verify “Goto” and label (:label) works.  
Step8 Verify “IF Exists” works  
Step9 Verify “If Not” works  
EFI Shell – Advanced Commands    Boot to EFI shell.
Step Name Step Description Expected
Step1 Verify the following command: devtree Displays the device tree
Step2 Verify the following command: connect Binds an EFI driver to a device and starts the driver
Step3 Verify the following command: dblk Displays the contents of blocks from a block device
Step4 Verify the following command: dh Displays the handles in the EFI
Step5 Verify the following command: disconnect Disconnects one or more drivers from a device
Step6 Verify the following command: dmem Displays the contents of memory
Step7 Verify the following command: dmpstore Displays all NVRAM variables
Step8 Verify the following command: guid Displays all the GUIDs in the EFI environment
Step9 Verify the following command: loadpcirom Loads a PCI Option Rom image from a file.
Step10 Verify the following command: memmap Displays the memory map
Step11 Verify the following command: Openinfo Displays the protocols on a handle and the agents
EFI Shell – Output Redirection Commands  Boot to EFI shell.
Step Name Step Description Expected
Step1 Verify the following redirector:   > Redirect standard output to a unicode file.
Step2 Verify the following redirector:   >a Redirect standard output to an ascii file.
Step3 Verify the following redirector:   1> Redirect standard output to a unicode file.
Step4 Verify the following redirector:   1>a Redirect standard output to an ascii file.
Step5 Verify the following redirector:   2> Redirect standard error to unicode file.
Step6 Verify the following redirector:   2>a Redirect standard error to ascii file.
Step7 Verify the following redirector:   >> Redirect standard output appended to a unicode file.
Step8 Verify the following redirector:   >>a Redirect standard output appended to an ascii file.
Step9 Verify the following redirector:   1>> Redirect standard output appended to a unicode file.
Step10 Verify the following redirector:   1>>a Redirect standard output appended to an ascii file.

Under the UEFI shell, run the scripts to complete the test:

Download :UEFI command test script