Skip to content

Commit 89d9d31

Browse files
committed
[Fortran/gfortran] Move disabled tests into separate files
At some point, there will be a script to automatically re-enable disabled tests as features are implemented. Moving the lists of disabled tests into a separate file should make it easier for a script to parse the file and avoids having to change the CMakeLists.txt files each time. Differential Revision: https://reviews.llvm.org/D153976
1 parent cb81ffd commit 89d9d31

38 files changed

+2983
-2272
lines changed

Fortran/gfortran/CMakeLists.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,29 @@ set(FLANG_ERRORING_FFLAGS
179179
-Wzerotrip
180180
)
181181

182+
macro(gfortran_populate_tests TESTS)
183+
string(REPLACE "${CMAKE_SOURCE_DIR}/" "" DIR "${CMAKE_CURRENT_SOURCE_DIR}")
184+
message(STATUS "Adding directory ${DIR}")
185+
186+
set(UNSUPPORTED "")
187+
set(UNIMPLEMENTED "")
188+
set(SKIPPED "")
189+
set(FAILING "")
190+
191+
# This will provide the lists of unsupported, unimplemented, skipped and
192+
# failing files.
193+
include(${CMAKE_CURRENT_SOURCE_DIR}/DisabledFiles.cmake)
194+
195+
list(APPEND UNSUPPORTED ${UNSUPPORTED_FILES})
196+
list(APPEND UNIMPLEMENTED ${UNIMPLEMENTED_FILES})
197+
list(APPEND SKIPPED ${SKIPPED_FILES})
198+
list(APPEND FAILING ${FAILING_FILES})
199+
200+
# The TESTS variable is expected to be set before the macro is called.
201+
add_tests(
202+
"${UNSUPPORTED}" "${UNIMPLEMENTED}" "${SKIPPED}" "${FAILING}")
203+
endmacro()
204+
182205
set(HEADER_SEARCH_PATH "${TEST_SUITE_FORTRAN_ISO_C_HEADER_DIR}")
183206
if (NOT HEADER_SEARCH_PATH)
184207
get_filename_component(Fortran_BINDIR ${CMAKE_Fortran_COMPILER} DIRECTORY)

0 commit comments

Comments
 (0)