UEFIStarter
a simple UEFI framework
Functions
files.c File Reference

Tests for file I/O functions. More...

#include <Uefi.h>
#include <Library/UefiLib.h>
#include <UEFIStarter/core.h>
#include <UEFIStarter/tests/tests.h>

Functions

void test_get_file_contents ()
 Makes sure get_file_content() works. More...
 
BOOLEAN run_files_tests ()
 Test runner for this group. More...
 

Detailed Description

Tests for file I/O functions.

Author
Richard Nusser
License
GPLv3 (see http://www.gnu.org/licenses/)
See also
https://github.com/rinusser/UEFIStarter

Function Documentation

◆ test_get_file_contents()

void test_get_file_contents ( )

Makes sure get_file_content() works.

Test:
get_file_contents() returns a file's contents
Todo:
read a file that's guaranteed to exist, e.g. the currently running .efi, instead of startup.nsh.

◆ run_files_tests()

BOOLEAN run_files_tests ( )

Test runner for this group.

Gets called via the generated test runner.

Returns
whether the test group was executed