mirror of
https://github.com/curl/curl.git
synced 2026-07-11 00:07:19 +03:00
Also repurpose existing build-time feature checks into unit test 1961,
to verify.
Prior to this patch these functions were auto-detected with both
autotools and cmake. In case of autotools there was an extra
verification phase ensuring the functions work as expected. This step
required running the function, thus was limited to non-cross-builds. For
cross-builds and CMake it always used the system implementation if
present. On Windows it always used the local implementation, because
availability/use is complicated there.
After this patch all platforms, always use the local implementation,
which is known to be accurate. This makes curl behave more consistently,
and simplifies the build process, a fixes cross-builds and CMake
auto-detection differences.
Also:
- test1960: enable unconditionally.
- checksrc: disallow globally, allowlist in `block_ip.c` example.
- dnsd: verify ntop result for NULL before passing to printf.
Ref: https://github.com/curl/curl/pull/22137#issuecomment-4797440983
Ref: #22137
Ref: 8537a5b0bc #16577
Closes #22170
51 lines
2.2 KiB
Makefile
51 lines
2.2 KiB
Makefile
#***************************************************************************
|
|
# _ _ ____ _
|
|
# Project ___| | | | _ \| |
|
|
# / __| | | | |_) | |
|
|
# | (__| |_| | _ <| |___
|
|
# \___|\___/|_| \_\_____|
|
|
#
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
#
|
|
# This software is licensed as described in the file COPYING, which
|
|
# you should have received as part of this distribution. The terms
|
|
# are also available at https://curl.se/docs/copyright.html.
|
|
#
|
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
# copies of the Software, and permit persons to whom the Software is
|
|
# furnished to do so, under the terms of the COPYING file.
|
|
#
|
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
# KIND, either express or implied.
|
|
#
|
|
# SPDX-License-Identifier: curl
|
|
#
|
|
###########################################################################
|
|
# Shared between CMakeLists.txt and Makefile.am
|
|
|
|
BUNDLE = units
|
|
|
|
# Files referenced from the bundle source
|
|
FIRST_C = ../libtest/first.c
|
|
|
|
# All unit test programs
|
|
TESTS_C = \
|
|
unit1300.c unit1302.c unit1303.c unit1304.c unit1305.c \
|
|
unit1307.c unit1309.c \
|
|
unit1323.c unit1330.c \
|
|
unit1395.c unit1396.c unit1397.c unit1398.c unit1399.c \
|
|
unit1600.c unit1601.c unit1602.c unit1603.c unit1605.c unit1606.c \
|
|
unit1607.c unit1608.c unit1609.c unit1610.c unit1611.c unit1612.c unit1614.c \
|
|
unit1615.c unit1616.c unit1620.c \
|
|
unit1625.c unit1626.c unit1627.c \
|
|
unit1636.c \
|
|
unit1650.c unit1651.c unit1652.c unit1653.c unit1654.c unit1655.c unit1656.c \
|
|
unit1657.c unit1658.c unit1660.c unit1661.c unit1663.c unit1664.c \
|
|
unit1666.c unit1667.c unit1668.c unit1669.c \
|
|
unit1674.c unit1675.c unit1676.c \
|
|
unit1961.c unit1979.c unit1980.c \
|
|
unit2413.c \
|
|
unit2600.c unit2601.c unit2602.c unit2603.c unit2604.c unit2605.c \
|
|
unit3200.c unit3205.c \
|
|
unit3211.c unit3212.c unit3213.c unit3214.c unit3216.c unit3219.c \
|
|
unit3300.c unit3301.c unit3302.c unit3303.c unit3304.c unit3400.c
|