src/test/test_list.inc
author Tero Marttila <terom@fixme.fi>
Mon, 04 May 2009 20:55:04 +0300
branchnew-transport
changeset 168 a58ad50911fc
child 184 2ab01ab33cfa
permissions -rw-r--r--
refactor test.c into tests/*
/**
 * This include file acts as a "supermacro", calling a macro (TEST) for each defined test.
 *
 * All tests must be added to this list.
 *
 * TEST() macro signature:
 *  #define TEST(name)
 *  #define TEST_OPTIONAL(name)
 *  #define TEST_END
 */

#ifndef TEST
    /* Required */
    #error TEST macro not defined
#endif

#ifndef TEST_OPTIONAL
    /* Default to the same value as TEST() */
    #define TEST_OPTIONAL(name) TEST(name)
#endif


/* Tests*/
TEST ( str_quote                    )
TEST ( str_format                   )
TEST ( dump_str                     )
TEST ( transport_test               )
TEST ( line_proto                   )
TEST ( irc_queue                    )
TEST ( irc_conn                     )
TEST ( irc_conn_self_nick           )
TEST ( irc_net                      )
TEST ( irc_chan_add_offline         )
TEST ( irc_chan_namreply            )
TEST ( irc_chan_user_join           )
TEST ( irc_chan_user_part           )
TEST ( irc_chan_user_kick           )
TEST ( irc_chan_self_kick           )
TEST ( irc_chan_user_nick           )
TEST ( irc_chan_user_quit           )
TEST ( irc_chan_CTCP_ACTION         )
TEST ( irc_chan_privmsg             )

/* Optional tests */
TEST_OPTIONAL ( fifo                )

/*
 * End of list
 */
#ifdef TEST_END
    TEST_END
#endif    

/*
 * Cleanup
 */
#undef TEST
#undef TEST_OPTIONAL
#undef TEST_END