aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/skype/t/Makefile
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2011-04-12 02:10:57 +0200
committerMiklos Vajna <vmiklos@frugalware.org>2011-04-12 02:10:57 +0200
commit43b1cd7ac2a55145f9a80c5af505308c788f4b90 (patch)
tree8bc68ee925f13e8aa0c013eee855eebb811980d5 /protocols/skype/t/Makefile
parent6220254c1ecebce81ab765260ec0af3c3818f9a6 (diff)
parent9c97a03e2ec68559c21f319caca5cee94133f6b7 (diff)
Merge bitlbee-skype into bitlbee
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
+
+