add makefile to run tests easier

This commit is contained in:
Jonathan Leibiusky
2012-04-14 10:44:40 -03:00
parent 72ca494362
commit ef08981ba3
3 changed files with 26 additions and 664 deletions

26
Makefile Normal file
View File

@@ -0,0 +1,26 @@
define REDIS1_CONF
daemonize yes
port 6379
requirepass foobared
pidfile /tmp/redis1.pid
endef
define REDIS2_CONF
daemonize yes
port 6380
requirepass foobared
pidfile /tmp/redis2.pid
endef
export REDIS1_CONF
export REDIS2_CONF
test:
echo "$$REDIS1_CONF" | redis-server -
echo "$$REDIS2_CONF" | redis-server -
mvn clean compile test
kill `cat /tmp/redis1.pid`
kill `cat /tmp/redis2.pid`
.PHONY: test