Changeset 66b9e86e for tests


Ignore:
Timestamp:
2006-07-07T13:33:31Z (18 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
f4aa393
Parents:
bf25fa3
Message:

Add support for checking test suite coverage using gcov.

Location:
tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/Makefile

    rbf25fa3 r66b9e86e  
    33LFLAGS +=-lcheck
    44
    5 all: check
     5all: check 
    66        ./check
     7
     8clean:
     9        rm -f check *.o
    710
    811main_objs = account.o bitlbee.o conf.o crypting.o help.o ini.o ipc.o irc.o irc_commands.o log.o nick.o query.o root_commands.o set.o storage.o storage_text.o url.o user.o util.o
    912
    10 check: check.o check_util.o check_nick.o $(addprefix ../, $(main_objs)) ../protocols/protocols.o
     13test_objs = check.o check_util.o check_nick.o
     14
     15check: $(test_objs) $(addprefix ../, $(main_objs)) ../protocols/protocols.o
    1116        @echo '*' Linking $@
    1217        @$(CC) $(CFLAGS) -o $@ $^ $(LFLAGS) $(EFLAGS)
  • tests/check_nick.c

    rbf25fa3 r66b9e86e  
    2323
    2424        for (i = 0; get[i]; i++) {
    25                 char copy[30];
     25                char copy[60];
    2626                strcpy(copy, get[i]);
    2727                nick_strip(copy);
Note: See TracChangeset for help on using the changeset viewer.