From 626ef468cfee87435df8daa1bcfc274aaf1bffab Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Tue, 11 May 2010 21:25:43 +0000
Subject: [PATCH] Added a cfg for create a test runner instance (runUnitTest).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35182 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 buildout/instance-profiles/testrunner.cfg | 33 +++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 buildout/instance-profiles/testrunner.cfg

diff --git a/buildout/instance-profiles/testrunner.cfg b/buildout/instance-profiles/testrunner.cfg
new file mode 100644
index 0000000000..80556af56d
--- /dev/null
+++ b/buildout/instance-profiles/testrunner.cfg
@@ -0,0 +1,33 @@
+# This configuration only contains a template part which should
+# be instaciated by another recipe.
+
+[test-runner-template]
+recipe = erp5.recipe.testrunner
+zope2-location = ${software_definition:zope_software}
+
+# Extend products, bt5_path should be always defined
+# when this template be used.
+products =
+  ${software_definition:products-zope}
+  
+bt5_path = 
+
+instance-home = 
+
+# MySQL
+# below could be set in configuration
+mysql_superuser = root
+mysql_superpassword =
+
+mysql_database_name = test
+mysql_user = root
+mysql_password =
+mysql_host = ${configuration:mysql_host}
+mysql_port = ${configuration:mysql_port}
+
+initialization =
+  import os
+  os.environ['PATH'] = ':'.join(['${buildout:data-bin-directory}','${buildout:bin-directory}'] + os.environ.get('PATH','').split(':'))
+  sys.argv.insert(1, '--erp5_sql_connection_string=${:mysql_database_name}@${configuration:mysql_host}:${configuration:mysql_port} ${:mysql_user}')
+  sys.argv.insert(1, '--conversion_server_port=${configuration:oood_port}')
+  sys.argv.insert(1, '--use_dummy_mail_host')
-- 
2.30.9