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 | |
---|
[7279554] | 12 | all: $(tests) |
---|
[3512d0b] | 13 | @echo "passed $$(echo $(testfiles)|wc -w) tests." |
---|
[25a7eb8] | 14 | |
---|
| 15 | $(tests): % : %.test |
---|
[87e1eba] | 16 | @echo "--- Running test $@ ---"; \ |
---|
[51f0c2b] | 17 | if [ -r "$(BITLBEE)" -a -x "$(BITLBEE)" ]; then \ |
---|
| 18 | bitlbee_binary="$(BITLBEE)"; \ |
---|
| 19 | else \ |
---|
| 20 | bitlbee_basename=`basename $(BITLBEE)`; \ |
---|
| 21 | bitlbee_binary=`which $$bitlbee_basename`; \ |
---|
| 22 | fi; \ |
---|
| 23 | if ! ./livetest-bitlbee.sh "$$bitlbee_binary" $(PORT) irssi/livetest-irssi.sh $< >$@.log; then \ |
---|
[25a7eb8] | 24 | echo Test failed, log: ;\ |
---|
| 25 | cat $@.log;\ |
---|
| 26 | exit 1;\ |
---|
| 27 | fi;\ |
---|
| 28 | echo "--- OK ---" ;\ |
---|
| 29 | sleep 1 |
---|
| 30 | clean: |
---|
| 31 | rm -r irssi/*.log bitlbeetest.pid dotirssi livetest |
---|
| 32 | |
---|
| 33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.