[flang-commits] [PATCH] D146485: Add tests from gfortran test suite [build files]
Kiran Chandramohan via Phabricator via flang-commits
flang-commits at lists.llvm.org
Thu Apr 13 12:35:09 PDT 2023
kiranchandramohan added a comment.
In D146485#4261945 <https://reviews.llvm.org/D146485#4261945>, @tarunprabhu wrote:
> High-level instructions to test this patch.
>
> 1. Checkout the llvm-test-suite into a directory, say `llvm-test-suite`.
> 2. Apply this patch to `llvm-test-suite`.
> 3. Checkout/download the GCC source code, for instance from here <https://github.com/gcc-mirror/gcc> into a directory, say `gcc`.
> 4. Copy the ***contents*** of `gcc/gcc/testsuite/gfortran.dg` into `llvm-test-suite/Fortran/gfortran/regression/`
> 5. Copy the ***contents*** of `gcc/gcc/testsuite/gfortran.fortran-torture` into `llvm-test-suite/Fortran/gfortran/torture/`
>
> I use the following command to build the test-suite. It should only run the Fortran tests.
>
> cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/path/to/clang -DCMAKE_CXX_COMPILER=/path/to/clang++ -DCMAKE_Fortran_COMPILER=/path/to/flang-new -DCMAKE_Fortran_FLAGS=-flang-experimental-exec
> -DTEST_SUITE_FORTRAN=On -DTEST_SUITE_SUBDIRS=Fortran /path/to/source/of/llvm-test-suite
>
> I use the following command to run the tests from the llvm-test-suite build directory.
>
> NO_STOP_MESSAGE=1 llvm-lit -v .
>
> All the tests should pass.
>
> EDIT: Fix link to GCC.
Thanks @tarunprabhu for providing the instructions.
I am currently hitting the following error. Is the `lit.local.cfg` a generated file? Or is it missed in this patch?
CMake Error at Fortran/gfortran/regression/CMakeLists.txt:1839 (file):
file COPY cannot find
"/home/kircha02/llvm-test-suite/Fortran/gfortran/regression/lit.local.cfg":
No such file or directory.
I am trying to run this on AArch64 by commenting out the check for `X86`.
Repository:
rT test-suite
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146485/new/
https://reviews.llvm.org/D146485
More information about the flang-commits
mailing list