source: protocols/skype/t/Makefile @ fb11647a

Last change on this file since fb11647a 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
RevLine 
[25a7eb8]1PORT=9876
2BITLBEE=/usr/sbin/bitlbee
3
[e3781b9]4export TEST_SKYPE_ID=user
5export TEST_SKYPE_PASSWORD=pass
[25a7eb8]6
7testfiles := $(wildcard irssi/*.test)
8tests := $(patsubst %.test,%,$(testfiles))
9
[87e1eba]10.PHONY: $(tests)
[25a7eb8]11
[7279554]12all: $(tests)
[3512d0b]13        @echo "passed $$(echo $(testfiles)|wc -w) tests."
[25a7eb8]14
15$(tests): % : %.test
[87e1eba]16        @echo "--- Running test $@ ---"; \
[51f0c2b]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 \
[25a7eb8]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.