Skip to content

Commit d0e8cbb

Browse files
committed
Auto merge of #122898 - jieyouxu:tidy-no-new-makefiles, r=albertlarsan68
Add tidy check to error on new `Makefile`s in `tests/run-make` We would like to strongly encourage new `run-make` tests to be written in Rust and not add any new `Makefile`-based `run-make` tests.
2 parents 2781687 + 7a99be3 commit d0e8cbb

File tree

4 files changed

+429
-0
lines changed

4 files changed

+429
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,337 @@
1+
run-make/alloc-no-oom-handling/Makefile
2+
run-make/alloc-no-rc/Makefile
3+
run-make/alloc-no-sync/Makefile
4+
run-make/allocator-shim-circular-deps/Makefile
5+
run-make/allow-non-lint-warnings-cmdline/Makefile
6+
run-make/allow-warnings-cmdline-stability/Makefile
7+
run-make/archive-duplicate-names/Makefile
8+
run-make/arguments-non-c-like-enum/Makefile
9+
run-make/atomic-lock-free/Makefile
10+
run-make/bare-outfile/Makefile
11+
run-make/branch-protection-check-IBT/Makefile
12+
run-make/c-dynamic-dylib/Makefile
13+
run-make/c-dynamic-rlib/Makefile
14+
run-make/c-link-to-rust-dylib/Makefile
15+
run-make/c-link-to-rust-staticlib/Makefile
16+
run-make/c-link-to-rust-va-list-fn/Makefile
17+
run-make/c-static-dylib/Makefile
18+
run-make/c-static-rlib/Makefile
19+
run-make/c-unwind-abi-catch-lib-panic/Makefile
20+
run-make/c-unwind-abi-catch-panic/Makefile
21+
run-make/cat-and-grep-sanity-check/Makefile
22+
run-make/cdylib-dylib-linkage/Makefile
23+
run-make/cdylib-fewer-symbols/Makefile
24+
run-make/cdylib/Makefile
25+
run-make/codegen-options-parsing/Makefile
26+
run-make/comment-section/Makefile
27+
run-make/compile-stdin/Makefile
28+
run-make/compiler-lookup-paths-2/Makefile
29+
run-make/compiler-lookup-paths/Makefile
30+
run-make/compiler-rt-works-on-mingw/Makefile
31+
run-make/compressed-debuginfo/Makefile
32+
run-make/const-prop-lint/Makefile
33+
run-make/const_fn_mir/Makefile
34+
run-make/core-no-fp-fmt-parse/Makefile
35+
run-make/core-no-oom-handling/Makefile
36+
run-make/crate-data-smoke/Makefile
37+
run-make/crate-hash-rustc-version/Makefile
38+
run-make/crate-name-priority/Makefile
39+
run-make/cross-lang-lto-clang/Makefile
40+
run-make/cross-lang-lto-pgo-smoketest/Makefile
41+
run-make/cross-lang-lto-upstream-rlibs/Makefile
42+
run-make/cross-lang-lto/Makefile
43+
run-make/debug-assertions/Makefile
44+
run-make/debugger-visualizer-dep-info/Makefile
45+
run-make/dep-graph/Makefile
46+
run-make/dep-info-doesnt-run-much/Makefile
47+
run-make/dep-info-spaces/Makefile
48+
run-make/dep-info/Makefile
49+
run-make/doctests-keep-binaries/Makefile
50+
run-make/doctests-runtool/Makefile
51+
run-make/dump-ice-to-disk/Makefile
52+
run-make/dump-mono-stats/Makefile
53+
run-make/duplicate-output-flavors/Makefile
54+
run-make/dylib-chain/Makefile
55+
run-make/emit-named-files/Makefile
56+
run-make/emit-path-unhashed/Makefile
57+
run-make/emit-shared-files/Makefile
58+
run-make/emit-stack-sizes/Makefile
59+
run-make/emit-to-stdout/Makefile
60+
run-make/emit/Makefile
61+
run-make/env-dep-info/Makefile
62+
run-make/error-found-staticlib-instead-crate/Makefile
63+
run-make/error-writing-dependencies/Makefile
64+
run-make/exit-code/Makefile
65+
run-make/export-executable-symbols/Makefile
66+
run-make/extern-diff-internal-name/Makefile
67+
run-make/extern-flag-disambiguates/Makefile
68+
run-make/extern-flag-fun/Makefile
69+
run-make/extern-flag-pathless/Makefile
70+
run-make/extern-flag-rename-transitive/Makefile
71+
run-make/extern-fn-explicit-align/Makefile
72+
run-make/extern-fn-generic/Makefile
73+
run-make/extern-fn-mangle/Makefile
74+
run-make/extern-fn-reachable/Makefile
75+
run-make/extern-fn-struct-passing-abi/Makefile
76+
run-make/extern-fn-with-extern-types/Makefile
77+
run-make/extern-fn-with-packed-struct/Makefile
78+
run-make/extern-fn-with-union/Makefile
79+
run-make/extern-multiple-copies/Makefile
80+
run-make/extern-multiple-copies2/Makefile
81+
run-make/extern-overrides-distribution/Makefile
82+
run-make/extra-filename-with-temp-outputs/Makefile
83+
run-make/fmt-write-bloat/Makefile
84+
run-make/forced-unwind-terminate-pof/Makefile
85+
run-make/foreign-double-unwind/Makefile
86+
run-make/foreign-exceptions/Makefile
87+
run-make/foreign-rust-exceptions/Makefile
88+
run-make/fpic/Makefile
89+
run-make/glibc-staticlib-args/Makefile
90+
run-make/hir-tree/Makefile
91+
run-make/inaccessible-temp-dir/Makefile
92+
run-make/include_bytes_deps/Makefile
93+
run-make/incr-add-rust-src-component/Makefile
94+
run-make/incr-foreign-head-span/Makefile
95+
run-make/incr-prev-body-beyond-eof/Makefile
96+
run-make/incremental-debugger-visualizer/Makefile
97+
run-make/incremental-session-fail/Makefile
98+
run-make/inline-always-many-cgu/Makefile
99+
run-make/interdependent-c-libraries/Makefile
100+
run-make/intrinsic-unreachable/Makefile
101+
run-make/invalid-library/Makefile
102+
run-make/invalid-so/Makefile
103+
run-make/invalid-staticlib/Makefile
104+
run-make/issue-107094/Makefile
105+
run-make/issue-10971-temps-dir/Makefile
106+
run-make/issue-109934-lto-debuginfo/Makefile
107+
run-make/issue-11908/Makefile
108+
run-make/issue-14500/Makefile
109+
run-make/issue-14698/Makefile
110+
run-make/issue-15460/Makefile
111+
run-make/issue-18943/Makefile
112+
run-make/issue-20626/Makefile
113+
run-make/issue-22131/Makefile
114+
run-make/issue-24445/Makefile
115+
run-make/issue-25581/Makefile
116+
run-make/issue-26006/Makefile
117+
run-make/issue-26092/Makefile
118+
run-make/issue-28595/Makefile
119+
run-make/issue-28766/Makefile
120+
run-make/issue-30063/Makefile
121+
run-make/issue-33329/Makefile
122+
run-make/issue-35164/Makefile
123+
run-make/issue-36710/Makefile
124+
run-make/issue-37839/Makefile
125+
run-make/issue-37893/Makefile
126+
run-make/issue-38237/Makefile
127+
run-make/issue-40535/Makefile
128+
run-make/issue-46239/Makefile
129+
run-make/issue-47384/Makefile
130+
run-make/issue-47551/Makefile
131+
run-make/issue-51671/Makefile
132+
run-make/issue-53964/Makefile
133+
run-make/issue-64153/Makefile
134+
run-make/issue-68794-textrel-on-minimal-lib/Makefile
135+
run-make/issue-69368/Makefile
136+
run-make/issue-7349/Makefile
137+
run-make/issue-83045/Makefile
138+
run-make/issue-83112-incr-test-moved-file/Makefile
139+
run-make/issue-84395-lto-embed-bitcode/Makefile
140+
run-make/issue-85019-moved-src-dir/Makefile
141+
run-make/issue-85401-static-mir/Makefile
142+
run-make/issue-85441/Makefile
143+
run-make/issue-88756-default-output/Makefile
144+
run-make/issue-97463-abi-param-passing/Makefile
145+
run-make/issue64319/Makefile
146+
run-make/jobserver-error/Makefile
147+
run-make/libs-through-symlinks/Makefile
148+
run-make/libtest-json/Makefile
149+
run-make/libtest-junit/Makefile
150+
run-make/libtest-padding/Makefile
151+
run-make/libtest-thread-limit/Makefile
152+
run-make/link-arg/Makefile
153+
run-make/link-args-order/Makefile
154+
run-make/link-cfg/Makefile
155+
run-make/link-dedup/Makefile
156+
run-make/link-framework/Makefile
157+
run-make/link-path-order/Makefile
158+
run-make/linkage-attr-on-static/Makefile
159+
run-make/llvm-ident/Makefile
160+
run-make/llvm-outputs/Makefile
161+
run-make/long-linker-command-lines-cmd-exe/Makefile
162+
run-make/long-linker-command-lines/Makefile
163+
run-make/longjmp-across-rust/Makefile
164+
run-make/ls-metadata/Makefile
165+
run-make/lto-dylib-dep/Makefile
166+
run-make/lto-empty/Makefile
167+
run-make/lto-linkage-used-attr/Makefile
168+
run-make/lto-no-link-whole-rlib/Makefile
169+
run-make/lto-readonly-lib/Makefile
170+
run-make/lto-smoke-c/Makefile
171+
run-make/lto-smoke/Makefile
172+
run-make/macos-deployment-target/Makefile
173+
run-make/macos-fat-archive/Makefile
174+
run-make/manual-crate-name/Makefile
175+
run-make/manual-link/Makefile
176+
run-make/many-crates-but-no-match/Makefile
177+
run-make/metadata-dep-info/Makefile
178+
run-make/metadata-flag-frobs-symbols/Makefile
179+
run-make/min-global-align/Makefile
180+
run-make/mingw-export-call-convention/Makefile
181+
run-make/mismatching-target-triples/Makefile
182+
run-make/missing-crate-dependency/Makefile
183+
run-make/mixing-deps/Makefile
184+
run-make/mixing-formats/Makefile
185+
run-make/mixing-libs/Makefile
186+
run-make/msvc-opt-minsize/Makefile
187+
run-make/multiple-emits/Makefile
188+
run-make/native-link-modifier-bundle/Makefile
189+
run-make/native-link-modifier-verbatim-linker/Makefile
190+
run-make/native-link-modifier-verbatim-rustc/Makefile
191+
run-make/native-link-modifier-whole-archive/Makefile
192+
run-make/no-alloc-shim/Makefile
193+
run-make/no-builtins-attribute/Makefile
194+
run-make/no-builtins-lto/Makefile
195+
run-make/no-cdylib-as-rdylib/Makefile
196+
run-make/no-duplicate-libs/Makefile
197+
run-make/no-input-file/Makefile
198+
run-make/no-intermediate-extras/Makefile
199+
run-make/obey-crate-type-flag/Makefile
200+
run-make/optimization-remarks-dir-pgo/Makefile
201+
run-make/optimization-remarks-dir/Makefile
202+
run-make/output-filename-conflicts-with-directory/Makefile
203+
run-make/output-filename-overwrites-input/Makefile
204+
run-make/output-type-permutations/Makefile
205+
run-make/output-with-hyphens/Makefile
206+
run-make/override-aliased-flags/Makefile
207+
run-make/overwrite-input/Makefile
208+
run-make/panic-abort-eh_frame/Makefile
209+
run-make/panic-impl-transitive/Makefile
210+
run-make/pass-linker-flags-flavor/Makefile
211+
run-make/pass-linker-flags-from-dep/Makefile
212+
run-make/pass-linker-flags/Makefile
213+
run-make/pass-non-c-like-enum-to-c/Makefile
214+
run-make/pdb-alt-path/Makefile
215+
run-make/pdb-buildinfo-cl-cmd/Makefile
216+
run-make/pgo-branch-weights/Makefile
217+
run-make/pgo-gen-lto/Makefile
218+
run-make/pgo-gen-no-imp-symbols/Makefile
219+
run-make/pgo-gen/Makefile
220+
run-make/pgo-indirect-call-promotion/Makefile
221+
run-make/pgo-use/Makefile
222+
run-make/pointer-auth-link-with-c/Makefile
223+
run-make/prefer-dylib/Makefile
224+
run-make/prefer-rlib/Makefile
225+
run-make/pretty-print-to-file/Makefile
226+
run-make/pretty-print-with-dep-file/Makefile
227+
run-make/print-calling-conventions/Makefile
228+
run-make/print-cfg/Makefile
229+
run-make/print-native-static-libs/Makefile
230+
run-make/print-target-list/Makefile
231+
run-make/profile/Makefile
232+
run-make/prune-link-args/Makefile
233+
run-make/raw-dylib-alt-calling-convention/Makefile
234+
run-make/raw-dylib-c/Makefile
235+
run-make/raw-dylib-cross-compilation/Makefile
236+
run-make/raw-dylib-custom-dlltool/Makefile
237+
run-make/raw-dylib-import-name-type/Makefile
238+
run-make/raw-dylib-inline-cross-dylib/Makefile
239+
run-make/raw-dylib-link-ordinal/Makefile
240+
run-make/raw-dylib-stdcall-ordinal/Makefile
241+
run-make/redundant-libs/Makefile
242+
run-make/relocation-model/Makefile
243+
run-make/relro-levels/Makefile
244+
run-make/remap-path-prefix-dwarf/Makefile
245+
run-make/remap-path-prefix/Makefile
246+
run-make/repr128-dwarf/Makefile
247+
run-make/reproducible-build-2/Makefile
248+
run-make/reproducible-build/Makefile
249+
run-make/resolve-rename/Makefile
250+
run-make/return-non-c-like-enum-from-c/Makefile
251+
run-make/return-non-c-like-enum/Makefile
252+
run-make/rlib-chain/Makefile
253+
run-make/rlib-format-packed-bundled-libs-2/Makefile
254+
run-make/rlib-format-packed-bundled-libs-3/Makefile
255+
run-make/rlib-format-packed-bundled-libs/Makefile
256+
run-make/rmeta-preferred/Makefile
257+
run-make/rust-lld-custom-target/Makefile
258+
run-make/rust-lld/Makefile
259+
run-make/rustc-macro-dep-files/Makefile
260+
run-make/rustdoc-determinism/Makefile
261+
run-make/rustdoc-error-lines/Makefile
262+
run-make/rustdoc-io-error/Makefile
263+
run-make/rustdoc-map-file/Makefile
264+
run-make/rustdoc-output-path/Makefile
265+
run-make/rustdoc-scrape-examples-invalid-expr/Makefile
266+
run-make/rustdoc-scrape-examples-macros/Makefile
267+
run-make/rustdoc-scrape-examples-multiple/Makefile
268+
run-make/rustdoc-scrape-examples-ordering/Makefile
269+
run-make/rustdoc-scrape-examples-remap/Makefile
270+
run-make/rustdoc-scrape-examples-test/Makefile
271+
run-make/rustdoc-scrape-examples-whitespace/Makefile
272+
run-make/rustdoc-shared-flags/Makefile
273+
run-make/rustdoc-target-spec-json-path/Makefile
274+
run-make/rustdoc-themes/Makefile
275+
run-make/rustdoc-verify-output-files/Makefile
276+
run-make/rustdoc-with-out-dir-option/Makefile
277+
run-make/rustdoc-with-output-option/Makefile
278+
run-make/rustdoc-with-short-out-dir-option/Makefile
279+
run-make/sanitizer-cdylib-link/Makefile
280+
run-make/sanitizer-dylib-link/Makefile
281+
run-make/sanitizer-staticlib-link/Makefile
282+
run-make/separate-link-fail/Makefile
283+
run-make/separate-link/Makefile
284+
run-make/sepcomp-cci-copies/Makefile
285+
run-make/sepcomp-inlining/Makefile
286+
run-make/sepcomp-separate/Makefile
287+
run-make/share-generics-dylib/Makefile
288+
run-make/short-ice/Makefile
289+
run-make/silly-file-names/Makefile
290+
run-make/simd-ffi/Makefile
291+
run-make/simple-dylib/Makefile
292+
run-make/simple-rlib/Makefile
293+
run-make/split-debuginfo/Makefile
294+
run-make/stable-symbol-names/Makefile
295+
run-make/static-dylib-by-default/Makefile
296+
run-make/static-extern-type/Makefile
297+
run-make/static-pie/Makefile
298+
run-make/static-unwinding/Makefile
299+
run-make/staticlib-blank-lib/Makefile
300+
run-make/staticlib-dylib-linkage/Makefile
301+
run-make/std-core-cycle/Makefile
302+
run-make/stdin-non-utf8/Makefile
303+
run-make/suspicious-library/Makefile
304+
run-make/symbol-mangling-hashed/Makefile
305+
run-make/symbol-visibility/Makefile
306+
run-make/symbols-include-type-name/Makefile
307+
run-make/symlinked-extern/Makefile
308+
run-make/symlinked-libraries/Makefile
309+
run-make/symlinked-rlib/Makefile
310+
run-make/sysroot-crates-are-unstable/Makefile
311+
run-make/target-cpu-native/Makefile
312+
run-make/target-specs/Makefile
313+
run-make/target-without-atomic-cas/Makefile
314+
run-make/test-benches/Makefile
315+
run-make/test-harness/Makefile
316+
run-make/thumb-none-cortex-m/Makefile
317+
run-make/thumb-none-qemu/Makefile
318+
run-make/track-path-dep-info/Makefile
319+
run-make/track-pgo-dep-info/Makefile
320+
run-make/translation/Makefile
321+
run-make/type-mismatch-same-crate-name/Makefile
322+
run-make/unknown-mod-stdin/Makefile
323+
run-make/unstable-flag-required/Makefile
324+
run-make/use-suggestions-rust-2018/Makefile
325+
run-make/used-cdylib-macos/Makefile
326+
run-make/used/Makefile
327+
run-make/valid-print-requests/Makefile
328+
run-make/version/Makefile
329+
run-make/volatile-intrinsics/Makefile
330+
run-make/wasm-exceptions-nostd/Makefile
331+
run-make/wasm-override-linker/Makefile
332+
run-make/weird-output-filenames/Makefile
333+
run-make/windows-binary-no-external-deps/Makefile
334+
run-make/windows-safeseh/Makefile
335+
run-make/windows-spawn/Makefile
336+
run-make/windows-subsystem/Makefile
337+
run-make/x86_64-fortanix-unknown-sgx-lvi/Makefile

src/tools/tidy/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ mod fluent_used;
6969
pub(crate) mod iter_header;
7070
pub mod mir_opt_tests;
7171
pub mod pal;
72+
pub mod run_make_tests;
7273
pub mod rustdoc_css_themes;
7374
pub mod rustdoc_gui_tests;
7475
pub mod style;

src/tools/tidy/src/main.rs

+2
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ fn main() {
103103
check!(tests_revision_unpaired_stdout_stderr, &tests_path);
104104
check!(debug_artifacts, &tests_path);
105105
check!(ui_tests, &root_path, bless);
106+
// FIXME(jieyouxu): remove this check once all run-make tests are ported over to rmake.rs.
107+
check!(run_make_tests, &tests_path, &src_path, bless);
106108
check!(mir_opt_tests, &tests_path, bless);
107109
check!(rustdoc_gui_tests, &tests_path);
108110
check!(rustdoc_css_themes, &librustdoc_path);

0 commit comments

Comments
 (0)