source: protocols/skype/t/Makefile @ b926d88

Last change on this file since b926d88 was 43b1cd7, checked in by Miklos Vajna <vmiklos@…>, at 2011-04-12T00:10:57Z

Merge bitlbee-skype into bitlbee

  • Property mode set to 100644
File size: 771 bytes
Line 
1PORT=9876
2BITLBEE=/usr/sbin/bitlbee
3
4export TEST_SKYPE_ID=user
5export TEST_SKYPE_PASSWORD=pass
6
7testfiles := $(wildcard irssi/*.test)
8tests := $(patsubst %.test,%,$(testfiles))
9
10.PHONY: $(tests)
11
12all: $(tests)
13        @echo "passed $$(echo $(testfiles)|wc -w) tests."
14
15$(tests): % : %.test
16        @echo "--- Running test $@ ---"; \
17                if [ -r "$(BITLBEE)" -a -x "$(BITLBEE)" ]; then \
18                        bitlbee_binary="$(BITLBEE)"; \
19                else \
20                        bitlbee_basename=`basename $(BITLBEE)`; \
21                        bitlbee_binary=`which $$bitlbee_basename`; \
22                fi; \
23                if ! ./livetest-bitlbee.sh "$$bitlbee_binary" $(PORT) irssi/livetest-irssi.sh $< >$@.log; then \
24                        echo Test failed, log: ;\
25                        cat $@.log;\
26                        exit 1;\
27                fi;\
28        echo "--- OK ---" ;\
29        sleep 1
30clean:
31        rm -r irssi/*.log bitlbeetest.pid dotirssi livetest
32
33
Note: See TracBrowser for help on using the repository browser.