Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
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
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos
Commits
e7713b99
Commit
e7713b99
authored
Mar 16, 2018
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos-testing: minimal documentation
parent
5b1120ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
software/slapos-testing/README.md
software/slapos-testing/README.md
+49
-0
No files found.
software/slapos-testing/README.md
0 → 100644
View file @
e7713b99
# Slapos egg tests
This software release is used to test eggs.
The approach is to use setuptools' integrated test runner,
`python setup.py
test`
, to run tests. The
`python`
used in this command will be a
`zc.recipe.egg`
interpreter with all eggs pre-installed by this software
release.
Nexedi staff can see the result of this test from the test suite
`SLAPOS-EGG-TEST`
in test result module.
To run test suite locally, one can use these commands in a webrunner:
```
bash
SR
=
https://lab.nexedi.com/nexedi/slapos/raw/master/software/slapos-testing/software.cfg
COMP
=
slaprunner
slapos supply
$SR
$COMP
slapos node software
slapos request
--node
=
node
=
$COMP
$SR
$COMP
slapos node instance
~/srv/runner/instance/slappart0/bin/runUnitTest
```
Here's an example session of how a developer could use this software release to
develop a slapos egg, in the ecample
`slapos.core`
to make changes to the code,
run tests and publish changes.
```
bash
# The source code is a git clone working copy on the instance
cd
~/srv/runner/instance/slappart0/parts/slapos.core/
# make some changes to the code
vim slapos/tests/client.py
# run tests, using bundled python intepreter with pre-installed eggs dependencies
~/srv/runner/instance/slappart0/software_release/bin/python_for_test setup.py build
# when satified, commit changes
git add
-p
&&
git commit
# add developer's fork remote (this is only needed the first time)
git remote add my_remote https://lab.nexedi.com/your_username/slapos.core.git/
# push the changes
git push my_remote HEAD:feature_branch_name
# then submit merge request
```
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