Restricted tests from running when they require the utilities but the utilities were not built, in autoconf-based tests. See https://github.com/Unidata/netcdf-c/issues/313 for more information.

This commit is contained in:
Ward Fisher 2016-08-31 15:38:59 -06:00
parent a2073089bd
commit b2e4b74e3a
4 changed files with 21 additions and 11 deletions

View File

@ -1,4 +1,4 @@
M# -*- Autoconf -*-
# -*- Autoconf -*-
## Process this file with autoconf to produce a configure script.
# This is part of Unidata's netCDF package. Copyright 2005-2012, see

View File

@ -62,14 +62,16 @@ endif
TESTS = $(TESTPROGRAMS)
if BUILD_DISKLESS
TESTS += run_diskless.sh
if BUILD_MMAP
TESTS += run_mmap.sh
endif
if LARGE_FILE_TESTS
TESTS += run_diskless2.sh
endif
if BUILD_UTILITIES
if BUILD_DISKLESS
TESTS += run_diskless.sh
if BUILD_MMAP
TESTS += run_mmap.sh
endif
if LARGE_FILE_TESTS
TESTS += run_diskless2.sh
endif
endif
endif
if USE_PNETCDF

View File

@ -33,7 +33,11 @@ endif
TESTS = $(NC4_TESTS)
TESTS += run_grp_rename.sh run_empty_vlen_test.sh tst_misc.sh
if BUILD_UTILITIES
TESTS += run_grp_rename.sh tst_misc.sh
endif
TESTS += run_empty_vlen_test.sh
# If the v2 API was built, add its test program.
if BUILD_V2

View File

@ -33,7 +33,11 @@ if ENABLE_DAP_REMOTE_TESTS
check_PROGRAMS += nctestserver
nctestserver_SOURCES = nctestserver.c
TESTS += tst_remote3.sh tst_formatx.sh test_partvar testurl.sh
if BUILD_UTILITIES
TESTS += tst_remote3.sh tst_formatx.sh
endif
TESTS += test_partvar testurl.sh
if ENABLE_DAP_LONG_TESTS
TESTS += tst_longremote3.sh