Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos
Commits
2295ee12
Commit
2295ee12
authored
Aug 22, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added initial version of slapos-testing
parent
516022e5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
90 additions
and
0 deletions
+90
-0
setup.py
setup.py
+1
-0
slapos/recipe/erp5_test/__init__.py
slapos/recipe/erp5_test/__init__.py
+21
-0
software/slapos-testing/instance.cfg
software/slapos-testing/instance.cfg
+24
-0
software/slapos-testing/software.cfg
software/slapos-testing/software.cfg
+44
-0
No files found.
setup.py
View file @
2295ee12
...
...
@@ -67,6 +67,7 @@ setup(name=name,
'helloworld = slapos.recipe.helloworld:Recipe'
,
'generic.cloudooo = slapos.recipe.generic_cloudooo:Recipe'
,
'cloudooo.test = slapos.recipe.erp5_test:CloudoooRecipe'
,
'slap.test = slapos.recipe.erp5_test:SlapUnitTestRecipe'
,
'firefox = slapos.recipe.firefox:Recipe'
,
'fontconfig = slapos.recipe.fontconfig:Recipe'
,
'java = slapos.recipe.java:Recipe'
,
...
...
slapos/recipe/erp5_test/__init__.py
View file @
2295ee12
...
...
@@ -98,3 +98,24 @@ class CloudoooRecipe(GenericBaseRecipe):
],
**
common_dict
)]))
return
path_list
class
SlapUnitTestRecipe
(
GenericBaseRecipe
):
def
install
(
self
):
path_list
=
[]
common_dict
=
dict
(
prepend_path
=
self
.
options
[
'prepend-path'
],
)
common_list
=
[]
run_unit_test_path
=
self
.
createPythonScript
(
self
.
options
[
'run-unit-test'
],
__name__
+
'.test.runUnitTest'
,
[
dict
(
call_list
=
[
self
.
options
[
'run-unit-test-binary'
],
]
+
common_list
,
**
common_dict
)])
path_list
.
append
(
run_unit_test_path
)
path_list
.
append
(
self
.
createPythonScript
(
self
.
options
[
'run-test-suite'
],
__name__
+
'.test.runTestSuite'
,
[
dict
(
call_list
=
[
self
.
options
[
'run-test-suite-binary'
],
],
**
common_dict
)]))
return
path_list
software/slapos-testing/instance.cfg
0 → 100644
View file @
2295ee12
[buildout]
parts =
slapos-test-runner
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
[slapos-test-runner]
recipe = slapos.cookbook:slapuser.test
run-unit-test = ${buildout:bin-directory}/runUnitTest
run-test-suite = ${buildout:bin-directory}/runTestSuite
configuration-file = ${cloudooo-instance:configuration-file}
run-unit-test-binary =
run-test-suite-binary =
[rootdirectory]
recipe = slapos.cookbook:mkdirectory
etc = ${buildout:directory}/etc
srv = ${buildout:directory}/srv
bin = ${buildout:directory}/bin
software/slapos-testing/software.cfg
0 → 100644
View file @
2295ee12
[buildout]
extends =
../../component/slapos/buildout.cfg
../../component/git/buildout.cfg
develop =
${:parts-directory}/slapos.core-repository
parts += slapos.core-repository
check-recipe
runTestSuite
[runTestSuite]
recipe =
zc.recipe.testrunner
eggs =
slapos.core
# slapos.core do not use python convention to find the
# tests.
defaults = ['--tests-pattern', '$', '-v']
# Local development
[slapos.core-repository]
recipe = plone.recipe.command
stop-on-error = true
location = ${buildout:parts-directory}/${:_buildout_section_name_}
command = ${git:location}/bin/git clone --quiet http://git.erp5.org/repos/slapos.core.git ${:location}
update-command = cd ${:location} && ${git:location}/bin/git pull --quiet
[check-recipe]
recipe = plone.recipe.command
stop-on-error = true
update-command = ${:command}
command = grep parts ${buildout:develop-eggs-directory}/slapos.core.egg-link
[template]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance.cfg
md5sum =
mode = 640
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment