tree: 8d320929e30e3e0753d4b3a91b1d6919eef68e90 [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-deployment-target/
  9. apple-sdk-version/
  10. apple-slow-tls/
  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-builtins/
  42. compiler-lookup-paths/
  43. compiler-lookup-paths-2/
  44. compiler-rt-works-on-mingw/
  45. compiletest-self-test/
  46. compressed-debuginfo/
  47. compressed-debuginfo-zstd/
  48. const-prop-lint/
  49. const-trait-stable-toolchain/
  50. const_fn_mir/
  51. core-no-fp-fmt-parse/
  52. core-no-oom-handling/
  53. cpp-global-destructors/
  54. crate-circular-deps-link/
  55. crate-data-smoke/
  56. crate-hash-rustc-version/
  57. crate-loading/
  58. crate-loading-crate-depends-on-itself/
  59. crate-loading-multiple-candidates/
  60. crate-name-priority/
  61. cross-lang-lto/
  62. cross-lang-lto-clang/
  63. cross-lang-lto-pgo-smoketest-clang/
  64. cross-lang-lto-riscv-abi/
  65. cross-lang-lto-upstream-rlibs/
  66. CURRENT_RUSTC_VERSION/
  67. debug-assertions/
  68. debugger-visualizer-dep-info/
  69. dep-graph/
  70. dep-info/
  71. deref-impl-rustdoc-ice/
  72. diagnostics-traits-from-duplicate-crates/
  73. dirty-incr-due-to-hard-link/
  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-output-flavors/
  82. dylib-chain/
  83. dylib-soname/
  84. embed-metadata/
  85. embed-source-dwarf/
  86. emit/
  87. emit-named-files/
  88. emit-path-unhashed/
  89. emit-shared-files/
  90. emit-stack-sizes/
  91. emit-to-stdout/
  92. env-dep-info/
  93. error-found-staticlib-instead-crate/
  94. error-writing-dependencies/
  95. exit-code/
  96. export/
  97. export-executable-symbols/
  98. extern-diff-internal-name/
  99. extern-flag-disambiguates/
  100. extern-flag-fun/
  101. extern-flag-pathless/
  102. extern-flag-rename-transitive/
  103. extern-fn-explicit-align/
  104. extern-fn-generic/
  105. extern-fn-mangle/
  106. extern-fn-reachable/
  107. extern-fn-slice-no-ice/
  108. extern-fn-struct-passing-abi/
  109. extern-fn-with-extern-types/
  110. extern-fn-with-packed-struct/
  111. extern-fn-with-union/
  112. extern-multiple-copies/
  113. extern-multiple-copies2/
  114. extern-overrides-distribution/
  115. external-crate-panic-handle-no-lint/
  116. extra-filename-with-temp-outputs/
  117. fat-then-thin-lto/
  118. fmt-write-bloat/
  119. forced-unwind-terminate-pof/
  120. foreign-double-unwind/
  121. foreign-exceptions/
  122. foreign-rust-exceptions/
  123. glibc-staticlib-args/
  124. glibc-symbols-x86_64-unknown-linux-gnu/
  125. ice-dep-cannot-find-dep/
  126. ice-static-mir/
  127. import-macro-verbatim/
  128. inaccessible-temp-dir/
  129. include-all-symbols-linking/
  130. include-bytes-deps/
  131. incr-add-rust-src-component/
  132. incr-foreign-head-span/
  133. incr-prev-body-beyond-eof/
  134. incr-test-moved-file/
  135. incremental-debugger-visualizer/
  136. incremental-session-fail/
  137. inline-always-many-cgu/
  138. interdependent-c-libraries/
  139. intrinsic-unreachable/
  140. invalid-library/
  141. invalid-so/
  142. invalid-staticlib/
  143. invalid-symlink-search-path/
  144. invalid-tmpdir-env-var/
  145. issue-107495-archive-permissions/
  146. issue-125484-used-dependencies/
  147. issue-84395-lto-embed-bitcode/
  148. jobserver-error/
  149. json-error-no-offset/
  150. lib-trait-for-trait-no-ice/
  151. libs-through-symlinks/
  152. libstd-no-protected/
  153. libtest-json/
  154. libtest-junit/
  155. libtest-padding/
  156. libtest-thread-limit/
  157. link-arg/
  158. link-args-order/
  159. link-cfg/
  160. link-dedup/
  161. link-eh-frame-terminator/
  162. link-framework/
  163. link-native-static-lib-to-dylib/
  164. link-path-order/
  165. link-under-xcode/
  166. linkage-attr-framework/
  167. linkage-attr-on-static/
  168. linker-plugin-lto-fat/
  169. linker-warning/
  170. llvm-ident/
  171. llvm-location-discriminator-limit-dummy-span/
  172. llvm-outputs/
  173. long-linker-command-lines/
  174. long-linker-command-lines-cmd-exe/
  175. longjmp-across-rust/
  176. ls-metadata/
  177. lto-avoid-object-duplication/
  178. lto-dylib-dep/
  179. lto-empty/
  180. lto-linkage-used-attr/
  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. multiple-emits/
  205. musl-default-linking/
  206. naked-symbol-visibility/
  207. native-lib-alt-naming/
  208. native-lib-load-order/
  209. native-link-modifier-bundle/
  210. native-link-modifier-verbatim-linker/
  211. native-link-modifier-verbatim-rustc/
  212. native-link-modifier-whole-archive/
  213. no-alloc-shim/
  214. no-builtins-attribute/
  215. no-builtins-lto/
  216. no-cdylib-as-rdylib/
  217. no-duplicate-libs/
  218. no-input-file/
  219. no-intermediate-extras/
  220. non-pie-thread-local/
  221. non-unicode-env/
  222. non-unicode-in-incremental-dir/
  223. notify-all-emit-artifacts/
  224. obey-crate-type-flag/
  225. optimization-remarks-dir/
  226. optimization-remarks-dir-pgo/
  227. option-output-no-space/
  228. output-filename-conflicts-with-directory/
  229. output-filename-overwrites-input/
  230. output-type-permutations/
  231. output-with-hyphens/
  232. override-aliased-flags/
  233. overwrite-input/
  234. panic-abort-eh_frame/
  235. panic-impl-transitive/
  236. parallel-rustc-no-overwrite/
  237. pass-linker-flags/
  238. pass-linker-flags-flavor/
  239. pass-linker-flags-from-dep/
  240. pass-non-c-like-enum-to-c/
  241. pdb-alt-path/
  242. pdb-buildinfo-cl-cmd/
  243. pdb-sobjname/
  244. pgo-branch-weights/
  245. pgo-embed-bc-lto/
  246. pgo-gen/
  247. pgo-gen-lto/
  248. pgo-gen-no-imp-symbols/
  249. pgo-indirect-call-promotion/
  250. pgo-use/
  251. pointer-auth-link-with-c/
  252. pointer-auth-link-with-c-lto-clang/
  253. prefer-dylib/
  254. prefer-rlib/
  255. pretty-print-to-file/
  256. pretty-print-with-dep-file/
  257. print-cfg/
  258. print-check-cfg/
  259. print-crate-root-lint-levels/
  260. print-native-static-libs/
  261. print-request-help-stable-unstable/
  262. print-target-cpus-native/
  263. print-target-list/
  264. print-to-output/
  265. proc-macro-init-order/
  266. proc-macro-three-crates/
  267. prune-link-args/
  268. raw-dylib-alt-calling-convention/
  269. raw-dylib-c/
  270. raw-dylib-cross-compilation/
  271. raw-dylib-custom-dlltool/
  272. raw-dylib-elf/
  273. raw-dylib-elf-verbatim/
  274. raw-dylib-elf-verbatim-absolute/
  275. raw-dylib-import-name-type/
  276. raw-dylib-inline-cross-dylib/
  277. raw-dylib-link-ordinal/
  278. raw-dylib-stdcall-ordinal/
  279. raw-fn-pointer-opt-undefined-behavior/
  280. reachable-extern-fn-available-lto/
  281. redundant-libs/
  282. relocation-model/
  283. relro-levels/
  284. remap-path-prefix/
  285. remap-path-prefix-dwarf/
  286. remove-dir-all-race/
  287. repr128-dwarf/
  288. reproducible-build/
  289. reproducible-build-2/
  290. reset-codegen-1/
  291. resolve-rename/
  292. return-non-c-like-enum/
  293. return-non-c-like-enum-from-c/
  294. rlib-chain/
  295. rlib-format-packed-bundled-libs/
  296. rlib-format-packed-bundled-libs-2/
  297. rlib-format-packed-bundled-libs-3/
  298. rmeta-preferred/
  299. run-in-tmpdir-self-test/
  300. rust-lld/
  301. rust-lld-custom-target/
  302. rust-lld-link-script-provide/
  303. rust-lld-x86_64-unknown-linux-gnu/
  304. rust-lld-x86_64-unknown-linux-gnu-dist/
  305. rustc-crates-on-stable/
  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-paths/
  322. rustdoc-scrape-examples-remap/
  323. rustdoc-scrape-examples-test/
  324. rustdoc-scrape-examples-whitespace/
  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. thumb-none-cortex-m/
  375. thumb-none-qemu/
  376. track-path-dep-info/
  377. track-pgo-dep-info/
  378. translation/
  379. type-mismatch-same-crate-name/
  380. uefi-qemu/
  381. unknown-mod-stdin/
  382. unstable-feature-usage-metrics/
  383. unstable-feature-usage-metrics-incremental/
  384. unstable-flag-required/
  385. use-suggestions-rust-2018/
  386. used/
  387. used-cdylib-macos/
  388. used-proc-macro/
  389. version-check/
  390. version-verbose-commit-hash/
  391. volatile-intrinsics/
  392. wasm-custom-section/
  393. wasm-custom-sections-opt/
  394. wasm-exceptions-nostd/
  395. wasm-export-all-symbols/
  396. wasm-import-module/
  397. wasm-override-linker/
  398. wasm-panic-small/
  399. wasm-spurious-import/
  400. wasm-stringify-ints-small/
  401. wasm-symbols-different-module/
  402. wasm-symbols-not-exported/
  403. wasm-symbols-not-imported/
  404. weird-output-filenames/
  405. windows-binary-no-external-deps/
  406. windows-safeseh/
  407. windows-spawn/
  408. windows-ws2_32/
  409. x86_64-fortanix-unknown-sgx-lvi/
  410. zero-extend-abi-param-passing/
  411. 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.