aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/skype/t/Makefile
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2011-07-24 13:51:00 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2011-07-24 13:51:00 +0100
commitc8b8c83fb6a0ae1b59de71ac796a78d73e444988 (patch)
tree9fdc9d1393353e663132b34cff0b8c16fb1e014c /protocols/skype/t/Makefile
parenta01049810d7101b8c0014aa7b36826fc95f944a5 (diff)
parent17f6079a06eaed2fba1da999332e9e5ac1dbc2a6 (diff)
Merging Skype plugin. Many thanks to Miklos Vajna for all his work on this,
having this distributed together with BitlBee will hopefully make up for the fact that BitlBee has poor binary API backward compatibility.
Diffstat (limited to 'protocols/skype/t/Makefile')
-rw-r--r--protocols/skype/t/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/protocols/skype/t/Makefile b/protocols/skype/t/Makefile
new file mode 100644
index 00000000..9c5e95f9
--- /dev/null
+++ b/protocols/skype/t/Makefile
@@ -0,0 +1,33 @@
+PORT=9876
+BITLBEE=/usr/sbin/bitlbee
+
+export TEST_SKYPE_ID=user
+export TEST_SKYPE_PASSWORD=pass
+
+testfiles := $(wildcard irssi/*.test)
+tests := $(patsubst %.test,%,$(testfiles))
+
+.PHONY: $(tests)
+
+all: $(tests)
+ @echo "passed $$(echo $(testfiles)|wc -w) tests."
+
+$(tests): % : %.test
+ @echo "--- Running test $@ ---"; \
+ 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;\
+ fi;\
+ echo "--- OK ---" ;\
+ sleep 1
+clean:
+ rm -r irssi/*.log bitlbeetest.pid dotirssi livetest
+
+