This is an archive of the discontinued LLVM Phabricator instance.

[flang][test] Remove RUN COMMANDS/EXPECTED OUTPUT/INPUT markers from test/Driver
ClosedPublic

Authored by MaskRay on Jun 28 2022, 2:57 PM.

Details

Summary

Uses of these markers are contrary to all other llvm-project subprojects
and carry no information for people who know the basics of a lit test.

I understand that there is an argument "this makes beginners get started
quickly" but I am unsure whether this is strong enough to deviate from
all other projects. https://llvm.org/docs/TestingGuide.html covers the
basics.

Diff Detail

Event Timeline

MaskRay created this revision.Jun 28 2022, 2:57 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 28 2022, 2:57 PM
MaskRay requested review of this revision.Jun 28 2022, 2:57 PM
peixin accepted this revision.Jun 28 2022, 11:43 PM

Agree. When I read it at first time, I am also confused and feel strange.

This revision is now accepted and ready to land.Jun 28 2022, 11:43 PM
clementval accepted this revision.Jun 29 2022, 12:06 AM
clementval added a subscriber: clementval.

+1. One can be confused those lines are something like run lines.

rovka accepted this revision.Jun 29 2022, 12:56 AM

Missed a spot ;) Otherwise LGTM

flang/test/Driver/dump-pft.f90
4–5
4–5
MaskRay updated this revision to Diff 440886.Jun 29 2022, 12:59 AM
MaskRay marked 2 inline comments as done.

remove two omitted comment blocks

This revision was landed with ongoing or failed builds.Jun 29 2022, 1:06 AM
This revision was automatically updated to reflect the committed changes.

There are similar markers in other files too:

grep -IEr "\-\-\-" -l  flang/test/Driver/
flang/test/Driver/macro-multiline.F90
flang/test/Driver/debug-parsing-log.f90
flang/test/Driver/driver-help.f90
flang/test/Driver/driver-help-hidden.f90
flang/test/Driver/output-paths.f90
flang/test/Driver/driver-error-cc1.c
flang/test/Driver/driver-error-cc1.cpp
flang/test/Driver/cpp-nocpp-command-line-macro.f90
flang/test/Driver/input-from-stdin.f90
flang/test/Driver/use-module-error.f90
flang/test/Driver/parse-fir-error.ll
flang/test/Driver/mllvm.f90
flang/test/Driver/fno-integrated-as.f90
flang/test/Driver/input-from-stdin-llvm.ll
flang/test/Driver/fixed-line-length.f90
flang/test/Driver/predefined-macros-compiler-version.F90
flang/test/Driver/cpp-nocpp-predefined-macro.F90
flang/test/Driver/emit-llvm.f90
flang/test/Driver/save-temps.f90
flang/test/Driver/default-backend-pipelines.f90
flang/test/Driver/implicit-none.f90
flang/test/Driver/print-effective-triple.f90
flang/test/Driver/module-suffix.f90
flang/test/Driver/mllvm_vs_mmlir.f90
flang/test/Driver/werror-scan.f
flang/test/Driver/unparse-use-analyzed.f95
flang/test/Driver/dump-all.f90
flang/test/Driver/default-optimization-pipelines.f90
flang/test/Driver/intrinsic-module-path.f90
flang/test/Driver/escaped-backslash.f90
flang/test/Driver/parse-error.ll
flang/test/Driver/missing-input.f90
flang/test/Driver/target.f90
flang/test/Driver/dump-parse-tree-no-sema.f90
flang/test/Driver/print-target-triple.f90
flang/test/Driver/flarge-sizes.f90
flang/test/Driver/fdefault.f90
flang/test/Driver/syntax-only.f90
flang/test/Driver/werror-parse.f
flang/test/Driver/use-module.f90
flang/test/Driver/include-header.f90
flang/test/Driver/fixed-free-detection.f90
flang/test/Driver/debug-provenance.f90
flang/test/Driver/write-module.f90
flang/test/Driver/flang_f_opts.f90
flang/test/Driver/dump-all-bad.f90
flang/test/Driver/fixed-free-flag.f90
flang/test/Driver/werror-sema.f90
flang/test/Driver/include-omp-header.f90
flang/test/Driver/parse-ir-error.f95
flang/test/Driver/std2018-wrong.f90
flang/test/Driver/debug-measure-parse-tree.f90
flang/test/Driver/get-definition.f90
flang/test/Driver/phases.f90
flang/test/Driver/pic-flags.f90
flang/test/Driver/werror-wrong.f90
flang/test/Driver/std2018.f90
flang/test/Driver/missing-arg.f90
flang/test/Driver/macro-def-undef.F90
flang/test/Driver/driver-version.f90

Why not update all of them?