Skip to content

Commit

Permalink
Cleaning up make dist, it's generating tarballs that don't work with …
Browse files Browse the repository at this point in the history
…cmake.
  • Loading branch information
WardF committed Feb 1, 2022
1 parent 2ee42b4 commit 375beee
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 5 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2460,7 +2460,9 @@ IF(ENABLE_TESTS)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/ncdap_test/pingurl.c ${CMAKE_CURRENT_BINARY_DIR}/dap4_test/pingurl4.c @ONLY NEWLINE_STYLE LF)
ENDIF()

add_subdirectory(fuzz)
if(DEFINED ENV{LIB_FUZZING_ENGINE})
add_subdirectory(fuzz)
endif(DEFINED ENV{LIB_FUZZING_ENGINE})

####
# Export files
Expand Down
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cmake CMakeLists.txt COMPILE.cmake.txt config.h.cmake.in \
cmake_uninstall.cmake.in FixBundle.cmake.in nc-config.cmake.in \
RELEASE_NOTES.md CTestCustom.cmake CTestConfig.cmake.in \
libnetcdf.settings.in netCDFConfig.cmake.in CMakeInstallation.cmake \
test-driver-verbose test_common.in
test-driver-verbose test_common.in fuzz

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = netcdf.pc
Expand Down
8 changes: 8 additions & 0 deletions fuzz/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# This is part of the netCDF package.
# Copyright 2022 University Corporation for Atmospheric Research/Unidata
# See COPYRIGHT file for conditions of use.
#
# Added for fuzzing in https://github.com/Unidata/netcdf-c/pull/1972
#
# @authors Ward Fisher

if(DEFINED ENV{LIB_FUZZING_ENGINE})
add_executable(fuzz_open fuzz_open.c)
target_link_libraries(fuzz_open netcdf $ENV{LIB_FUZZING_ENGINE})
Expand Down
15 changes: 15 additions & 0 deletions fuzz/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This is part of the netCDF package.
# Copyright 2022 University Corporation for Atmospheric Research/Unidata
# See COPYRIGHT file for conditions of use.
#
# @authors Ward Fisher

# Set AM_CPPFLAGS and AM_LDFLAGS based on user choices.
include $(top_srcdir)/lib_flags.am

#if(DEFINED ENV{LIB_FUZZING_ENGINE})
# add_executable(fuzz_open fuzz_open.c)
# target_link_libraries(fuzz_open netcdf $ENV{LIB_FUZZING_ENGINE})
#endif()

EXTRA_DIST = fuzz.c fuzz_open.c
1 change: 0 additions & 1 deletion libnczarr/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ zarr.h \
zcache.h \
zchunking.h \
zdispatch.h \
ztracedispatch.h \
zincludes.h \
zinternal.h \
zmap.h \
Expand Down
3 changes: 2 additions & 1 deletion nc_test4/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ ref_filteredvv.cdl ref_multi.cdl \
ref_ncgenF.cdl ref_nccopyF.cdl \
ref_filter_repeat.txt ref_fillonly.cdl test_fillonly.sh \
ref_filter_order_create.txt ref_filter_order_read.txt \
ref_any.cdl tst_specific_filters.sh
ref_any.cdl tst_specific_filters.sh \
tst_virtual_datasets.c

CLEANFILES = tst_mpi_parallel.bin cdm_sea_soundings.nc bm_chunking.nc \
tst_floats_1D.cdl floats_1D_3.nc floats_1D.cdl tst_*.nc tmp_*.txt \
Expand Down
2 changes: 1 addition & 1 deletion nczarr_test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ ref_groups.h5 ref_byte.zarr.zip ref_byte_fill_value_null.zarr.zip \
ref_groups_regular.cdl ref_byte.cdl ref_byte_fill_value_null.cdl

# Interoperability files
EXTRA_DIST += ref_power_901_constants.zip ref_power_901_constants.cdl ref_quotes.zip ref_quotes.cdl ref_zarr_test_data.cdl.gz
EXTRA_DIST += ref_power_901_constants.zip ref_power_901_constants.cdl ref_quotes.zip ref_quotes.cdl

CLEANFILES = ut_*.txt ut*.cdl tmp*.nc tmp*.cdl tmp*.txt tmp*.dmp tmp*.zip tmp*.nc tmp*.dump tmp*.tmp tmp_ngc.c ref_zarr_test_data.cdl

Expand Down

0 comments on commit 375beee

Please sign in to comment.