Changeset 7bcdde3 for tests


Ignore:
Timestamp:
2006-12-06T13:57:25Z (13 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
a51be64
Parents:
3b4cc8f
Message:

Some simple tests for irc_*()

Location:
tests
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • tests/Makefile

    r3b4cc8f r7bcdde3  
    44
    55all: check
    6         ./check
     6        ./check $(CHECKFLAGS)
    77
    88clean:
     
    1111main_objs = account.o bitlbee.o conf.o crypting.o help.o ipc.o irc.o irc_commands.o log.o nick.o query.o root_commands.o set.o storage.o storage_xml.o storage_text.o user.o
    1212
    13 test_objs = check.o check_util.o check_nick.o check_md5.o
     13test_objs = check.o check_util.o check_nick.o check_md5.o check_irc.o
    1414
    1515check: $(test_objs) $(addprefix ../, $(main_objs)) ../protocols/protocols.o ../lib/lib.o
  • tests/check.c

    r3b4cc8f r7bcdde3  
    3838Suite *md5_suite(void);
    3939
     40/* From check_irc.c */
     41Suite *irc_suite(void);
     42
    4043int main (int argc, char **argv)
    4144{
     
    6063        g_option_context_free(pc);
    6164
     65        log_init();
     66
     67        if (verbose) {
     68                log_link( LOGLVL_ERROR, LOGOUTPUT_CONSOLE );
     69                log_link( LOGLVL_DEBUG, LOGOUTPUT_CONSOLE );
     70                log_link( LOGLVL_INFO, LOGOUTPUT_CONSOLE );
     71                log_link( LOGLVL_WARNING, LOGOUTPUT_CONSOLE );
     72        }
     73
     74        global.conf = conf_load( 0, NULL);
     75        global.conf->runmode = RUNMODE_DAEMON;
    6276
    6377        sr = srunner_create(util_suite());
    6478        srunner_add_suite(sr, nick_suite());
    6579        srunner_add_suite(sr, md5_suite());
     80        srunner_add_suite(sr, irc_suite());
    6681        if (no_fork)
    6782                srunner_set_fork_status(sr, CK_NOFORK);
Note: See TracChangeset for help on using the changeset viewer.