Disable byterange tests if DAP remote tests are disabled.

This commit is contained in:
Ward Fisher 2020-01-07 17:40:03 -07:00
parent 4cb0aa75a0
commit 16e83896c6
2 changed files with 8 additions and 4 deletions

View File

@ -91,10 +91,12 @@ IF(BUILD_UTILITIES)
add_sh_test(nc_test run_diskless2)
ENDIF()
IF(ENABLE_BYTERANGE)
build_bin_test_no_prefix(tst_byterange)
add_sh_test(nc_test test_byterange)
ENDIF()
IF(ENABLE_DAP_REMOTE_TESTS)
IF(ENABLE_BYTERANGE)
build_bin_test_no_prefix(tst_byterange)
add_sh_test(nc_test test_byterange)
ENDIF()
ENDIF(ENABLE_DAP_REMOTE_TESTS)
IF(BUILD_MMAP)
add_sh_test(nc_test run_mmap)

View File

@ -61,10 +61,12 @@ if USE_HDF5
TESTPROGRAMS += tst_diskless6
endif
if ENABLE_DAP_REMOTE_TESTS
if ENABLE_BYTERANGE
TESTPROGRAMS += tst_byterange
tst_byterange_SOURCES = tst_byterange.c
endif
endif
# Set up the tests.
check_PROGRAMS += $(TESTPROGRAMS)