aboutsummaryrefslogtreecommitdiffstats
path: root/skype/t/Makefile
blob: c58729dca07868e2640b92f86e15fcd30880b243 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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)

default: $(tests)
	@echo "passed $$(echo $(testfiles)|wc -w) tests."

$(tests): % : %.test
	@echo "--- Running test $@ ---"; \
		if ! ./livetest-bitlbee.sh $(BITLBEE) $(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