2009-02-11 12:02:34 -05:00
|
|
|
/*
|
|
|
|
* This file is part of the Sofia-SIP package
|
|
|
|
*
|
|
|
|
* Copyright (C) 2009 Nokia Corporation.
|
|
|
|
*
|
|
|
|
* Contact: Pekka Pessi <pekka.pessi@nokia.com>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2.1 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
|
|
* 02110-1301 USA
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef S2CHECK_H
|
|
|
|
/** Defined when <s2check.h> has been included. */
|
|
|
|
#define S2CHECK_H
|
|
|
|
|
|
|
|
/**@internal @file s2check.h
|
|
|
|
*
|
|
|
|
* @brief Check-based testing
|
|
|
|
*
|
|
|
|
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
|
|
|
|
*/
|
|
|
|
|
2009-02-11 12:39:29 -05:00
|
|
|
#ifndef SU_CONFIG_H
|
|
|
|
#include <sofia-sip/su_config.h>
|
|
|
|
#endif
|
|
|
|
|
2009-02-11 12:02:34 -05:00
|
|
|
#include <check.h>
|
|
|
|
|
|
|
|
SOFIA_BEGIN_DECLS
|
|
|
|
|
|
|
|
#undef tcase_add_test
|
2009-03-24 11:32:49 -04:00
|
|
|
#undef tcase_add_loop_test
|
|
|
|
|
2009-02-11 12:02:34 -05:00
|
|
|
/* Redirect tcase_add_test() to our function */
|
2009-03-24 11:32:49 -04:00
|
|
|
#define tcase_add_test(tc, tf) s2_tcase_add_test(tc, tf, "" #tf "", 0, 0, 1)
|
|
|
|
|
|
|
|
void s2_tcase_add_test(TCase *, TFun, char const *name,
|
|
|
|
int signo, int start, int end);
|
2009-02-11 12:02:34 -05:00
|
|
|
|
2009-03-24 11:32:49 -04:00
|
|
|
#define tcase_add_loop_test(tc, tf, s, e) \
|
|
|
|
s2_tcase_add_test(tc, tf, "" #tf "", 0, (s), (e))
|
2009-02-11 12:02:34 -05:00
|
|
|
|
2009-02-12 16:18:20 -05:00
|
|
|
void s2_select_tests(char const *pattern);
|
|
|
|
|
2009-02-11 12:02:34 -05:00
|
|
|
SOFIA_END_DECLS
|
|
|
|
|
|
|
|
#endif /* S2CHECK_H */
|