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