Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
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
Łukasz Nowak
slapos.buildout
Commits
4ddc3ea2
Commit
4ddc3ea2
authored
Aug 31, 2006
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a test for the bootstrap script.
parent
9fa175c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
src/zc/buildout/tests.py
src/zc/buildout/tests.py
+46
-0
No files found.
src/zc/buildout/tests.py
View file @
4ddc3ea2
...
@@ -216,6 +216,47 @@ uninstalling anything because the configuration hasn't changed.
...
@@ -216,6 +216,47 @@ uninstalling anything because the configuration hasn't changed.
buildout: Installing debug
buildout: Installing debug
"""
"""
bootstrap_py
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
zc
.
buildout
.
__file__
)
)
)
),
'bootstrap'
,
'bootstrap.py'
)
if
os
.
path
.
exists
(
bootstrap_py
):
def
test_bootstrap_py
():
"""Make sure the bootstrap script actually works
>>> sample_buildout = mkdtemp()
>>> os.chdir(sample_buildout)
>>> write('bootstrap.py', open(bootstrap_py).read())
>>> print system(sys.executable+' '+'bootstrap.py'), # doctest: +ELLIPSIS
Downloading ...
Warning: creating ...buildout.cfg
>>> ls(sample_buildout)
d bin
- bootstrap.py
- buildout.cfg
d develop-eggs
d eggs
d parts
>>> ls(sample_buildout, 'bin')
- buildout
- py-zc.buildout
>>> ls(sample_buildout, 'eggs')
- setuptools-0.6-py2.4.egg
d zc.buildout-1.0-py2.4.egg
"""
def
linkerSetUp
(
test
):
def
linkerSetUp
(
test
):
zc
.
buildout
.
testing
.
buildoutSetUp
(
test
,
clear_home
=
False
)
zc
.
buildout
.
testing
.
buildoutSetUp
(
test
,
clear_home
=
False
)
zc
.
buildout
.
testing
.
multi_python
(
test
)
zc
.
buildout
.
testing
.
multi_python
(
test
)
...
@@ -334,6 +375,11 @@ def test_suite():
...
@@ -334,6 +375,11 @@ def test_suite():
checker=PythonNormalizing([
checker=PythonNormalizing([
(re.compile("
buildout
:
Running
\
S
*
setup
.
py
"),
(re.compile("
buildout
:
Running
\
S
*
setup
.
py
"),
'buildout: Running setup.py'),
'buildout: Running setup.py'),
(re.compile('py_zc'), 'py-zc'), # XXX get rid of after next rel
(re.compile('setuptools-
\
S+-py
\
d.
\
d.egg
'
),
'setuptools.egg'),
(re.compile('zc.buildout-
\
S+-py
\
d.
\
d.egg
'
),
'zc.buildout.egg'),
]),
]),
)
)
))
))
...
...
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