netcdf-c/dap4_test
Dennis Heimbigner 90fd1406bc Make use of clock_gettime be conditional.
Re: GH Issue https://github.com/Unidata/netcdf-c/issues/1900

Apparently the clock_gettime() function is not always available.
It is used in unit_test/tst_exhash.c and unit_test/tst_xcache.c.

To solve this, a number of things were changed:
* Move the timing code to a new file unit_tests/timer_utils.[ch]
* Modify the timing code to choose one of several timing methods
depending on availability. The prioritized order is as follows:
    1. If Windows, use the QueryPerformanceCounter mechanism else
    2. Use clock_gettime if available else
    3. Use gettimeofday if available else
    4. Use getrusage if available

Note that the resolution of 3 and 4 is less than 1 or 2.

Misc. Other Changes:
* Move the test in CMakeLists.txt that disables unit tests for WIN32 to unit_test/CMakeLists.txt since some unit tests actually work under Visual Studio.
* Fix some of the unit tests to work under visual studio
* Fix problem with using remove() in zmap_nzf.c
* Remove some warning about use of EXTERNL
2020-12-06 18:19:53 -07:00
..
baseline Fix some protocol differences between netcdf-c and the Hyrax server. 2020-05-30 17:36:25 -06:00
baselineraw Fix some protocol differences between netcdf-c and the Hyrax server. 2020-05-30 17:36:25 -06:00
baselineremote Updating files to refer to the top-level COPYRIGHT file. 2018-12-04 15:52:43 -07:00
cdltestfiles Updating files to refer to the top-level COPYRIGHT file. 2018-12-04 15:52:43 -07:00
daptestfiles Updating files to refer to the top-level COPYRIGHT file. 2018-12-04 15:52:43 -07:00
dmrtestfiles Updating files to refer to the top-level COPYRIGHT file. 2018-12-04 15:52:43 -07:00
misctestfiles Fix some protocol differences between netcdf-c and the Hyrax server. 2020-05-30 17:36:25 -06:00
nctestfiles Updating files to refer to the top-level COPYRIGHT file. 2018-12-04 15:52:43 -07:00
CMakeLists.txt Make CMake tests work for dap4 2020-06-01 09:27:57 -06:00
d4test_common.sh Make CMake tests work for dap4 2020-06-01 09:27:57 -06:00
dump.c Prepare for the path management code 2020-10-13 19:12:15 -06:00
Makefile.am Make use of clock_gettime be conditional. 2020-12-06 18:19:53 -07:00
maketests.sh Modify DAP2 and DAP4 to optionally allow Fillvalue/Variable mismatch 2018-10-01 15:51:43 -06:00
test_common.h re: github issues 2018-10-30 20:48:12 -06:00
test_data.c Fix some protocol differences between netcdf-c and the Hyrax server. 2020-05-30 17:36:25 -06:00
test_data.sh Corrected a cleanup issue that was left in whilst debugging. 2018-11-19 12:21:06 -07:00
test_environment4.c Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
test_fillmismatch.sh Spelling fixes 2019-09-18 08:03:01 -06:00
test_hyrax.sh Fix some protocol differences between netcdf-c and the Hyrax server. 2020-05-30 17:36:25 -06:00
test_meta.c Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
test_meta.sh re: github issues 2018-10-30 20:48:12 -06:00
test_parse.c Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
test_parse.sh The Jetstream remote test server is now working. 2018-06-26 13:58:45 -06:00
test_raw.sh This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
test_remote.sh Modify DAP2 and DAP4 to optionally allow Fillvalue/Variable mismatch 2018-10-01 15:51:43 -06:00
test_test.sh Modify DAP2 and DAP4 to optionally allow Fillvalue/Variable mismatch 2018-10-01 15:51:43 -06:00
tst_curlopt.sh Add the ability to set some additional curlopt values 2018-08-26 17:04:46 -06:00
tst_data.sh Modify DAP2 and DAP4 to optionally allow Fillvalue/Variable mismatch 2018-10-01 15:51:43 -06:00
tst_meta.sh Modify DAP2 and DAP4 to optionally allow Fillvalue/Variable mismatch 2018-10-01 15:51:43 -06:00
tst_parse.sh Fix pull request https://github.com/Unidata/netcdf-c/pull/374 (dap4.dmh) 2017-04-03 21:39:44 -06:00
tst_raw.sh Modify DAP2 and DAP4 to optionally allow Fillvalue/Variable mismatch 2018-10-01 15:51:43 -06:00