tree: 212e50203345276650f90adbc97017bf7de3a658 [path history] [tgz]
  1. a-b-a-linker-guard/
  2. alloc-no-oom-handling/
  3. alloc-no-rc/
  4. alloc-no-sync/
  5. allocator-shim-circular-deps/
  6. allow-warnings-cmdline-stability/
  7. amdgpu-kd/
  8. apple-c-available-links/
  9. apple-deployment-target/
  10. apple-sdk-version/
  11. archive-duplicate-names/
  12. arguments-non-c-like-enum/
  13. arm64ec-import-export-static/
  14. artifact-incr-cache/
  15. artifact-incr-cache-no-obj/
  16. atomic-lock-free/
  17. autodiff/
  18. avr-rjmp-offset/
  19. bare-outfile/
  20. bin-emit-no-symbols/
  21. box-struct-no-segfault/
  22. branch-protection-check-IBT/
  23. broken-pipe-no-ice/
  24. c-dynamic-dylib/
  25. c-dynamic-rlib/
  26. c-link-to-rust-dylib/
  27. c-link-to-rust-staticlib/
  28. c-link-to-rust-va-list-fn/
  29. c-static-dylib/
  30. c-static-rlib/
  31. c-unwind-abi-catch-lib-panic/
  32. c-unwind-abi-catch-panic/
  33. cdylib/
  34. cdylib-dylib-linkage/
  35. cdylib-fewer-symbols/
  36. checksum-freshness/
  37. clear-error-blank-output/
  38. codegen-options-parsing/
  39. comment-section/
  40. compile-stdin/
  41. compiler-lookup-paths/
  42. compiler-lookup-paths-2/
  43. compiler-rt-works-on-mingw/
  44. compiletest-self-test/
  45. compressed-debuginfo/
  46. compressed-debuginfo-zstd/
  47. const-prop-lint/
  48. const-trait-stable-toolchain/
  49. const_fn_mir/
  50. core-no-fp-fmt-parse/
  51. core-no-oom-handling/
  52. cpp-global-destructors/
  53. crate-circular-deps-link/
  54. crate-data-smoke/
  55. crate-hash-rustc-version/
  56. crate-loading/
  57. crate-loading-crate-depends-on-itself/
  58. crate-loading-multiple-candidates/
  59. crate-name-priority/
  60. cross-lang-lto/
  61. cross-lang-lto-clang/
  62. cross-lang-lto-pgo-smoketest-clang/
  63. cross-lang-lto-riscv-abi/
  64. cross-lang-lto-upstream-rlibs/
  65. CURRENT_RUSTC_VERSION/
  66. debug-assertions/
  67. debugger-visualizer-dep-info/
  68. dep-graph/
  69. dep-info/
  70. deref-impl-rustdoc-ice/
  71. diagnostics-traits-from-duplicate-crates/
  72. dirty-incr-due-to-hard-link/
  73. doctests-keep-binaries/
  74. doctests-keep-binaries-2024/
  75. doctests-merge/
  76. doctests-runtool/
  77. dos-device-input/
  78. dump-ice-to-disk/
  79. dump-mono-stats/
  80. duplicate-output-flavors/
  81. dylib-chain/
  82. dylib-soname/
  83. embed-metadata/
  84. embed-source-dwarf/
  85. emit/
  86. emit-named-files/
  87. emit-path-unhashed/
  88. emit-shared-files/
  89. emit-stack-sizes/
  90. emit-to-stdout/
  91. env-dep-info/
  92. error-found-staticlib-instead-crate/
  93. error-writing-dependencies/
  94. exit-code/
  95. export/
  96. export-executable-symbols/
  97. extern-diff-internal-name/
  98. extern-flag-disambiguates/
  99. extern-flag-fun/
  100. extern-flag-pathless/
  101. extern-flag-rename-transitive/
  102. extern-fn-explicit-align/
  103. extern-fn-generic/
  104. extern-fn-mangle/
  105. extern-fn-reachable/
  106. extern-fn-slice-no-ice/
  107. extern-fn-struct-passing-abi/
  108. extern-fn-with-extern-types/
  109. extern-fn-with-packed-struct/
  110. extern-fn-with-union/
  111. extern-multiple-copies/
  112. extern-multiple-copies2/
  113. extern-overrides-distribution/
  114. external-crate-panic-handle-no-lint/
  115. extra-filename-with-temp-outputs/
  116. fat-then-thin-lto/
  117. fmt-write-bloat/
  118. forced-unwind-terminate-pof/
  119. foreign-double-unwind/
  120. foreign-exceptions/
  121. foreign-rust-exceptions/
  122. glibc-staticlib-args/
  123. glibc-symbols-x86_64-unknown-linux-gnu/
  124. ice-dep-cannot-find-dep/
  125. ice-static-mir/
  126. import-macro-verbatim/
  127. inaccessible-temp-dir/
  128. include-all-symbols-linking/
  129. include-bytes-deps/
  130. incr-add-rust-src-component/
  131. incr-foreign-head-span/
  132. incr-prev-body-beyond-eof/
  133. incr-test-moved-file/
  134. incremental-debugger-visualizer/
  135. incremental-session-fail/
  136. inline-always-many-cgu/
  137. interdependent-c-libraries/
  138. intrinsic-unreachable/
  139. invalid-library/
  140. invalid-so/
  141. invalid-staticlib/
  142. invalid-symlink-search-path/
  143. invalid-tmpdir-env-var/
  144. issue-107495-archive-permissions/
  145. issue-125484-used-dependencies/
  146. issue-84395-lto-embed-bitcode/
  147. jobserver-error/
  148. json-error-no-offset/
  149. lib-trait-for-trait-no-ice/
  150. libs-through-symlinks/
  151. libstd-no-protected/
  152. libtest-json/
  153. libtest-junit/
  154. libtest-padding/
  155. libtest-thread-limit/
  156. link-arg/
  157. link-args-order/
  158. link-cfg/
  159. link-dedup/
  160. link-eh-frame-terminator/
  161. link-framework/
  162. link-native-static-lib-to-dylib/
  163. link-path-order/
  164. link-under-xcode/
  165. linkage-attr-framework/
  166. linkage-attr-on-static/
  167. linker-plugin-lto-fat/
  168. linker-warning/
  169. llvm-ident/
  170. llvm-location-discriminator-limit-dummy-span/
  171. llvm-outputs/
  172. long-linker-command-lines/
  173. long-linker-command-lines-cmd-exe/
  174. longjmp-across-rust/
  175. ls-metadata/
  176. lto-avoid-object-duplication/
  177. lto-dylib-dep/
  178. lto-empty/
  179. lto-linkage-used-attr/
  180. lto-long-filenames/
  181. lto-no-link-whole-rlib/
  182. lto-readonly-lib/
  183. lto-smoke/
  184. lto-smoke-c/
  185. macos-fat-archive/
  186. manual-crate-name/
  187. manual-link/
  188. many-crates-but-no-match/
  189. metadata-dep-info/
  190. metadata-flag-frobs-symbols/
  191. metadata-only-crate-no-ice/
  192. min-global-align/
  193. mingw-export-call-convention/
  194. mismatching-target-triples/
  195. missing-crate-dependency/
  196. missing-unstable-trait-bound/
  197. mixing-deps/
  198. mixing-formats/
  199. mixing-libs/
  200. moved-src-dir-fingerprint-ice/
  201. msvc-lld-thinlto-imp-symbols/
  202. msvc-wholearchive/
  203. mte-ffi/
  204. multiline-args-value/
  205. multiple-emits/
  206. musl-default-linking/
  207. naked-symbol-visibility/
  208. native-lib-alt-naming/
  209. native-lib-load-order/
  210. native-link-modifier-bundle/
  211. native-link-modifier-verbatim-linker/
  212. native-link-modifier-verbatim-rustc/
  213. native-link-modifier-whole-archive/
  214. no-alloc-shim/
  215. no-builtins-attribute/
  216. no-builtins-lto/
  217. no-cdylib-as-rdylib/
  218. no-duplicate-libs/
  219. no-input-file/
  220. no-intermediate-extras/
  221. non-pie-thread-local/
  222. non-unicode-env/
  223. non-unicode-in-incremental-dir/
  224. notify-all-emit-artifacts/
  225. obey-crate-type-flag/
  226. optimization-remarks-dir/
  227. optimization-remarks-dir-pgo/
  228. option-output-no-space/
  229. output-filename-conflicts-with-directory/
  230. output-filename-overwrites-input/
  231. output-type-permutations/
  232. output-with-hyphens/
  233. override-aliased-flags/
  234. overwrite-input/
  235. panic-abort-eh_frame/
  236. panic-impl-transitive/
  237. parallel-rustc-no-overwrite/
  238. pass-linker-flags/
  239. pass-linker-flags-flavor/
  240. pass-linker-flags-from-dep/
  241. pass-non-c-like-enum-to-c/
  242. pdb-alt-path/
  243. pdb-buildinfo-cl-cmd/
  244. pdb-sobjname/
  245. pgo-branch-weights/
  246. pgo-embed-bc-lto/
  247. pgo-gen/
  248. pgo-gen-lto/
  249. pgo-gen-no-imp-symbols/
  250. pgo-indirect-call-promotion/
  251. pgo-use/
  252. pointer-auth-link-with-c/
  253. pointer-auth-link-with-c-lto-clang/
  254. prefer-dylib/
  255. prefer-rlib/
  256. pretty-print-to-file/
  257. pretty-print-with-dep-file/
  258. print-cfg/
  259. print-check-cfg/
  260. print-crate-root-lint-levels/
  261. print-native-static-libs/
  262. print-request-help-stable-unstable/
  263. print-target-cpus-native/
  264. print-target-list/
  265. print-to-output/
  266. proc-macro-init-order/
  267. proc-macro-three-crates/
  268. prune-link-args/
  269. raw-dylib-alt-calling-convention/
  270. raw-dylib-c/
  271. raw-dylib-cross-compilation/
  272. raw-dylib-custom-dlltool/
  273. raw-dylib-elf/
  274. raw-dylib-elf-verbatim/
  275. raw-dylib-elf-verbatim-absolute/
  276. raw-dylib-import-name-type/
  277. raw-dylib-inline-cross-dylib/
  278. raw-dylib-link-ordinal/
  279. raw-dylib-stdcall-ordinal/
  280. raw-fn-pointer-opt-undefined-behavior/
  281. reachable-extern-fn-available-lto/
  282. redundant-libs/
  283. relocation-model/
  284. relro-levels/
  285. remap-path-prefix/
  286. remap-path-prefix-dwarf/
  287. remove-dir-all-race/
  288. repr128-dwarf/
  289. reproducible-build/
  290. reproducible-build-2/
  291. reset-codegen-1/
  292. resolve-rename/
  293. return-non-c-like-enum/
  294. return-non-c-like-enum-from-c/
  295. rlib-chain/
  296. rlib-format-packed-bundled-libs/
  297. rlib-format-packed-bundled-libs-2/
  298. rlib-format-packed-bundled-libs-3/
  299. rmeta-preferred/
  300. run-in-tmpdir-self-test/
  301. rust-lld/
  302. rust-lld-custom-target/
  303. rust-lld-link-script-provide/
  304. rust-lld-x86_64-unknown-linux-gnu/
  305. rust-lld-x86_64-unknown-linux-gnu-dist/
  306. rustc-help/
  307. rustc-macro-dep-files/
  308. rustdoc-cfgspec-parsing/
  309. rustdoc-default-output/
  310. rustdoc-dep-info/
  311. rustdoc-determinism/
  312. rustdoc-error-lines/
  313. rustdoc-io-error/
  314. rustdoc-map-file/
  315. rustdoc-output-path/
  316. rustdoc-output-stdout/
  317. rustdoc-scrape-examples-invalid-expr/
  318. rustdoc-scrape-examples-macros/
  319. rustdoc-scrape-examples-multiple/
  320. rustdoc-scrape-examples-ordering/
  321. rustdoc-scrape-examples-remap/
  322. rustdoc-scrape-examples-test/
  323. rustdoc-scrape-examples-whitespace/
  324. rustdoc-search-load-itemtype/
  325. rustdoc-shared-flags/
  326. rustdoc-target-modifiers/
  327. rustdoc-target-spec-json-path/
  328. rustdoc-tempdir-removal/
  329. rustdoc-test-args/
  330. rustdoc-themes/
  331. rustdoc-verify-output-files/
  332. rustdoc-with-out-dir-option/
  333. rustdoc-with-output-option/
  334. rustdoc-with-short-out-dir-option/
  335. sanitizer-cdylib-link/
  336. sanitizer-dylib-link/
  337. sanitizer-staticlib-link/
  338. separate-link/
  339. separate-link-fail/
  340. share-generics-dylib/
  341. share-generics-export-again/
  342. short-ice/
  343. silly-file-names/
  344. simd-ffi/
  345. split-debuginfo/
  346. stable-symbol-names/
  347. static-dylib-by-default/
  348. static-extern-type/
  349. static-pie/
  350. static-unwinding/
  351. staticlib-blank-lib/
  352. staticlib-broken-bitcode/
  353. staticlib-dylib-linkage/
  354. staticlib-thin-archive/
  355. std-core-cycle/
  356. stdin-rustc/
  357. stdin-rustdoc/
  358. strip/
  359. suspicious-library/
  360. symbol-mangling-hashed/
  361. symbol-visibility/
  362. symbols-all-mangled/
  363. symbols-include-type-name/
  364. symlinked-extern/
  365. symlinked-libraries/
  366. symlinked-rlib/
  367. sysroot-crates-are-unstable/
  368. target-cpu-native/
  369. target-specs/
  370. target-without-atomic-cas/
  371. test-benches/
  372. test-harness/
  373. textrel-on-minimal-lib/
  374. track-path-dep-info/
  375. track-pgo-dep-info/
  376. translation/
  377. type-mismatch-same-crate-name/
  378. unknown-mod-stdin/
  379. unstable-feature-usage-metrics/
  380. unstable-feature-usage-metrics-incremental/
  381. unstable-flag-required/
  382. use-suggestions-rust-2018/
  383. used/
  384. used-cdylib-macos/
  385. used-proc-macro/
  386. version-check/
  387. version-verbose-commit-hash/
  388. volatile-intrinsics/
  389. wasm-custom-section/
  390. wasm-custom-sections-opt/
  391. wasm-exceptions-nostd/
  392. wasm-export-all-symbols/
  393. wasm-import-module/
  394. wasm-override-linker/
  395. wasm-panic-small/
  396. wasm-spurious-import/
  397. wasm-stringify-ints-small/
  398. wasm-symbols-different-module/
  399. wasm-symbols-not-exported/
  400. wasm-symbols-not-imported/
  401. wasm-unexpected-features/
  402. weird-output-filenames/
  403. windows-binary-no-external-deps/
  404. windows-safeseh/
  405. windows-spawn/
  406. windows-ws2_32/
  407. zero-extend-abi-param-passing/
  408. README.md
tests/run-make/README.md

The run-make test suite

The run-make test suite contains tests which are the most flexible out of all the rust-lang/rust test suites. run-make tests can basically contain arbitrary code, and are supported by the run_make_support library.

Infrastructure

A run-make test is a test recipe source file rmake.rs accompanied by its parent directory (e.g. tests/run-make/foo/rmake.rs is the foo run-make test).

The implementation for collecting and building the rmake.rs recipes are in src/tools/compiletest/src/runtest.rs, in run_rmake_test.

The setup for the rmake.rs can be summarized as a 3-stage process:

  1. First, we build the run_make_support library in bootstrap as a tool lib.

  2. Then, we compile the rmake.rs “recipe” linking the support library and its dependencies in, and provide a bunch of env vars. We setup a directory structure within build/<target>/test/run-make/

    <test-name>/
        rmake.exe              # recipe binary
        rmake_out/             # sources from test sources copied over
    

    and copy non-rmake.rs input support files over to rmake_out/. The support library is made available as an extern prelude.

  3. Finally, we run the recipe binary and set rmake_out/ as the working directory.