aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/test.h
AgeCommit message (Collapse)Author
2014-05-09libtests: add a wait_ms() functionDaniel Stenberg
This allows a libcurl test to portably sleep for a given number of milliseconds.
2013-01-09build: fix circular header inclusion with other packagesYang Tse
This commit renames lib/setup.h to lib/curl_setup.h and renames lib/setup_once.h to lib/curl_setup_once.h. Removes the need and usage of a header inclusion guard foreign to libcurl. [1] Removes the need and presence of an alarming notice we carried in old setup_once.h [2] ---------------------------------------- 1 - lib/setup_once.h used __SETUP_ONCE_H macro as header inclusion guard up to commit ec691ca3 which changed this to HEADER_CURL_SETUP_ONCE_H, this single inclusion guard is enough to ensure that inclusion of lib/setup_once.h done from lib/setup.h is only done once. Additionally lib/setup.h has always used __SETUP_ONCE_H macro to protect inclusion of setup_once.h even after commit ec691ca3, this was to avoid a circular header inclusion triggered when building a c-ares enabled version with c-ares sources available which also has a setup_once.h header. Commit ec691ca3 exposes the real nature of __SETUP_ONCE_H usage in lib/setup.h, it is a header inclusion guard foreign to libcurl belonging to c-ares's setup_once.h The renaming this commit does, fixes the circular header inclusion, and as such removes the need and usage of a header inclusion guard foreign to libcurl. Macro __SETUP_ONCE_H no longer used in libcurl. 2 - Due to the circular interdependency of old lib/setup_once.h and the c-ares setup_once.h header, old file lib/setup_once.h has carried back from 2006 up to now days an alarming and prominent notice about the need of keeping libcurl's and c-ares's setup_once.h in sync. Given that this commit fixes the circular interdependency, the need and presence of mentioned notice is removed. All mentioned interdependencies come back from now old days when the c-ares project lived inside a curl subdirectory. This commit removes last traces of such fact.
2013-01-06Revert changes relative to lib/*.[ch] recent renamingYang Tse
This reverts renaming and usage of lib/*.h header files done 28-12-2012, reverting 2 commits: f871de0... build: make use of 76 lib/*.h renamed files ffd8e12... build: rename 76 lib/*.h files This also reverts removal of redundant include guard (redundant thanks to changes in above commits) done 2-12-2013, reverting 1 commit: c087374... curl_setup.h: remove redundant include guard This also reverts renaming and usage of lib/*.c source files done 3-12-2013, reverting 3 commits: 13606bb... build: make use of 93 lib/*.c renamed files 5b6e792... build: rename 93 lib/*.c files 7d83dff... build: commit 13606bbfde follow-up 1 Start of related discussion thread: http://curl.haxx.se/mail/lib-2013-01/0012.html Asking for confirmation on pushing this revertion commit: http://curl.haxx.se/mail/lib-2013-01/0048.html Confirmation summary: http://curl.haxx.se/mail/lib-2013-01/0079.html NOTICE: The list of 2 files that have been modified by other intermixed commits, while renamed, and also by at least one of the 6 commits this one reverts follows below. These 2 files will exhibit a hole in history unless git's '--follow' option is used when viewing logs. lib/curl_imap.h lib/curl_smtp.h
2012-12-28build: make use of 76 lib/*.h renamed filesYang Tse
76 private header files renamed to use our standard naming scheme. This change affects 322 files in libcurl's source tree.
2012-12-14setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>Yang Tse
Inclusion of top two most included header files now done in setup_once.h
2012-04-11build adjustments: functionally revert commits 4d3fb91f and bbfe1182Yang Tse
Undefining CURL_HIDDEN_SYMBOLS in source files isn't the proper fix.
2012-04-10libtests: build adjustmentYang Tse
Undefine CURL_HIDDEN_SYMBOLS libcurl private preprocessor macro that might leak from lib/setup.h into source files where this should not be defined.
2011-12-07multi interface: fix block when CONNECT_ONLY option is usedGokhan Sengun
2011-10-26multi tests: OOM handling fixes - commit 629d2e34 follow-upYang Tse
2011-10-21multi tests: OOM handling fixesYang Tse
Additionally, improved error checking and logging.
2011-07-24errno.h inclusion conditionally done in setup_once.hYang Tse
2011-05-25unit tests: build adjustmentYang Tse
Also define UNITTESTS macro when building unit test sources. Fixing compiler warning: external definition with no prior declaration
2011-03-10sources: update source headersDaniel Stenberg
All C and H files now (should) feature the proper project curl source code header, which includes basic info, a copyright statement and some basic disclaimers.
2011-03-08sftp-multi: test 582 addedHenry Ludemann
Add test 582 for uploading a file using sftp and the multi interface. (Patch and test slightly tweaked by Daniel Stenberg) Initially marked as disabled until it is fixed in the source.
2010-03-24remove the CVSish $Id$ linesDaniel Stenberg
2010-02-05Addes OOM handling for curl_easy_setopt() calls in testYang Tse
2010-02-02avoid possibility of using obsoleted stuffYang Tse
2009-07-14renamed generated config.h to curl_config.h in order to avoid clashes when ↵Gunter Knauf
libcurl is used with other projects which also have a config.h.
2009-05-01David McCreedy's "TPF-platform specific changes to various files" patchYang Tse
2008-09-18fix compiler warning: external declaration in primary source fileYang Tse
2008-07-15add comment for include pathsYang Tse
2007-10-02Renamed a couple of global variables to avoid shadowing warningsYang Tse
2007-07-15let's just export the whole argc + argv pair globally so that each test toolDaniel Stenberg
can take advantage of it however they see fit!
2007-07-14add support for arg3 as the third argument...Daniel Stenberg
2007-02-22Check for stdbool.h at configuration stage, and include it if available.Yang Tse
Check for lowercase 'bool' type at configuration stage. If not available provide a suitable replacement with a type definition of 'unsigned char' in setup_once.h Move definitions of TRUE and FALSE to setup_once.h
2007-02-16use macros ERRNO, SET_ERRNO(), SOCKERRNO and SET_SOCKERRNO() for errno handlingYang Tse
2006-10-25Add project notice and file IdYang Tse
2006-10-25Use curl_global_init() and curl_global_cleanup().Yang Tse
Improve cleanup in case of initialization failure.
2006-09-10Added select_test() function to allow selecting on no sockets onGisle Vanem
Winsock.
2004-05-14enable memory debugging the same way the curl command line tool already doesDaniel Stenberg
2004-03-03We let this file include more generic headers that many libtests need anywayDaniel Stenberg
to reduce the amount of #include stuff in each single libNNN.c file. unistd.h was added to prevent select() warnings on FreeBSD
2004-02-19provide a test() protoDaniel Stenberg
2004-01-13include setup.h from the lib dir instead to get even more private stuffDaniel Stenberg
from the libcurl build, but right now for the USE_SSLEAY define.
2003-11-06Define TRUE and FALSE unless already present. I've moved away thoseDaniel Stenberg
definitions from the global curl header and thus this needs to do it themselves.
2003-04-15include config.h before all system headers, so that _FILE_OFFSET_BITS andDaniel Stenberg
similar is set properly by us first
2003-03-12include "config.h" from the lib's private dirDaniel Stenberg
2003-01-23string.h keeps the proto for memset() on some platforms, used for FD_ZERODaniel Stenberg
2002-12-13set up arg2 to point to argv[2] to be used at will by programsDaniel Stenberg
2002-12-13include files without the curl/ to reduce the risk of us including the wrongDaniel Stenberg
set of include files during tests
2002-12-12fixesDaniel Stenberg