brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 0c484f0 Raw
30 lines · plain
1.. _libc_uefi_testing:2 3==========================4Testing the UEFI C library5==========================6 7.. contents:: Table of Contents8  :depth: 49  :local:10 11Testing infrastructure12======================13 14The LLVM C library supports different kinds of :ref:`tests <build_and_test>`15depending on the build configuration. The UEFI target is considered a full build16and therefore provides all of its own utilities to build and run the generated17tests. Currently UEFI supports two kinds of tests.18 19#. **Hermetic tests** - These are unit tests built with a test suite similar to20   Google's ``gtest`` infrastructure. These use the same infrastructure as unit21   tests except that the entire environment is self-hosted.22 23#. **Integration tests** - These are lightweight tests that simply call a24   ``main`` function and checks if it returns non-zero.25 26The UEFI target uses the same testing infrastructure as the other supported27``libc`` targets. We do this by treating UEFI as a standard hosted environment28capable of launching a ``main`` function. This only requires us to run the29tests in a UEFI environment.30