diff options
Diffstat (limited to 'tests/libtest')
-rw-r--r-- | tests/libtest/CMakeLists.txt | 6 | ||||
-rw-r--r-- | tests/libtest/Makefile.am | 12 | ||||
-rw-r--r-- | tests/libtest/lib1550.c | 2 | ||||
-rw-r--r-- | tests/libtest/lib1551.c | 2 | ||||
-rw-r--r-- | tests/libtest/mk-lib1521.pl | 2 | ||||
-rw-r--r-- | tests/libtest/test.h | 2 | ||||
-rwxr-xr-x | tests/libtest/test1022.pl | 4 | ||||
-rw-r--r-- | tests/libtest/testutil.c | 2 |
8 files changed, 17 insertions, 15 deletions
diff --git a/tests/libtest/CMakeLists.txt b/tests/libtest/CMakeLists.txt index 4d42aa513..db0aed694 100644 --- a/tests/libtest/CMakeLists.txt +++ b/tests/libtest/CMakeLists.txt @@ -7,7 +7,7 @@ function(SETUP_TEST TEST_NAME) # ARGN are the files in the test include_directories( ${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_BINARY_DIR}/include # To be able to reach "gnurl/curl.h" ${CURL_SOURCE_DIR}/tests/libtest # To be able to build generated tests ) if(USE_ARES) @@ -52,10 +52,10 @@ endif() add_custom_command( OUTPUT lib1521.c - COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/mk-lib1521.pl < ${CMAKE_SOURCE_DIR}/include/curl/curl.h > lib1521.c + COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/mk-lib1521.pl < ${CMAKE_SOURCE_DIR}/include/gnurl/curl.h > lib1521.c DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/mk-lib1521.pl" - "${CMAKE_SOURCE_DIR}/include/curl/curl.h" + "${CMAKE_SOURCE_DIR}/include/gnurl/curl.h" VERBATIM) # # files used only in some libcurl test programs diff --git a/tests/libtest/Makefile.am b/tests/libtest/Makefile.am index 9128a453d..6ebad89c8 100644 --- a/tests/libtest/Makefile.am +++ b/tests/libtest/Makefile.am @@ -53,11 +53,11 @@ CFLAG_CURL_SYMBOL_HIDING = @CFLAG_CURL_SYMBOL_HIDING@ LIBS = $(BLANK_AT_MAKETIME) if USE_EXPLICIT_LIB_DEPS -SUPPORTFILES_LIBS = $(top_builddir)/lib/libcurl.la @LIBCURL_LIBS@ -TESTUTIL_LIBS = $(top_builddir)/lib/libcurl.la @LIBCURL_LIBS@ +SUPPORTFILES_LIBS = $(top_builddir)/lib/libgnurl.la @LIBCURL_LIBS@ +TESTUTIL_LIBS = $(top_builddir)/lib/libgnurl.la @LIBCURL_LIBS@ else -SUPPORTFILES_LIBS = $(top_builddir)/lib/libcurl.la @CURL_NETWORK_LIBS@ @NSS_LIBS@ -TESTUTIL_LIBS = $(top_builddir)/lib/libcurl.la @CURL_NETWORK_AND_TIME_LIBS@ @NSS_LIBS@ +SUPPORTFILES_LIBS = $(top_builddir)/lib/libgnurl.la @CURL_NETWORK_LIBS@ @NSS_LIBS@ +TESTUTIL_LIBS = $(top_builddir)/lib/libgnurl.la @CURL_NETWORK_AND_TIME_LIBS@ @NSS_LIBS@ endif # Dependencies (may need to be overridden) @@ -109,8 +109,8 @@ libhostname_la_SOURCES = sethostname.c sethostname.h libhostname_la_LIBADD = libhostname_la_DEPENDENCIES = -lib1521.c: $(top_srcdir)/tests/libtest/mk-lib1521.pl $(top_srcdir)/include/curl/curl.h - @PERL@ $(top_srcdir)/tests/libtest/mk-lib1521.pl < $(top_srcdir)/include/curl/curl.h > lib1521.c +lib1521.c: $(top_srcdir)/tests/libtest/mk-lib1521.pl $(top_srcdir)/include/gnurl/curl.h + @PERL@ $(top_srcdir)/tests/libtest/mk-lib1521.pl < $(top_srcdir)/include/gnurl/curl.h > lib1521.c checksrc: @PERL@ $(top_srcdir)/lib/checksrc.pl $(srcdir)/*.c diff --git a/tests/libtest/lib1550.c b/tests/libtest/lib1550.c index 94ee576ca..5c2fb6f6a 100644 --- a/tests/libtest/lib1550.c +++ b/tests/libtest/lib1550.c @@ -23,7 +23,7 @@ #include "memdebug.h" -#include <curl/multi.h> +#include <gnurl/multi.h> int test(char *URL) { diff --git a/tests/libtest/lib1551.c b/tests/libtest/lib1551.c index 16e27275a..e3ff3b313 100644 --- a/tests/libtest/lib1551.c +++ b/tests/libtest/lib1551.c @@ -23,7 +23,7 @@ #include "memdebug.h" -#include <curl/multi.h> +#include <gnurl/multi.h> int test(char *URL) { diff --git a/tests/libtest/mk-lib1521.pl b/tests/libtest/mk-lib1521.pl index e60bce5cc..a75fad928 100644 --- a/tests/libtest/mk-lib1521.pl +++ b/tests/libtest/mk-lib1521.pl @@ -22,7 +22,7 @@ ########################################################################### # Usage: -# perl mk-lib1521.pl < ../../include/curl/curl.h > lib1521.c +# perl mk-lib1521.pl < ../../include/gnurl/curl.h > lib1521.c # minimum and maximum long signed values my $minlong = "LONG_MIN"; diff --git a/tests/libtest/test.h b/tests/libtest/test.h index bb1acca0e..90735d272 100644 --- a/tests/libtest/test.h +++ b/tests/libtest/test.h @@ -31,7 +31,7 @@ #include "curl_setup.h" -#include <curl/curl.h> +#include <gnurl/curl.h> #ifdef HAVE_SYS_SELECT_H /* since so many tests use select(), we can just as well include it here */ diff --git a/tests/libtest/test1022.pl b/tests/libtest/test1022.pl index 377808c73..df088c314 100755 --- a/tests/libtest/test1022.pl +++ b/tests/libtest/test1022.pl @@ -12,6 +12,8 @@ my $what=$ARGV[2]; open(CURL, "$ARGV[1]") || die "Can't open curl --version list in $ARGV[1]\n"; $_ = <CURL>; chomp; +# Leave the version to contain libcurl here as we use the ../src/curl binary and +# it is producting "libcurl" string /libcurl\/([\.\d]+((-DEV)|(-\d+))?)/; my $version = $1; close CURL; @@ -24,7 +26,7 @@ $_ = <CURLCONFIG>; chomp; my $filever=$_; if ( $what eq "version" ) { - if($filever =~ /^libcurl ([\.\d]+((-DEV)|(-\d+))?)$/) { + if($filever =~ /^libgnurl ([\.\d]+((-DEV)|(-\d+))?)$/) { $curlconfigversion = $1; } else { diff --git a/tests/libtest/testutil.c b/tests/libtest/testutil.c index f3ad0ce58..78b1a2b65 100644 --- a/tests/libtest/testutil.c +++ b/tests/libtest/testutil.c @@ -20,7 +20,7 @@ * ***************************************************************************/ #include "curl_setup.h" -#include <curl/curl.h> +#include <gnurl/curl.h> #include "testutil.h" #include "memdebug.h" |