Added Test Anything Protocol unit test library.

See Perl documentation for Test::Harness and Test::More for format details.
This commit is contained in:
Andrew Johnson
2006-03-30 19:59:46 +00:00
parent 8496fae43c
commit 62dee96808
2 changed files with 173 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
/*************************************************************************\
* Copyright (c) 2006 The University of Chicago, as Operator of Argonne
* National Laboratory.
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
/* $Id$
* Author: Andrew Johnson
*/
#include "shareLib.h"
#ifdef __cplusplus
extern "C" {
#endif
epicsShareFunc void testPlan(int tests);
epicsShareFunc int testOk(int pass, const char *desc);
epicsShareFunc void testPass(const char *desc);
epicsShareFunc void testFail(const char *desc);
epicsShareFunc void testSkip(int skip, const char *why);
epicsShareFunc void testTodoBegin(const char *why);
epicsShareFunc void testTodoEnd();
epicsShareFunc int testDiag(const char *fmt, ...);
epicsShareFunc void testAbort(const char *desc);
epicsShareFunc int testDone(void);
#define testOk1(cond) testOk(cond, #cond)
#ifdef __cplusplus
}
#endif