Permalink
Browse files

MB-100: add testrunner bootstrap

testrunner.py is just a copy of testrunner with added entry point
(function named main).

Change-Id: I4d502bc168420d32f0cb4005f49f4a42113589cf
Reviewed-on: http://review.couchbase.org/23469
Tested-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
  • Loading branch information...
1 parent 19a206b commit fc27f86dd6cad0325617dc574478b742941265f8 @pavel-paulau pavel-paulau committed with pavel-paulau Dec 20, 2012
Showing with 423 additions and 0 deletions.
  1. +6 −0 .gitignore
  2. +19 −0 README.md
  3. +18 −0 buildout.cfg
  4. +8 −0 scripts/setup.py
  5. +372 −0 scripts/testrunner.py
View
@@ -9,3 +9,9 @@ dist/
logs/
ns_server_data*
tmp*
+eggs
+develop-eggs
+.installed.cfg
+bin
+*.egg-info
+parts
View
@@ -7,6 +7,10 @@ Prerequisites
Dependencies
------------
+Bootstrap:
+
+ pip install zc.buildout
+
Common:
pip install paramiko
@@ -54,6 +58,21 @@ Usage
Test name (multiple -t options add more tests) e.g -t
performance.perf.DiskDrainRate
+Bootstrap
+---------
+
+Initiate buildout directory structure:
+
+ buildout bootstrap
+
+Create sandbox, build packages and scripts, fetch dependencies, and etc.:
+
+ ./bin/buildout
+
+You can execute testrunner now:
+
+ ./bin/testrunner -h
+
Resource Files
--------------
View
@@ -0,0 +1,18 @@
+[buildout]
+parts = eggs scripts
+develop = scripts
+include-site-packages = false
+
+[eggs]
+recipe: zc.recipe.egg:eggs
+eggs =
+ paramiko
+ boto
+
+[scripts]
+recipe = zc.recipe.egg:scripts
+extra-paths =
+ ${buildout:directory}
+eggs =
+ ${eggs:eggs}
+ cbbuildout
View
@@ -0,0 +1,8 @@
+from setuptools import setup
+
+setup(
+ name="cbbuildout",
+ entry_points={
+ "console_scripts": ["testrunner = testrunner:main"],
+ },
+)
Oops, something went wrong.

0 comments on commit fc27f86

Please sign in to comment.