1#![cfg_attr(rustfmt, rustfmt::skip)]
9#![warn(unreachable_pub)]
10
11mod command;
12mod macros;
13mod util;
14
15pub mod artifact_names;
16pub mod assertion_helpers;
17pub mod diff;
18pub mod env;
19pub mod external_deps;
20pub mod path_helpers;
21pub mod run;
22pub mod scoped_run;
23pub mod string;
24pub mod targets;
25pub mod symbols;
26
27mod fs;
30
31pub mod rfs {
34 pub use crate::fs::*;
35}
36
37pub use bstr;
40pub use gimli;
41pub use libc;
42pub use object;
43pub use regex;
44pub use serde_json;
45pub use similar;
46pub use wasmparser;
47pub use external_deps::{
51 cargo, c_build, c_cxx_compiler, clang, htmldocck, llvm, python, rustc, rustdoc
52};
53
54pub use c_cxx_compiler::{Cc, Gcc, cc, cxx, extra_c_flags, extra_cxx_flags, gcc};
56pub use c_build::{
57 build_native_dynamic_lib, build_native_static_lib, build_native_static_lib_cxx,
58 build_native_static_lib_optimized,
59};
60pub use cargo::cargo;
61pub use clang::{clang, Clang};
62pub use htmldocck::htmldocck;
63pub use llvm::{
64 llvm_ar, llvm_bcanalyzer, llvm_dis, llvm_dwarfdump, llvm_filecheck, llvm_nm, llvm_objcopy,
65 llvm_objdump, llvm_profdata, llvm_readobj, LlvmAr, LlvmBcanalyzer, LlvmDis, LlvmDwarfdump,
66 LlvmFilecheck, LlvmNm, LlvmObjcopy, LlvmObjdump, LlvmProfdata, LlvmReadobj,
67};
68pub use python::python_command;
69pub use rustc::{aux_build, bare_rustc, rustc, rustc_path, Rustc};
70pub use rustdoc::{bare_rustdoc, rustdoc, Rustdoc};
71
72pub use diff::{diff, Diff};
76
77pub use env::{env_var, env_var_os, set_current_dir};
79
80pub use run::{cmd, run, run_fail, run_with_args};
82
83pub use targets::{
85 apple_os, is_aix, is_darwin, is_msvc, is_windows, is_windows_gnu, llvm_components_contain,
86 target, uname,
87};
88
89pub use artifact_names::{
91 bin_name, dynamic_lib_extension, dynamic_lib_name, msvc_import_dynamic_lib_name, rust_lib_name,
92 static_lib_name,
93};
94
95pub use path_helpers::{
97 build_root, cwd, filename_contains, filename_not_in_denylist, has_extension, has_prefix,
98 has_suffix, not_contains, path, shallow_find_directories, shallow_find_files, source_root,
99};
100
101pub use scoped_run::{run_in_tmpdir, test_while_readonly};
103
104pub use assertion_helpers::{
105 assert_contains, assert_contains_regex, assert_count_is, assert_dirs_are_equal, assert_equals,
106 assert_not_contains, assert_not_contains_regex,
107};
108
109pub use string::{
110 count_regex_matches_in_files_with_extension, invalid_utf8_contains, invalid_utf8_not_contains,
111};