source: skype/t/Makefile @ 1f4fc80

Last change on this file since 1f4fc80 was 3512d0b, checked in by Miklos Vajna <vmiklos@…>, at 2009-02-18T00:23:07Z

t: add summary to the end

  • Property mode set to 100644
File size: 1.0 KB
Line 
1PORT=9876
2BITLBEE=/usr/sbin/bitlbee
3
4export TEST_SKYPE_ID=bitlbee-skype
5export TEST_SKYPE_PASSWORD=:9eQBgoh8
6
7testfiles := $(wildcard irssi/*.test)
8tests := $(patsubst %.test,%,$(testfiles))
9
10.PHONY: checkvars $(tests)
11
12default: $(tests)
13        @echo "passed $$(echo $(testfiles)|wc -w) tests."
14
15checkvars:
16        @for test in irssi/*.test; do NVAR="$$NVAR `irssi/livetest-irssi.sh $$test checkvars`";done;\
17                if echo $$NVAR|grep TEST &>/dev/null; then \
18                        echo Needed variables: ; \
19                        echo $$NVAR | tr ' ' '\n' | sort | uniq; \
20                        exit 1; \
21                else \
22                        echo "--- Environment OK ---";\
23                fi
24
25$(tests): % : %.test
26        @if ! NVARS=`irssi/livetest-irssi.sh $< checkvars`; then echo Need environment variables for $@: $$NVARS;\
27                echo Skipping...;exit 0;fi;\
28        echo "--- Running test $@ ---"; \
29                if ! ./livetest-bitlbee.sh $(BITLBEE) $(PORT) irssi/livetest-irssi.sh $< >$@.log; then \
30                        echo Test failed, log: ;\
31                        cat $@.log;\
32                        exit 1;\
33                fi;\
34        echo "--- OK ---" ;\
35        sleep 1
36clean:
37        rm -r irssi/*.log bitlbeetest.pid dotirssi livetest
38
39
Note: See TracBrowser for help on using the repository browser.