source: skype/t/Makefile @ 7cc2c1e

Last change on this file since 7cc2c1e was e3781b9, checked in by Miklos Vajna <vmiklos@…>, at 2010-04-12T15:37:33Z

use fake user/pass

the only problem that can happen this case is that we can talk to
ourselves, but that's not a big problem.

  • Property mode set to 100644
File size: 1011 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: 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.