UEFIStarter
a simple UEFI framework
Functions
runner.c File Reference

Self-tests for test runner. More...

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

Functions

void test_runner_success ()
 Should produce a SUCCESS result in the test runner. More...
 
void test_runner_failure ()
 Should produce an ERROR result in the test runner. More...
 
void test_runner_incomplete_success ()
 Should produce an INCOMPLETE but successful result in the test runner. More...
 
void test_runner_incomplete_failure ()
 Should produce an INCOMPLETE but unsucessful result in the test runner. More...
 
void test_runner_empty ()
 Should produce an INCOMPLETE (no assertions) result in the test runner. More...
 
BOOLEAN run_runner_tests ()
 Test runner for this group. More...
 

Detailed Description

Self-tests for test runner.

This generates "incomplete" and "failure" results on purpose; the default test runner script will skip this test. You'll have to check the test's result yourself, the console should show results matching the descriptions.

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

Function Documentation

◆ test_runner_success()

void test_runner_success ( )

Should produce a SUCCESS result in the test runner.

Test:
making a successful assertion results in SUCCESS for the test

◆ test_runner_failure()

void test_runner_failure ( )

Should produce an ERROR result in the test runner.

Test:
making a failing assertion results in FAILURE for the test

◆ test_runner_incomplete_success()

void test_runner_incomplete_success ( )

Should produce an INCOMPLETE but successful result in the test runner.

Test:
marking a test incomplete when there are successful assertions results in INCOMPLETE but success for the test

◆ test_runner_incomplete_failure()

void test_runner_incomplete_failure ( )

Should produce an INCOMPLETE but unsucessful result in the test runner.

Test:
marking a test incomplete when there are failed assertions results in INCOMPLETE but failure for the test

◆ test_runner_empty()

void test_runner_empty ( )

Should produce an INCOMPLETE (no assertions) result in the test runner.

Test:
tests without any assertions are marked as incomplete

◆ run_runner_tests()

BOOLEAN run_runner_tests ( )

Test runner for this group.

Gets called via the generated test runner.

Returns
whether the test group was executed