Expand description
This module contains a reimplementation of the subset of libtest functionality needed by compiletest.
FIXME(Zalathar): Much of this code was originally designed to mimic libtest as closely as possible, for ease of migration. Now that libtest is no longer used, we can potentially redesign things to be a better fit for compiletest.
ModulesΒ§
- deadline π
- json π
- Collects statistics and emits suite/test events as JSON messages, using the same JSON format as libtestβs JSON formatter.
StructsΒ§
- Collected
Test π - Information that was historically needed to create a libtest
TestDescAndFn. - Collected
Test πDesc - Information that was historically needed to create a libtest
TestDesc. - Running
Test π - Test
Completion π - Test completion message sent by individual test threads when their test finishes (successfully or unsuccessfully).
- TestId π
- Test
Thread πArgs - All of the owned data needed by
test_thread_main.
EnumsΒ§
- Capture
Kind π - Color
Config - Whether console output should be colored or not.
- Should
Fail π - Tests with
//@ should-failare tests of compiletest itself, and should be reported as successful if and only if they would have failed. - Test
Outcome π
FunctionsΒ§
- __
rust_ πbegin_ short_ backtrace - Fixed frame used to clean the backtrace with
RUST_BACKTRACE=1. - filter_
tests π - Applies command-line arguments for filtering/skipping tests by name.
- get_
concurrency π - Determines the number of tests to run concurrently.
- run_
tests π - spawn_
test_ πthread - Spawns a thread to run a single test, and returns the threadβs join handle.
- test_
thread_ πmain - Runs a single test, within the dedicated thread spawned by the caller.