2002-02-17 22:56:45 +01:00
|
|
|
/*
|
2014-01-26 21:46:55 +01:00
|
|
|
* Copyright (c) 2000-2001 Proofpoint, Inc. and its suppliers.
|
2002-02-17 22:56:45 +01:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* By using this file, you agree to the terms and conditions set
|
|
|
|
* forth in the LICENSE file which can be found at the top level of
|
|
|
|
* the sendmail distribution.
|
|
|
|
*
|
2014-05-22 05:45:17 +02:00
|
|
|
* $Id: test.h,v 1.7 2013-11-22 20:51:32 ca Exp $
|
2002-02-17 22:56:45 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
** Abstractions for writing a libsm test program.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SM_TEST_H
|
|
|
|
# define SM_TEST_H
|
|
|
|
|
|
|
|
# include <sm/gen.h>
|
|
|
|
|
|
|
|
# if defined(__STDC__) || defined(__cplusplus)
|
|
|
|
# define SM_TEST(cond) sm_test(cond, #cond, __FILE__, __LINE__)
|
|
|
|
# else /* defined(__STDC__) || defined(__cplusplus) */
|
|
|
|
# define SM_TEST(cond) sm_test(cond, "cond", __FILE__, __LINE__)
|
|
|
|
# endif /* defined(__STDC__) || defined(__cplusplus) */
|
|
|
|
|
|
|
|
extern int SmTestIndex;
|
|
|
|
extern int SmTestNumErrors;
|
|
|
|
|
|
|
|
extern void
|
|
|
|
sm_test_begin __P((
|
|
|
|
int _argc,
|
|
|
|
char **_argv,
|
|
|
|
char *_testname));
|
|
|
|
|
|
|
|
extern bool
|
|
|
|
sm_test __P((
|
|
|
|
bool _success,
|
|
|
|
char *_expr,
|
|
|
|
char *_filename,
|
|
|
|
int _lineno));
|
|
|
|
|
|
|
|
extern int
|
|
|
|
sm_test_end __P((void));
|
|
|
|
|
|
|
|
#endif /* ! SM_TEST_H */
|