[flang-commits] [PATCH] D104961: [flang][docs] Minor update to Fortran LLVM Tests-suite docs.

Nichols A. Romero via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Jun 28 08:02:23 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGd6cb0143ccce: [flang][docs] Minor update to Fortran LLVM Tests-suite docs. (authored by naromero77).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104961

Files:
  flang/docs/FortranLLVMTestSuite.md


Index: flang/docs/FortranLLVMTestSuite.md
===================================================================
--- flang/docs/FortranLLVMTestSuite.md
+++ flang/docs/FortranLLVMTestSuite.md
@@ -21,18 +21,18 @@
 
 Fortran support can be enabled by setting the following CMake variables:
 ```
-% cmake -DCMAKE_Fortran_COMPILER=<path to Fortran compiler> \
-        -DTEST_SUITE_FORTRAN:STRING=ON \
-        -C../test-suite/cmake/caches/O3.cmake \
-        ../test-suite
+cmake -G "Ninja" -DCMAKE_C_COMPILER=<path to C compiler> \
+    -DCMAKE_CXX_COMPILER=<path to C++ compiler> \
+    -DCMAKE_Fortran_COMPILER=<path to Fortran compiler> \
+    -DTEST_SUITE_COLLECT_CODE_SIZE:STRING=OFF \
+    -DTEST_SUITE_SUBDIRS:STRING="Fortran" \
+    -DTEST_SUITE_FORTRAN:STRING=ON ..
 ```
 
-At the moment, there is only a "hello world" Fortran test. A current
-shortcoming in the design of the test suite is that building the C/C++
-tests is conflated with building and running the Fortran tests,
-i.e. it is not possible to only build and run the Fortran tests with
-the exception of the [External
-tests](https://llvm.org/docs/TestSuiteGuide.html#external-suites).
+This will configure the test-suite to run only the Fortran tests which
+are found in the Fortran subdirectory. To run the C/C++ tests
+alongside the Fortran tests omit the `-DTEST_SUITE_SUBDIRS` CMake
+variable.
 
 
 ## Running the SPEC CPU 2017


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104961.354904.patch
Type: text/x-patch
Size: 1400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210628/7b7729f6/attachment.bin>


More information about the flang-commits mailing list