test644: verify --xattr (with redirect)

This commit is contained in:
Daniel Stenberg 2022-10-19 11:40:11 +02:00
parent 3ab3c16b2c
commit f5e5384ec3
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
9 changed files with 111 additions and 22 deletions

View file

@ -36,6 +36,7 @@ function(SETUP_EXECUTABLE TEST_NAME) # ARGN are the files in the test
${CURL_SOURCE_DIR}/lib # To be able to reach "curl_setup_once.h"
${CURL_BINARY_DIR}/lib # To be able to reach "curl_config.h"
${CURL_BINARY_DIR}/include # To be able to reach "curl/curl.h"
${CURL_SOURCE_DIR}/src # To be able to reach "tool_xattr.h"
)
if(USE_ARES)
include_directories(${CARES_INCLUDE_DIR})

View file

@ -36,6 +36,9 @@ AM_CPPFLAGS = -I$(top_srcdir)/include \
-I$(top_builddir)/lib \
-I$(top_srcdir)/lib
disabled_CPPFLAGS = $(AM_CPPFLAGS) \
-I$(top_srcdir)/src
# Prevent LIBS from being used for all link targets
LIBS = $(BLANK_AT_MAKETIME)

View file

@ -33,6 +33,7 @@
#include "curl_setup.h"
#include "multihandle.h" /* for ENABLE_WAKEUP */
#include "tool_xattr.h" /* for USE_XATTR */
#include <stdio.h>
static const char *disabled[]={
@ -74,6 +75,9 @@ static const char *disabled[]={
#endif
#ifdef CURL_DISABLE_HEADERS_API
"headers-api",
#endif
#ifndef USE_XATTR
"xattr",
#endif
NULL
};