head 1.8; access; symbols EX_1_0_6:1.8 LMTP2NNTP_1_4_1:1.6 LMTP2NNTP_1_4_0:1.6 EX_1_0_5:1.6 LMTP2NNTP_1_3_0:1.5 LMTP2NNTP_1_3b2:1.5 LMTP2NNTP_1_3b1:1.5 LMTP2NNTP_1_3a3:1.5 LMTP2NNTP_1_3a2:1.5 LMTP2NNTP_1_3a1:1.5 EX_1_0_4:1.5 EX_1_0_3:1.4 OSSP_RC_0_7_3:1.3 OSSP_RC_0_7_2:1.3 OSSP_RC_0_7_1:1.3 OSSP_RC_ALPHA_06:1.3 OSSP_RC_EXBROKEN:1.3 LMTP2NNTP_1_2_0:1.3 LMTP2NNTP_1_2b4:1.3 LMTP2NNTP_1_2b3:1.3 LMTP2NNTP_1_2b2:1.3 LMTP2NNTP_1_2b1:1.2 LMTP2NNTP_1_2a8:1.2 LMTP2NNTP_1_2a7:1.2 EX_1_0_2:1.2 EX_1_0_1:1.1 LMTP2NNTP_1_2a6:1.1 LMTP2NNTP_1_2a5:1.1 EX_1_0_0:1.1 LMTP2NNTP_1_2a4:1.1 EX_0_9_1:1.1 LMTP2NNTP_1_2a3:1.1 EX_0_9_0:1.1; locks; strict; comment @ * @; 1.8 date 2007.10.12.19.59.57; author rse; state Exp; branches; next 1.7; commitid 9SN7ivPOxnsC7lBs; 1.7 date 2006.08.10.19.49.33; author rse; state Exp; branches; next 1.6; commitid o4A6XFppdzD0PkIr; 1.6 date 2005.01.30.13.39.07; author rse; state Exp; branches; next 1.5; 1.5 date 2004.04.05.14.44.21; author rse; state Exp; branches; next 1.4; 1.4 date 2004.03.25.19.01.45; author rse; state Exp; branches; next 1.3; 1.3 date 2003.02.10.10.13.21; author thl; state Exp; branches; next 1.2; 1.2 date 2003.01.30.11.04.42; author rse; state Exp; branches; next 1.1; 1.1 date 2002.01.26.20.12.19; author rse; state Exp; branches; next ; desc @@ 1.8 log @prepare for release @ text @/* ** OSSP ts - Test Suite Library ** Copyright (c) 2001-2007 Ralf S. Engelschall ** Copyright (c) 2001-2007 The OSSP Project ** ** This file is part of OSSP ts, a small test suite library which ** can be found at http://www.ossp.org/pkg/lib/ts/. ** ** Permission to use, copy, modify, and distribute this software for ** any purpose with or without fee is hereby granted, provided that ** the above copyright notice and this permission notice appear in all ** copies. ** ** THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ** WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF ** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ** IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR ** CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ** USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ** ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ** OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ** SUCH DAMAGE. ** ** ts.h: test suite library API */ #ifndef _TS_H_ #define _TS_H_ /* test suite object type */ struct ts_suite_st; typedef struct ts_suite_st ts_suite_t; /* test object type */ struct ts_test_st; typedef struct ts_test_st ts_test_t; /* test callback function type */ typedef void (*ts_test_cb_t)(ts_test_t *); /* test suite operations */ ts_suite_t *ts_suite_new (const char *fmt, ...); void ts_suite_test (ts_suite_t *s, ts_test_cb_t func, const char *fmt, ...); int ts_suite_run (ts_suite_t *s); void ts_suite_free (ts_suite_t *s); /* test operations */ ts_test_t *ts_test_ctx (ts_test_t *t, const char *file, int line); void ts_test_check (ts_test_t *t, const char *fmt, ...); void ts_test_fail (ts_test_t *t, const char *fmt, ...); void ts_test_log (ts_test_t *t, const char *fmt, ...); /* test suite short-cut macros */ #define TS_TEST(name) \ static void name(ts_test_t *_t) #define TS_CTX \ ts_test_ctx(_t, __FILE__, __LINE__) #endif /* _TS_H_ */ @ 1.7 log @cleanup source tree @ text @d3 2 a4 2 ** Copyright (c) 2001-2006 Ralf S. Engelschall ** Copyright (c) 2001-2006 The OSSP Project @ 1.6 log @Adjusted copyright messages to include new year 2005. @ text @d3 2 a4 3 ** Copyright (c) 2001-2005 Ralf S. Engelschall ** Copyright (c) 2001-2005 The OSSP Project ** Copyright (c) 2001-2005 Cable & Wireless @ 1.5 log @flush all my pending changes for release of 1.0.4 @ text @d3 3 a5 3 ** Copyright (c) 2001-2004 Ralf S. Engelschall ** Copyright (c) 2001-2004 The OSSP Project ** Copyright (c) 2001-2004 Cable & Wireless @ 1.4 log @bump and adjust copyright @ text @d2 1 a2 1 ** TS - OSSP Test Suite Library d7 2 a8 2 ** This file is part of OSSP TS, a small test suite library which ** can be found at http://www.ossp.org/pkg/ts/. @ 1.3 log @extend copyright messages based on CVS information @ text @d3 3 a5 3 ** Copyright (c) 2001-2003 Ralf S. Engelschall ** Copyright (c) 2001-2003 The OSSP Project ** Copyright (c) 2001-2003 Cable & Wireless Germany @ 1.2 log @final polishing @ text @d3 3 a5 3 ** Copyright (c) 2001-2002 Ralf S. Engelschall ** Copyright (c) 2001-2002 The OSSP Project ** Copyright (c) 2001-2002 Cable & Wireless Germany @ 1.1 log @switch to our standard build environment @ text @d5 1 a5 1 ** Copyright (c) 2001-2002 Cable & Wireless Deutschland @