Crate compiletest

source

Modules§

Structs§

  • Stamp πŸ”’
    The maximum of a set of file-modified timestamps.
  • TestCollector πŸ”’
    Mutable state used during test collection.
  • TestCollectorCx πŸ”’
    Read-only context data used during test collection.

Functions§

  • Checks that test discovery didn’t find any tests whose name stem is a prefix of some other tests’s name.
  • Creates libtest structures for every test/revision in the test suite directory.
  • Recursively scans a directory to find test files and create test structures that will be handed over to libtest.
  • Returns the most recent last-modified timestamp from among the input files that are considered relevant to all tests (e.g. the compiler, std, and compiletest itself).
  • Returns a list of files that, if modified, would cause this test to no longer be up-to-date.
  • Returns true if file_name looks like a proper test file name.
  • is_up_to_date πŸ”’
    Checks whether a particular test/revision is β€œup-to-date”, meaning that no relevant files/settings have changed since the last time the test succeeded.
  • make_test πŸ”’
    For a single test file, creates one or more test structures (one per revision) that can be handed over to libtest to run, possibly in parallel.
  • Creates a callback for this test/revision that libtest will call when it decides to actually run the underlying test.
  • make_test_name πŸ”’
    Creates a name for this test/revision that can be handed over to libtest.
  • modified_tests πŸ”’
    Returns a list of modified/untracked test files that should be run when the --only-modified flag is in use.
  • Creates the Config instance for this invocation of compiletest.
  • Called by main after the config has been parsed.
  • stamp_file_path πŸ”’
    The path of the stamp file that gets created or updated whenever a particular test completes successfully.