Skip to content

Commit

Permalink
Puka added to automated testing
Browse files Browse the repository at this point in the history
  • Loading branch information
majek committed Jul 6, 2011
1 parent 35e18da commit be12be3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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)
2 changes: 2 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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 = {
Expand Down

0 comments on commit be12be3

Please sign in to comment.