Skip to content

Commit be12be3

Browse files
committed
Puka added to automated testing
1 parent 35e18da commit be12be3

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ all:
3030
# make
3131
# make install
3232
#
33-
test: dotnet/.ok erlang/.ok java/.ok python/.ok php/.ok ruby/.ok
33+
test: dotnet/.ok erlang/.ok java/.ok python/.ok php/.ok ruby/.ok python-puka/.ok
3434
RUBYVER=$(RUBYVER) python test.py
3535

3636
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:
114114
clean::
115115
(cd ruby && \
116116
rm -rf .ok gems)
117+
118+
python-puka/.ok:
119+
(cd python-puka && \
120+
virtualenv venv && \
121+
./venv/bin/easy_install pip && \
122+
./venv/bin/pip install puka && \
123+
touch .ok)
124+
clean::
125+
(cd python-puka && \
126+
rm -rf .ok venv distribute*.tar.gz)

test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def gen(prog, arg="", **kwargs):
6060
'php': kwargs.get('php', prog),
6161
'arg': arg,
6262
'rubyver': os.environ.get('RUBYVER', '1.8'),
63+
'python-puka': kwargs.get('python-puka', prog),
6364
}
6465
return [
6566
('python', './venv/bin/python %(python)s.py %(arg)s' % ctx),
@@ -70,6 +71,7 @@ def gen(prog, arg="", **kwargs):
7071
('ruby', 'env RUBYOPT=-rubygems GEM_HOME=gems/gems RUBYLIB=gems/lib '
7172
'ruby%(rubyver)s %(ruby)s.rb %(arg)s' % ctx),
7273
('php', 'php %(php)s.php %(arg)s' % ctx),
74+
('python-puka', './venv/bin/python %(python-puka)s.py %(arg)s' % ctx),
7375
]
7476

7577
tests = {

0 commit comments

Comments
 (0)