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
|
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 [ -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 \ |
---|
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.