gnu-efi/tests/test_list.txt

52 lines
1.4 KiB
Plaintext
Raw Normal View History

# ConOut text output
> cp t.efi $UEFI_DIR
> echo "@echo -off" > $UEFI_DIR/startup.nsh
> echo "FS0:\t.efi" >> $UEFI_DIR/startup.nsh
> echo "reset -s" >> $UEFI_DIR/startup.nsh
Hello World!
Hello World!
< rm $UEFI_DIR/*.efi
# Test args
> cp tcc.efi $UEFI_DIR
> echo "@echo -off" > $UEFI_DIR/startup.nsh
> echo "FS0:\tcc.efi" >> $UEFI_DIR/startup.nsh
> echo "reset -s" >> $UEFI_DIR/startup.nsh
Hello
Returning Failure works
0 args works just fine here.
1 arg works just fine here.
2 args works just fine here.
3 args works just fine here.
4 args works just fine here.
5 args works just fine here.
6 args works just fine here.
7 args works just fine here.
8 args works just fine here.
9 args works just fine here.
10 args works just fine here.
< rm $UEFI_DIR/*.efi
# Print args
> cp t8.efi $UEFI_DIR
> echo "@echo -off" > $UEFI_DIR/startup.nsh
> echo "FS0:\t8.efi Test1 Test2" >> $UEFI_DIR/startup.nsh
> echo "reset -s" >> $UEFI_DIR/startup.nsh
Hello World, started with Argc=3
Argv[0] = 'FS0:\t8.efi'
Argv[1] = 'Test1'
Argv[2] = 'Test2'
Bye.
< rm $UEFI_DIR/*.efi
# Test driver
> cp drv0.efi drv0_use.efi $UEFI_DIR
> echo "@echo -off" > $UEFI_DIR/startup.nsh
> echo "load FS0:\drv0.efi" >> $UEFI_DIR/startup.nsh
> echo "FS0:\drv0_use.efi" >> $UEFI_DIR/startup.nsh
> echo "reset -s" >> $UEFI_DIR/startup.nsh
Playing with driver instance 0...
Hello Sample UEFI Driver!
Hello was called 1 time(s).
< rm $UEFI_DIR/*.efi