head 1.4; access; symbols LMTP2NNTP_1_4_1:1.4 LMTP2NNTP_1_4_0:1.4 VAR_1_1_3:1.4 VAR_1_1_2:1.3 VAR_1_1_1:1.3 LMTP2NNTP_1_3_0:1.3 LMTP2NNTP_1_3b2:1.3 LMTP2NNTP_1_3b1:1.3 LMTP2NNTP_1_3a3:1.3 LMTP2NNTP_1_3a2:1.3 LMTP2NNTP_1_3a1:1.3 VAR_1_1_0:1.3 VAR_1_0_0:1.2 LMTP2NNTP_1_2_0:1.1 LMTP2NNTP_1_2b4:1.1 LMTP2NNTP_1_2b3:1.1 LMTP2NNTP_1_2b2:1.1 LMTP2NNTP_1_2b1:1.1 LMTP2NNTP_1_2a8:1.1 LMTP2NNTP_1_2a7:1.1 LMTP2NNTP_1_2a6:1.1 LMTP2NNTP_1_2a5:1.1 LMTP2NNTP_1_2a4:1.1 VAR_0_9_0:1.1; locks; strict; comment @ * @; 1.4 date 2005.01.20.20.29.06; author rse; state Exp; branches; next 1.3; 1.3 date 2004.04.04.08.07.34; author rse; state Exp; branches; next 1.2; 1.2 date 2003.02.14.21.17.07; author rse; state Exp; branches; next 1.1; 1.1 date 2002.03.07.14.58.41; author rse; state Exp; branches; next ; desc @@ 1.4 log @Bumped year in copyright messages for new year 2005 @ text @/* ** OSSP ts - Test Suite Library ** Copyright (c) 2001-2005 Ralf S. Engelschall ** Copyright (c) 2001-2005 The OSSP Project ** Copyright (c) 2001-2005 Cable & Wireless ** ** 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.3 log @adjust copyrights @ 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.2 log @final polishing for release 1.0.0 @ text @d2 4 a5 4 ** TS - OSSP Test Suite Library ** Copyright (c) 2001-2003 Ralf S. Engelschall ** Copyright (c) 2001-2003 The OSSP Project ** Copyright (c) 2001-2003 Cable & Wireless Deutschland 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.1 log @- use our standard ts.[ch] test suite library - add support for Dmalloc facility @ 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 Deutschland @