mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Moving some tests around so that 'make check' works properly, in support of https://github.com/Unidata/netcdf-c/issues/339
This commit is contained in:
parent
f710b29d44
commit
59ded4a82c
@ -197,7 +197,14 @@ ENDIF()
|
||||
add_sh_test(ncdump tst_netcdf4_4)
|
||||
ENDIF()
|
||||
|
||||
|
||||
###
|
||||
# Some test reordering was required to ensure these tests
|
||||
# only ran after ncdump was built.
|
||||
###
|
||||
add_sh_test(ncdump run_ncgen_tests)
|
||||
IF(USE_NETCDF4)
|
||||
add_sh_test(ncdump run_ncgen_nc4_tests)
|
||||
ENDIF()
|
||||
|
||||
IF(NOT MSVC)
|
||||
add_sh_test(ncdump tst_nccopy4)
|
||||
|
@ -44,11 +44,11 @@ check_PROGRAMS = rewrite-scalar ctest ctest64 ncdump tst_utf8 bom tst_dimsizes n
|
||||
TESTS = tst_inttags.sh run_tests.sh tst_64bit.sh ctest ctest64 tst_output.sh \
|
||||
tst_lengths.sh tst_calendars.sh tst_utf8 run_utf8_tests.sh \
|
||||
tst_nccopy3.sh tst_charfill.sh tst_iter.sh tst_formatx3.sh tst_bom.sh \
|
||||
tst_dimsizes.sh
|
||||
tst_dimsizes.sh run_ncgen_tests.sh
|
||||
|
||||
if USE_NETCDF4
|
||||
check_PROGRAMS += tst_fileinfo
|
||||
TESTS += tst_fileinfo.sh
|
||||
TESTS += tst_fileinfo.sh run_ncgen_nc4_tests.sh
|
||||
endif
|
||||
|
||||
if LARGE_FILE_TESTS
|
||||
@ -163,7 +163,8 @@ run_utf8_nc4_tests.sh \
|
||||
tst_formatx3.sh tst_formatx4.sh ref_tst_utf8_4.cdl \
|
||||
tst_inttags.sh tst_inttags4.sh \
|
||||
CMakeLists.txt XGetopt.c tst_bom.sh tst_inmemory_nc3.sh \
|
||||
tst_dimsizes.sh tst_inmemory_nc4.sh tst_fileinfo.sh
|
||||
tst_dimsizes.sh tst_inmemory_nc4.sh tst_fileinfo.sh run_ncgen_tests.sh \
|
||||
run_ncgen_nc4_tests.sh
|
||||
|
||||
# CDL files and Expected results
|
||||
SUBDIRS=cdl expected
|
||||
|
@ -42,10 +42,15 @@ FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
|
||||
IF(ENABLE_TESTS)
|
||||
FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.cdl ${CMAKE_CURRENT_SOURCE_DIR}/*.sh)
|
||||
FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE)
|
||||
add_sh_test(ncgen run_tests)
|
||||
IF(USE_NETCDF4)
|
||||
add_sh_test(ncgen run_nc4_tests)
|
||||
ENDIF()
|
||||
|
||||
##
|
||||
# The following tests were moved to ncdump/, to ensure
|
||||
# that they are run in the proper order.
|
||||
##
|
||||
#add_sh_test(ncgen run_tests)
|
||||
#IF(USE_NETCDF4)
|
||||
# add_sh_test(ncgen run_nc4_tests)
|
||||
#ENDIF()
|
||||
ENDIF()
|
||||
|
||||
SET(MAN_FILES ncgen.1)
|
||||
|
@ -22,7 +22,7 @@ man_MANS = ncgen.1
|
||||
|
||||
# These files all need to be distributed.
|
||||
EXTRA_DIST = ncgen.y ncgen.l ncgenl.c $(man_MANS) internals.html \
|
||||
run_tests.sh run_nc4_tests.sh c0.cdl c0_4.cdl ref_camrun.cdl \
|
||||
c0.cdl c0_4.cdl ref_camrun.cdl \
|
||||
ncf199.cdl CMakeLists.txt XGetopt.c c5.cdl \
|
||||
compound_datasize_test.cdl compound_datasize_test2.cdl \
|
||||
tst_gattenum.cdl tst_usuffix.cdl
|
||||
|
Loading…
Reference in New Issue
Block a user