aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--skype/t/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/skype/t/Makefile b/skype/t/Makefile
index c58729dc..be960f24 100644
--- a/skype/t/Makefile
+++ b/skype/t/Makefile
@@ -14,7 +14,13 @@ default: $(tests)
$(tests): % : %.test
@echo "--- Running test $@ ---"; \
- if ! ./livetest-bitlbee.sh $(BITLBEE) $(PORT) irssi/livetest-irssi.sh $< >$@.log; then \
+ if [ -r "$(BITLBEE)" -a -x "$(BITLBEE)" ]; then \
+ bitlbee_binary="$(BITLBEE)"; \
+ else \
+ bitlbee_basename=`basename $(BITLBEE)`; \
+ bitlbee_binary=`which $$bitlbee_basename`; \
+ fi; \
+ if ! ./livetest-bitlbee.sh "$$bitlbee_binary" $(PORT) irssi/livetest-irssi.sh $< >$@.log; then \
echo Test failed, log: ;\
cat $@.log;\
exit 1;\