source: skype/t/Makefile @ 59f62dc

Last change on this file since 59f62dc was 87e1eba, checked in by Miklos Vajna <vmiklos@…>, at 2010-12-08T03:05:27Z

t: cleanup

  • Property mode set to 100644
File size: 571 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
12default: $(tests)
13        @echo "passed $$(echo $(testfiles)|wc -w) tests."
14
15$(tests): % : %.test
16        @echo "--- Running test $@ ---"; \
17                if ! ./livetest-bitlbee.sh $(BITLBEE) $(PORT) irssi/livetest-irssi.sh $< >$@.log; then \
18                        echo Test failed, log: ;\
19                        cat $@.log;\
20                        exit 1;\
21                fi;\
22        echo "--- OK ---" ;\
23        sleep 1
24clean:
25        rm -r irssi/*.log bitlbeetest.pid dotirssi livetest
26
27
Note: See TracBrowser for help on using the repository browser.