Skip to content

Commit f5dbd19

Browse files
committed
Add tidy check to error on new Makefiles in tests/run-make
1 parent a0569fa commit f5dbd19

File tree

4 files changed

+443
-0
lines changed

4 files changed

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

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

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ 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+
check!(run_make_tests, &root_path, bless);
106107
check!(mir_opt_tests, &tests_path, bless);
107108
check!(rustdoc_gui_tests, &tests_path);
108109
check!(rustdoc_css_themes, &librustdoc_path);

0 commit comments

Comments
 (0)