Line | |
---|
1 | PORT=9876 |
---|
2 | BITLBEE=/usr/sbin/bitlbee |
---|
3 | |
---|
4 | export TEST_SKYPE_ID=user |
---|
5 | export TEST_SKYPE_PASSWORD=pass |
---|
6 | |
---|
7 | testfiles := $(wildcard irssi/*.test) |
---|
8 | tests := $(patsubst %.test,%,$(testfiles)) |
---|
9 | |
---|
10 | .PHONY: $(tests) |
---|
11 | |
---|
12 | default: $(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 |
---|
24 | clean: |
---|
25 | rm -r irssi/*.log bitlbeetest.pid dotirssi livetest |
---|
26 | |
---|
27 | |
---|
Note: See
TracBrowser
for help on using the repository browser.