Last change
on this file since 6f5ab2a was
51f0c2b,
checked in by Philippe Crama <pcfeb0009@…>, at 2011-01-03T20:44:01Z
|
First try absolute path, then look for basename in PATH
|
-
Property mode set to
100644
|
File size:
775 bytes
|
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 $@ ---"; \ |
---|
[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.