[PATCH] D101281: [flang] Remove `%f18` from LIT configuration files

Andrzej Warzynski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 6 01:43:18 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG65cd0d6be477: [flang] Remove `%f18` from LIT configuration files (authored by awarzynski).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101281/new/

https://reviews.llvm.org/D101281

Files:
  flang/test/Driver/help-f18.f90
  flang/test/lit.cfg.py


Index: flang/test/lit.cfg.py
===================================================================
--- flang/test/lit.cfg.py
+++ flang/test/lit.cfg.py
@@ -42,6 +42,8 @@
 # config.
 if config.include_flang_new_driver_test:
   config.available_features.add('new-flang-driver')
+else:
+  config.available_features.add('old-flang-driver')
 
 # test_source_root: The root path where tests are located.
 config.test_source_root = os.path.dirname(__file__)
@@ -62,11 +64,7 @@
 
 # For each occurrence of a flang tool name, replace it with the full path to
 # the build directory holding that tool.
-tools = [
-  ToolSubst('%f18', command=FindTool('f18'),
-    unresolved='fatal')
-]
-
+tools = []
 if config.include_flang_new_driver_test:
    tools.append(ToolSubst('%flang', command=FindTool('flang-new'), unresolved='fatal'))
    tools.append(ToolSubst('%flang_fc1', command=FindTool('flang-new'),
Index: flang/test/Driver/help-f18.f90
===================================================================
--- flang/test/Driver/help-f18.f90
+++ flang/test/Driver/help-f18.f90
@@ -1,7 +1,9 @@
-! RUN: %f18 -h 2>&1 | FileCheck %s
-! RUN: %f18 -help 2>&1 | FileCheck %s
-! RUN: %f18 --help 2>&1 | FileCheck %s
-! RUN: %f18 -? 2>&1 | FileCheck %s
+! REQUIRES: old-flang-driver
+
+! RUN: %flang -h 2>&1 | FileCheck %s
+! RUN: %flang -help 2>&1 | FileCheck %s
+! RUN: %flang --help 2>&1 | FileCheck %s
+! RUN: %flang -? 2>&1 | FileCheck %s
 
 ! CHECK: f18: LLVM Fortran compiler
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101281.343323.patch
Type: text/x-patch
Size: 1466 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210506/e4880a1c/attachment.bin>


More information about the llvm-commits mailing list