Skip to content

Commit 5aecd39

Browse files
committed
lint
1 parent 80f2807 commit 5aecd39

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

cmake/options.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
option(autobuild "auto-build HDF5 if missing/broken" on)
22

33
option(ENABLE_COVERAGE "Code coverage tests")
4+
45
option(dev "developer mode")
56

67
option(matlab "check HDF5 file writes with Matlab" off)
78
option(concepts "conceptual testing, for devs only" off)
89

910
option(zlib_legacy "use old ZLIB 1.x")
1011

11-
set(CMAKE_EXPORT_COMPILE_COMMANDS true)
12-
1312
set(CMAKE_TLS_VERIFY true)
1413

1514
if(dev)

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ add_subdirectory(read)
1313

1414
add_subdirectory(write)
1515

16-
1716
target_sources(h5fortran PRIVATE
1817
interface.f90 attributes.f90
19-
${CMAKE_CURRENT_BINARY_DIR}/pathlib.f90)
18+
${CMAKE_CURRENT_BINARY_DIR}/pathlib.f90
19+
)

src/tests/CMakeLists.txt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ add_executable(test_minimal test_minimal.f90)
33
# as part of h5fortran
44
target_link_libraries(test_minimal PRIVATE h5fortran::h5fortran)
55
set_target_properties(test_minimal PROPERTIES LABELS unit)
6-
add_test(NAME h5fortran:minimal
7-
COMMAND $<TARGET_FILE:test_minimal>)
6+
add_test(NAME h5fortran:minimal COMMAND test_minimal)
87
set_tests_properties(h5fortran:minimal PROPERTIES
98
FIXTURES_SETUP h5lib
109
TIMEOUT 5
@@ -24,7 +23,7 @@ target_compile_options(test_${name} PRIVATE "$<$<Fortran_COMPILER_ID:GNU>:-Wno-c
2423
set_target_properties(test_${name} PROPERTIES LABELS unit)
2524

2625
add_test(NAME h5fortran:${name}
27-
COMMAND $<TARGET_FILE:test_${name}>
26+
COMMAND test_${name}
2827
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
2928
)
3029
set_tests_properties(h5fortran:${name} PROPERTIES
@@ -35,14 +34,14 @@ TIMEOUT 10
3534

3635
if(${name} MATCHES ".*fail.*")
3736
set_tests_properties(h5fortran:${name} PROPERTIES
38-
WILL_FAIL true
39-
LABELS shaky
40-
DISABLED $<OR:$<BOOL:${CI}>,$<NOT:$<BOOL:test_shaky>>>
41-
)
37+
WILL_FAIL true
38+
LABELS shaky
39+
DISABLED $<OR:$<BOOL:${CI}>,$<NOT:$<BOOL:test_shaky>>>
40+
)
4241
else()
4342
set_tests_properties(h5fortran:${name} PROPERTIES
44-
LABELS unit
45-
)
43+
LABELS unit
44+
)
4645
endif()
4746

4847
endforeach()

0 commit comments

Comments
 (0)