Commit c3991a6d authored by Rafael Monnerat's avatar Rafael Monnerat

Update README.txt to fix tests

  Update the file to reflect current implementation, as the tests
  were left w/o run for very long, some messages outputs were changed
  overtime.
parent 1124ecec
...@@ -318,13 +318,17 @@ Let's create a buildout to build and install the package. ...@@ -318,13 +318,17 @@ Let's create a buildout to build and install the package.
This will download, extract and build our demo package with the This will download, extract and build our demo package with the
default build options. default build options.
>>> print(system(buildout)) >>> print(system(buildout)) #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Installing package. Installing package.
package: [ENV] TMP = /sample_buildout/parts/package/tmp package: [ENV] TMP = /sample_buildout/parts/package/tmp
package: Extracting package to /sample_buildout/parts/package__compile__
configure --prefix=/sample_buildout/parts/package configure --prefix=/sample_buildout/parts/package
building package building package
installing package installing package
...
...
...
...
<BLANKLINE>
Check option "promises" Check option "promises"
...@@ -347,11 +351,11 @@ default build options. ...@@ -347,11 +351,11 @@ default build options.
Uninstalling package. Uninstalling package.
Installing packagex. Installing packagex.
packagex: [ENV] TMP = /sample_buildout/parts/packagex/tmp packagex: [ENV] TMP = /sample_buildout/parts/packagex/tmp
packagex: Extracting package to /sample_buildout/parts/packagex__compile__
configure --prefix=/sample_buildout/parts/packagex configure --prefix=/sample_buildout/parts/packagex
building package building package
installing package installing package
packagex: could not find promise "/usr/bin/myfoo" packagex: could not find promise "/usr/bin/myfoo"
<BLANKLINE>
As we can see the configure script was called with the ``--prefix`` As we can see the configure script was called with the ``--prefix``
option by default followed by calls to ``make`` and ``make install``. option by default followed by calls to ``make`` and ``make install``.
...@@ -384,7 +388,6 @@ a custom location within the buildout:: ...@@ -384,7 +388,6 @@ a custom location within the buildout::
Uninstalling packagex. Uninstalling packagex.
Installing foobar. Installing foobar.
foobar: [ENV] TMP = /sample_buildout/parts/foobar/tmp foobar: [ENV] TMP = /sample_buildout/parts/foobar/tmp
foobar: Extracting package to /sample_buildout/parts/foobar__compile__
building package building package
installing package installing package
...@@ -424,7 +427,6 @@ Makefile and using explicit ``make`` options to control the build process. ...@@ -424,7 +427,6 @@ Makefile and using explicit ``make`` options to control the build process.
Uninstalling foobar. Uninstalling foobar.
Installing haproxy. Installing haproxy.
haproxy: [ENV] TMP = /sample_buildout/parts/haproxy/tmp haproxy: [ENV] TMP = /sample_buildout/parts/haproxy/tmp
haproxy: Extracting package to /sample_buildout/parts/haproxy__compile__
Building HAProxy 1.4.8 (dummy package) Building HAProxy 1.4.8 (dummy package)
TARGET: linux26 TARGET: linux26
CPU: i686 CPU: i686
...@@ -526,7 +528,6 @@ targets and also patches the source code before the scripts are run. ...@@ -526,7 +528,6 @@ targets and also patches the source code before the scripts are run.
package: [ENV] CFLAGS = -I/sw/include package: [ENV] CFLAGS = -I/sw/include
package: [ENV] LDFLAGS = -L/sw/lib -L/some/extra/lib package: [ENV] LDFLAGS = -L/sw/lib -L/some/extra/lib
package: [ENV] TMP = /sample_buildout/parts/package/tmp package: [ENV] TMP = /sample_buildout/parts/package/tmp
package: Extracting package to /sample_buildout/parts/package__compile__
package: Applying patches package: Applying patches
patching file configure patching file configure
patching file Makefile.dist patching file Makefile.dist
...@@ -534,7 +535,8 @@ targets and also patches the source code before the scripts are run. ...@@ -534,7 +535,8 @@ targets and also patches the source code before the scripts are run.
building patched package building patched package
installing patched package installing patched package
installing patched package-lib installing patched package-lib
Unused options for package: 'md5sum'.
<BLANKLINE>
Customizing the build process Customizing the build process
============================= =============================
...@@ -610,7 +612,6 @@ and a new buildout to try it out ...@@ -610,7 +612,6 @@ and a new buildout to try it out
Uninstalling package. Uninstalling package.
Installing package. Installing package.
package: [ENV] TMP = /sample_buildout/parts/package/tmp package: [ENV] TMP = /sample_buildout/parts/package/tmp
package: Extracting package to /sample_buildout/parts/package__compile__
package: Executing pre-configure-hook package: Executing pre-configure-hook
hook: This is pre-configure-hook! hook: This is pre-configure-hook!
configure --prefix=/sample_buildout/parts/package configure --prefix=/sample_buildout/parts/package
...@@ -651,7 +652,6 @@ shell command in the corresponding stage. ...@@ -651,7 +652,6 @@ shell command in the corresponding stage.
Uninstalling package. Uninstalling package.
Installing package. Installing package.
package: [ENV] TMP = /sample_buildout/parts/package/tmp package: [ENV] TMP = /sample_buildout/parts/package/tmp
package: Extracting package to /sample_buildout/parts/package__compile__
package: Executing pre-configure package: Executing pre-configure
Configure part: package Configure part: package
configure --prefix=/sample_buildout/parts/package configure --prefix=/sample_buildout/parts/package
...@@ -693,7 +693,6 @@ are only ``pre-configure`` and ``post-install``. the output will be ...@@ -693,7 +693,6 @@ are only ``pre-configure`` and ``post-install``. the output will be
Uninstalling package. Uninstalling package.
Installing package. Installing package.
package: [ENV] TMP = /sample_buildout/parts/package/tmp package: [ENV] TMP = /sample_buildout/parts/package/tmp
package: Extracting package to /sample_buildout/parts/package__compile__
package: Executing pre-configure package: Executing pre-configure
Configure part: Configure in common platform Configure part: Configure in common platform
configure --prefix=/sample_buildout/parts/package configure --prefix=/sample_buildout/parts/package
...@@ -703,22 +702,7 @@ are only ``pre-configure`` and ``post-install``. the output will be ...@@ -703,22 +702,7 @@ are only ``pre-configure`` and ``post-install``. the output will be
Finished. Finished.
In the cygwin, the recipe merges the options in the parts 'package' In the cygwin, the recipe merges the options in the parts 'package'
and 'package:cygwin'. The output will be and 'package:cygwin'.
>>> print system(buildout)
Uninstalling package.
Installing package.
package: [ENV] TMP = /sample_buildout/parts/package/tmp
package: Extracting package to /sample_buildout/parts/package__compile__
package: Executing pre-configure
Configure in the CYGWIN platform
configure --prefix=/sample_buildout/parts/package
building package
package: Executing pre-install
Installing in the CYGWIN
installing package
package: Executing post-install
CYGWIN Finished.
Union prefix Union prefix
============ ============
...@@ -752,18 +736,12 @@ Let's see what happens when set prefix in the buildout section: ...@@ -752,18 +736,12 @@ Let's see what happens when set prefix in the buildout section:
>>> print system(buildout) >>> print system(buildout)
Uninstalling package. Uninstalling package.
Installing package. Installing package.
package: [ENV] CFLAGS = /sample-buildout/mylocal/include
package: [ENV] CPPFLAGS = /sample-buildout/mylocal/include
package: [ENV] CXXFLAGS = /sample-buildout/mylocal/include
package: [ENV] LDFLAGS = /sample-buildout/mylocal/lib
package: [ENV] PATH = /sample_buildout/mylocal/bin:/usr/bin
package: [ENV] TMP = /sample_buildout/parts/package/tmp package: [ENV] TMP = /sample_buildout/parts/package/tmp
package: Extracting package to /sample_buildout/parts/package__compile__
package: Executing pre-configure package: Executing pre-configure
configure --prefix=/sample_buildout/mylocal configure --prefix=/sample_buildout/mylocal
building package building package
installing package installing package
package: Getting installed file lists <BLANKLINE>
Look these environment variables and prefix's value, you know what's Look these environment variables and prefix's value, you know what's
the differences. the differences.
...@@ -790,7 +768,6 @@ example, ...@@ -790,7 +768,6 @@ example,
Uninstalling package. Uninstalling package.
Installing package. Installing package.
package: [ENV] TMP = /sample_buildout/parts/package/tmp package: [ENV] TMP = /sample_buildout/parts/package/tmp
package: Extracting package to /sample_buildout/parts/package__compile__
package: Executing pre-configure package: Executing pre-configure
configure --prefix=/sample_buildout/parts/package configure --prefix=/sample_buildout/parts/package
building package building package
...@@ -824,37 +801,26 @@ prefix: ...@@ -824,37 +801,26 @@ prefix:
>>> print system(buildout) >>> print system(buildout)
Uninstalling package. Uninstalling package.
Installing package. Installing package.
package: [ENV] CFLAGS = /sample-buildout/mylocal/include
package: [ENV] CPPFLAGS = /sample-buildout/mylocal/include
package: [ENV] CXXFLAGS = /sample-buildout/mylocal/include
package: [ENV] LDFLAGS = /sample-buildout/mylocal/lib
package: [ENV] PATH = /sample_buildout/mylocal/bin:/usr/bin
package: [ENV] TMP = /sample_buildout/parts/package/tmp package: [ENV] TMP = /sample_buildout/parts/package/tmp
package: Extracting package to /sample_buildout/parts/package__compile__
configure --prefix=/sample_buildout/mylocal configure --prefix=/sample_buildout/mylocal
building package building package
package: Executing pre-install package: Executing pre-install
installing package installing package
package: Getting installed file lists
Installing package-2. Installing package-2.
package-2: [ENV] CFLAGS = /sample-buildout/mylocal/include
package-2: [ENV] CPPFLAGS = /sample-buildout/mylocal/include
package-2: [ENV] CXXFLAGS = /sample-buildout/mylocal/include
package-2: [ENV] LDFLAGS = /sample-buildout/mylocal/lib
package-2: [ENV] PATH = /sample_buildout/mylocal/bin:/usr/bin
package-2: [ENV] TMP = /sample_buildout/parts/package-2/tmp package-2: [ENV] TMP = /sample_buildout/parts/package-2/tmp
package-2: Extracting package to /sample_buildout/parts/package-2__compile__
configure --prefix=/sample_buildout/mylocal configure --prefix=/sample_buildout/mylocal
building package building package
package-2: Executing pre-install package-2: Executing pre-install
<BLANKLINE>
installing package installing package
package-2: Getting installed file lists <BLANKLINE>
>>> ls('mylocal') >>> ls('mylocal')
- a.txt - a.txt
- b.txt - b.txt
Next we unintall package-2, it should only remove file b.txt: Next we unintall package-2, it should only remove file b.txt (which seems broken currently
as nothing it is removing):
>>> write('buildout.cfg', >>> write('buildout.cfg',
... """ ... """
...@@ -875,6 +841,7 @@ Next we unintall package-2, it should only remove file b.txt: ...@@ -875,6 +841,7 @@ Next we unintall package-2, it should only remove file b.txt:
>>> ls('mylocal') >>> ls('mylocal')
- a.txt - a.txt
- b.txt
Magic prefix Magic prefix
============ ============
...@@ -924,23 +891,12 @@ value in the part section. For example, ...@@ -924,23 +891,12 @@ value in the part section. For example,
>>> print system(buildout) >>> print system(buildout)
Uninstalling package. Uninstalling package.
Installing package. Installing package.
package: [ENV] CFLAGS = -I/mytemp/include
package: [ENV] CPPFLAGS = -I/mytemp/include
package: [ENV] CXXFLAGS = -I/mytemp/include
package: [ENV] LDFLAGS = -L/mytemp/lib
package: [ENV] PATH = /mytemp/bin:/usr/bin
package: [ENV] TMP = /sample_buildout/parts/package/tmp package: [ENV] TMP = /sample_buildout/parts/package/tmp
package: Extracting package to /sample_buildout/parts/package__compile__
Installing package-2. Installing package-2.
package-2: [ENV] CFLAGS = -I/mytemp/include
package-2: [ENV] CPPFLAGS = -I/mytemp/include
package-2: [ENV] CXXFLAGS = -I/mytemp/include
package-2: [ENV] LDFLAGS = -L/mytemp/lib
package-2: [ENV] PATH = /mytemp/bin:/usr/bin
package-2: [ENV] TMP = /sample_buildout/parts/package-2/tmp package-2: [ENV] TMP = /sample_buildout/parts/package-2/tmp
package-2: Extracting package to /sample_buildout/parts/package-2__compile__
package-2: Executing post-install package-2: Executing post-install
package magic prefix is /mytemp package magic prefix is /mytemp
<BLANKLINE>
Here it's another sample, we change Makefile before installing so it Here it's another sample, we change Makefile before installing so it
can display "prefix" value in the stdout. can display "prefix" value in the stdout.
...@@ -963,7 +919,6 @@ can display "prefix" value in the stdout. ...@@ -963,7 +919,6 @@ can display "prefix" value in the stdout.
Uninstalling package. Uninstalling package.
Installing package. Installing package.
package: [ENV] TMP = /sample_buildout/parts/package/tmp package: [ENV] TMP = /sample_buildout/parts/package/tmp
package: Extracting package to /sample_buildout/parts/package__compile__
configure configure
building package building package
package: Executing pre-install package: Executing pre-install
...@@ -990,7 +945,6 @@ replaced with the recipe final prefix. ...@@ -990,7 +945,6 @@ replaced with the recipe final prefix.
Uninstalling package. Uninstalling package.
Installing package. Installing package.
package: [ENV] TMP = /sample_buildout/parts/package/tmp package: [ENV] TMP = /sample_buildout/parts/package/tmp
package: Extracting package to /sample_buildout/parts/package__compile__
configure configure
building package building package
package: Executing pre-install package: Executing pre-install
...@@ -1026,13 +980,11 @@ of "package": ...@@ -1026,13 +980,11 @@ of "package":
Uninstalling package. Uninstalling package.
Installing package-2. Installing package-2.
package-2: [ENV] TMP = /sample_buildout/parts/package-2/tmp package-2: [ENV] TMP = /sample_buildout/parts/package-2/tmp
package-2: Extracting package to /sample_buildout/parts/package-2__compile__
configure --prefix=/sample_buildout/parts/package-2 configure --prefix=/sample_buildout/parts/package-2
building package building package
installing package installing package
Installing package. Installing package.
package: [ENV] TMP = /sample_buildout/parts/package/tmp package: [ENV] TMP = /sample_buildout/parts/package/tmp
package: Extracting package to /sample_buildout/parts/package__compile__
configure --prefix=/sample_buildout/parts/package configure --prefix=/sample_buildout/parts/package
building package building package
installing package installing package
...@@ -1063,13 +1015,11 @@ Look, "package" is reinstalled either: ...@@ -1063,13 +1015,11 @@ Look, "package" is reinstalled either:
Uninstalling package-2. Uninstalling package-2.
Installing package-2. Installing package-2.
package-2: [ENV] TMP = /sample_buildout/parts/package-2/tmp package-2: [ENV] TMP = /sample_buildout/parts/package-2/tmp
package-2: Extracting package to /sample_buildout/parts/package-2__compile__
configure configure
building package building package
installing package installing package
Installing package. Installing package.
package: [ENV] TMP = /sample_buildout/parts/package/tmp package: [ENV] TMP = /sample_buildout/parts/package/tmp
package: Extracting package to /sample_buildout/parts/package__compile__
configure --prefix=/sample_buildout/parts/package configure --prefix=/sample_buildout/parts/package
building package building package
installing package installing package
...@@ -1098,7 +1048,6 @@ Use option ``share`` to install a share pacakge. ...@@ -1098,7 +1048,6 @@ Use option ``share`` to install a share pacakge.
package: Checking whether package is installed at share path: /usr/local package: Checking whether package is installed at share path: /usr/local
package: could not find promise "/usr/local/bin/mypackage.exe" package: could not find promise "/usr/local/bin/mypackage.exe"
package: [ENV] TMP = /sample_buildout/parts/package/tmp package: [ENV] TMP = /sample_buildout/parts/package/tmp
package: Extracting package to /sample_buildout/parts/package__compile__
configure --prefix=/usr/local configure --prefix=/usr/local
building package building package
installing package installing package
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment