Changes in / [55078f5:d8d63a2]


Ignore:
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • .bzrignore

    r55078f5 rd8d63a2  
    1313.gdb_history
    1414tests/check
     15*.gcda
     16*.gcov
     17*.gcno
     18*.o
  • Makefile

    r55078f5 rd8d63a2  
    4040clean: $(subdirs)
    4141        rm -f *.o $(OUTFILE) core utils/bitlbeed encode decode
     42        $(MAKE) -C tests clean
    4243
    4344distclean: clean $(subdirs)
    4445        rm -f Makefile.settings config.h bitlbee.pc
    4546        find . -name 'DEADJOE' -o -name '*.orig' -o -name '*.rej' -o -name '*~' -exec rm -f {} \;
     47        $(MAKE) -C test distclean
    4648
    47 check:
     49check: all
    4850        $(MAKE) -C tests
     51
     52gcov: check
     53        gcov *.c
    4954
    5055install-doc:
  • configure

    r55078f5 rd8d63a2  
    2828debug=0
    2929strip=1
     30gcov=0
    3031ipv6=1
    3132
     
    6768--debug=0/1     Disable/enable debugging                $debug
    6869--strip=0/1     Disable/enable binary stripping         $strip
     70--gcov=0/1      Disable/enable test coverage reporting  $gcov
    6971
    7072--ipv6=0/1      IPv6 socket support                     $ipv6
     
    366368fi
    367369
     370if [ "$gcov" = "1" ]; then
     371        echo "CFLAGS+=-ftest-coverage -fprofile-arcs" >> Makefile.settings
     372        echo "EFLAGS+=-lgcov" >> Makefile.settings
     373fi
     374
    368375echo
    369376if [ -z "$BITLBEE_VERSION" -a -d .bzr ] && type bzr > /dev/null 2> /dev/null; then
  • protocols/Makefile

    r55078f5 rd8d63a2  
    2626# [SH] Phony targets
    2727all: protocols.o
     28check: all
     29gcov:
     30        gcov *.c
    2831
    2932.PHONY: all clean distclean $(subdirs)
  • protocols/jabber/Makefile

    r55078f5 rd8d63a2  
    1717# [SH] Phony targets
    1818all: jabber_mod.o
     19check: all
    1920
    2021.PHONY: all clean distclean
  • protocols/msn/Makefile

    r55078f5 rd8d63a2  
    1717# [SH] Phony targets
    1818all: msn_mod.o
     19check: all
     20gcov:
     21        gcov *.c
    1922       
    2023.PHONY: all clean distclean
  • protocols/oscar/Makefile

    r55078f5 rd8d63a2  
    1717# [SH] Phony targets
    1818all: oscar_mod.o
     19check: all
     20gcov:
     21        gcov *.c
    1922
    2023.PHONY: all clean distclean
  • protocols/yahoo/Makefile

    r55078f5 rd8d63a2  
    1717# [SH] Phony targets
    1818all: yahoo_mod.o
     19check: all
     20gcov:
     21        gcov *.c
    1922
    2023.PHONY: all clean distclean
  • tests/Makefile

    r55078f5 rd8d63a2  
    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

    r55078f5 rd8d63a2  
    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.