Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup DAP4 testing #2555

Merged
merged 10 commits into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/run_tests_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ jobs:

- name: Check Cache
shell: bash -l {0}
run: ls ${HOME}/environments && ls ${HOME}/environments/${{ matrix.hdf5 }} && ls ${HOME}/environments/${{ matrix.hdf5}}/lib
run: ls ${HOME}/environments/${{ matrix.hdf5 }} && ls ${HOME}/environments/${{ matrix.hdf5}}/lib

###
# Configure and build
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1068,8 +1068,9 @@ IF(ENABLE_DAP)
SET(ENABLE_DAP4 ON CACHE BOOL "")
ELSE()
MESSAGE(STATUS "Disabling DAP4")

SET(ENABLE_DAP4 OFF CACHE BOOL "")
ENDIF(ENABLE_HDF5)
ENDIF(NOT ENABLE_HDF5)

ELSE()
SET(ENABLE_DAP2 OFF CACHE BOOL "")
Expand Down
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ This is the maintenance release which adds support for HDF5 version 1.14.0, in a
#### Changes

* [Bug Fix] Fix a race condition when testing missing filters. See [Github #2557](https://github.com/Unidata/netcdf-c/pull/2557).
* [Bug Fix] Make major changes to libdap4 and dap4_test to update the non-remote DAP4 tests. See [Github #2555](https://github.com/Unidata/netcdf-c/pull/2555).
* [Bug Fix] Fix some race conditions due to use of a common file in multiple shell scripts . See [Github #2552](https://github.com/Unidata/netcdf-c/pull/2552).


Expand Down
8 changes: 5 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -663,13 +663,15 @@ AC_ARG_WITH([testservers],
[AS_HELP_STRING([--with-testservers=<host:port>,<host:port>...],
[Specify the testserver(s) to try for remote tests.])],
[REMOTETESTSERVERS=$with_testservers], [REMOTETESTSERVERS=no])
msg="$REMOTETESTSERVERS"
if test "x$REMOTETESTSERVERS" = xno ; then
svclist="remotetest.unidata.ucar.edu"
REMOTETESTSERVERS="$svclist"
dfaltsvc="remotetest.unidata.ucar.edu"
REMOTETESTSERVERS="${dfaltsvc}"
fi
AC_MSG_RESULT([$svclist])
AC_DEFINE_UNQUOTED([REMOTETESTSERVERS], ["$REMOTETESTSERVERS"], [the testservers for remote tests.])
if test "x$dfaltsvc" != x ; then
AC_MSG_NOTICE([Using default: --with-testservers=${dfaltsvc}])
fi

# Set the config.h flags
if test "x$enable_dap" = xyes; then
Expand Down
19 changes: 8 additions & 11 deletions dap4_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ ADD_SUBDIRECTORY(baselineremote)
ADD_SUBDIRECTORY(baselinehyrax)
ADD_SUBDIRECTORY(baselinethredds)
ADD_SUBDIRECTORY(cdltestfiles)
ADD_SUBDIRECTORY(daptestfiles)
ADD_SUBDIRECTORY(dmrtestfiles)
ADD_SUBDIRECTORY(nctestfiles)
ADD_SUBDIRECTORY(misctestfiles)
ADD_SUBDIRECTORY(rawtestfiles)

FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.sh)

Expand All @@ -39,24 +36,24 @@ IF(ENABLE_TESTS)
# keep it from being too bad.

IF(BUILD_UTILITIES)
add_sh_test(dap4_test test_fillmismatch)

# Following tests are Unit tests, so not tested under visual studio
IF(NOT MSVC)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/libdap4)
build_bin_test(test_parse)
build_bin_test(test_meta)
IF(USE_X_GETOPT)
build_bin_test(test_data XGetopt.c)
ELSE()
build_bin_test(test_data)
ENDIF()
add_sh_test(dap4_test test_parse)
add_sh_test(dap4_test test_raw)
add_sh_test(dap4_test test_meta)
add_sh_test(dap4_test test_data)
ENDIF()
ENDIF(BUILD_UTILITIES)

IF(ENABLE_DAP_REMOTE_TESTS)
add_sh_test(dap4_test test_hyrax)
add_sh_test(dap4_test test_thredds)
# add_sh_test(dap4_test test_remote)
# add_sh_test(dap4_test test_hyrax)
# add_sh_test(dap4_test test_thredds)
ENDIF(ENABLE_DAP_REMOTE_TESTS)

ENDIF(ENABLE_TESTS)
Expand Down
27 changes: 12 additions & 15 deletions dap4_test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ check_PROGRAMS += test_parse test_meta test_data

noinst_PROGRAMS =

TESTS += test_parse.sh test_meta.sh test_data.sh test_fillmismatch.sh test_raw.sh
TESTS += test_parse.sh test_meta.sh test_data.sh test_raw.sh

# Note tst_curlopt.sh is intended to be run manually; see comments in file.
# Note test_curlopt.sh is intended to be run manually; see comments in file.

# Note: This program name was changed to findtestserver4
# to avoid cmake complaint about duplicate targets.
Expand All @@ -41,22 +41,19 @@ findtestserver4_SOURCES = findtestserver4.c
pingurl4_SOURCES = pingurl4.c

# Disable Dap4 Remote Tests until the test server is working
if ENABLE_DAP_REMOTE_TESTS
if BUILD_UTILITIES
# relies on ncdump
TESTS += test_hyrax.sh
# TESTS += test_thredds.sh
if AX_IGNORE
TESTS += test_remote.sh
endif
if ENABLE_DAP_REMOTE_TESTS
# Test require help at the server end
# TESTS += test_remote.sh test_hyrax.sh test_thredds.sh
endif
endif

EXTRA_DIST = test_parse.sh test_meta.sh test_data.sh \
test_raw.sh test_remote.sh test_hyrax.sh test_thredds.sh test_fillmismatch.sh \
tst_curlopt.sh d4test_common.sh \
daptestfiles dmrtestfiles cdltestfiles nctestfiles misctestfiles \
baseline baselineraw baselineremote baselinehyrax baselinethredds CMakeLists.txt test_common.h
EXTRA_DIST = CMakeLists.txt test_common.h \
d4test_common.sh \
test_curlopt.sh test_data.sh test_hyrax.sh test_meta.sh \
test_parse.sh test_raw.sh test_remote.sh test_thredds.sh \
cdltestfiles rawtestfiles nctestfiles \
baseline baselineraw baselineremote baselinehyrax baselinethredds

CLEANFILES = *.exe
# This should only be left behind if using parallel io
Expand All @@ -81,7 +78,7 @@ clean-local-check:

# The shell file maketests.sh is used to build the testdata
# for dap4 testing. It creates and fills the directories
# daptestfiles, dmrtestfiles, and cdltestfiles
# daptestfiles, dmrtestfiles, and testsrc
# As a rule, this will only be invoked if there was a change
# in the GenerateRaw.java program in the thredds tree.
maketests::
Expand Down
12 changes: 0 additions & 12 deletions dap4_test/baseline/test_anon_dim.2.syn.d4d

This file was deleted.

9 changes: 0 additions & 9 deletions dap4_test/baseline/test_anon_dim.2.syn.d4m

This file was deleted.

21 changes: 0 additions & 21 deletions dap4_test/baseline/test_anon_dim.2.syn.d4p

This file was deleted.

11 changes: 0 additions & 11 deletions dap4_test/baseline/test_anon_dim.syn.d4d

This file was deleted.

7 changes: 0 additions & 7 deletions dap4_test/baseline/test_anon_dim.syn.d4m

This file was deleted.

18 changes: 0 additions & 18 deletions dap4_test/baseline/test_anon_dim.syn.d4p

This file was deleted.

28 changes: 0 additions & 28 deletions dap4_test/baseline/test_atomic_array.5.nc.d4d

This file was deleted.

15 changes: 0 additions & 15 deletions dap4_test/baseline/test_atomic_array.5.nc.d4m

This file was deleted.

34 changes: 0 additions & 34 deletions dap4_test/baseline/test_atomic_array.5.nc.d4p

This file was deleted.

12 changes: 0 additions & 12 deletions dap4_test/baseline/test_atomic_array.8.nc.d4d

This file was deleted.

9 changes: 0 additions & 9 deletions dap4_test/baseline/test_atomic_array.8.nc.d4m

This file was deleted.

21 changes: 0 additions & 21 deletions dap4_test/baseline/test_atomic_array.8.nc.d4p

This file was deleted.

12 changes: 0 additions & 12 deletions dap4_test/baseline/test_atomic_array.9.nc.d4d

This file was deleted.

9 changes: 0 additions & 9 deletions dap4_test/baseline/test_atomic_array.9.nc.d4m

This file was deleted.

21 changes: 0 additions & 21 deletions dap4_test/baseline/test_atomic_array.9.nc.d4p

This file was deleted.

Loading