source: skype/t/Makefile @ 8b8d1bed

Last change on this file since 8b8d1bed 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
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
12default: $(tests)
[3512d0b]13        @echo "passed $$(echo $(testfiles)|wc -w) tests."
[25a7eb8]14
15$(tests): % : %.test
[87e1eba]16        @echo "--- Running test $@ ---"; \
[25a7eb8]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.