Permalink
Browse files

Puka added to automated testing

  • Loading branch information...
1 parent 35e18da commit be12be3259b3ee935c05d27d40f7d26f800721b6 @majek majek committed Jul 6, 2011
Showing with 13 additions and 1 deletion.
  1. +11 −1 Makefile
  2. +2 −0 test.py
View
12 Makefile
@@ -30,7 +30,7 @@ all:
# make
# make install
#
-test: dotnet/.ok erlang/.ok java/.ok python/.ok php/.ok ruby/.ok
+test: dotnet/.ok erlang/.ok java/.ok python/.ok php/.ok ruby/.ok python-puka/.ok
RUBYVER=$(RUBYVER) python test.py
RABBITVER:=`curl -s "http://www.rabbitmq.com/releases/rabbitmq-server/?C=N;O=D;F=0;V=1" | grep -oE '([0-9\.]{5,})' | head -n 1`
@@ -114,3 +114,13 @@ ruby/.ok:
clean::
(cd ruby && \
rm -rf .ok gems)
+
+python-puka/.ok:
+ (cd python-puka && \
+ virtualenv venv && \
+ ./venv/bin/easy_install pip && \
+ ./venv/bin/pip install puka && \
+ touch .ok)
+clean::
+ (cd python-puka && \
+ rm -rf .ok venv distribute*.tar.gz)
View
2 test.py
@@ -60,6 +60,7 @@ def gen(prog, arg="", **kwargs):
'php': kwargs.get('php', prog),
'arg': arg,
'rubyver': os.environ.get('RUBYVER', '1.8'),
+ 'python-puka': kwargs.get('python-puka', prog),
}
return [
('python', './venv/bin/python %(python)s.py %(arg)s' % ctx),
@@ -70,6 +71,7 @@ def gen(prog, arg="", **kwargs):
('ruby', 'env RUBYOPT=-rubygems GEM_HOME=gems/gems RUBYLIB=gems/lib '
'ruby%(rubyver)s %(ruby)s.rb %(arg)s' % ctx),
('php', 'php %(php)s.php %(arg)s' % ctx),
+ ('python-puka', './venv/bin/python %(python-puka)s.py %(arg)s' % ctx),
]
tests = {

0 comments on commit be12be3

Please sign in to comment.