diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-09-26 12:41:53 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-09-26 12:41:53 -0700 |
commit | e20dcd3e3c6f0bbe8c3d51bca35080d5a987c42f (patch) | |
tree | a8a8ca818bd980402c49ad5c4c939aaeb8f48866 | |
parent | 77b63ed6f9fc2f1c30dfb100ca12aef02f5f0240 (diff) | |
download | portage-e20dcd3e3c6f0bbe8c3d51bca35080d5a987c42f.tar.gz portage-e20dcd3e3c6f0bbe8c3d51bca35080d5a987c42f.tar.bz2 portage-e20dcd3e3c6f0bbe8c3d51bca35080d5a987c42f.zip |
tests/emerge: call ebuild(1)
-rw-r--r-- | pym/portage/tests/emerge/test_simple.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pym/portage/tests/emerge/test_simple.py b/pym/portage/tests/emerge/test_simple.py index 6810d05fb..134d889ba 100644 --- a/pym/portage/tests/emerge/test_simple.py +++ b/pym/portage/tests/emerge/test_simple.py @@ -123,8 +123,13 @@ src_install() { settings = playground.settings eprefix = settings["EPREFIX"] eroot = settings["EROOT"] + trees = playground.trees + root = playground.root + portdb = trees[root]["porttree"].dbapi portage_python = portage._python_interpreter + ebuild_cmd = (portage_python, "-Wd", + os.path.join(PORTAGE_BIN_PATH, "ebuild")) egencache_cmd = (portage_python, "-Wd", os.path.join(PORTAGE_BIN_PATH, "egencache")) emerge_cmd = (portage_python, "-Wd", @@ -146,6 +151,9 @@ src_install() { if self._have_python_xml(): egencache_extra_args.append("--update-use-local-desc") + test_ebuild = portdb.findname("dev-libs/A-1") + self.assertFalse(test_ebuild is None) + test_commands = ( env_update_cmd, egencache_cmd + ("--update",) + tuple(egencache_extra_args), @@ -153,6 +161,7 @@ src_install() { emerge_cmd + ("--info",), emerge_cmd + ("--info", "--verbose"), emerge_cmd + ("--pretend", "dev-libs/A"), + ebuild_cmd + (test_ebuild, "manifest", "clean", "package", "merge"), emerge_cmd + ("--pretend", "--tree", "--complete-graph", "dev-libs/A"), emerge_cmd + ("-p", "dev-libs/B"), emerge_cmd + ("-B", "dev-libs/B",), |