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