tests/emerge: test pkg_config and pkg_info
authorZac Medico <zmedico@gentoo.org>
Tue, 25 Oct 2011 06:27:58 +0000 (23:27 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 25 Oct 2011 06:27:58 +0000 (23:27 -0700)
pym/portage/tests/emerge/test_simple.py

index 9b5656eae7fdfae5fe476fc9c545aa26320f8e0f..c2c57a38912dd3d81296ad02b36ce4ef58f954d9 100644 (file)
@@ -48,6 +48,15 @@ src_install() {
        echo "blah blah blah" > ${latin_1_dir}/latin-1-$(printf "\\xa9")-regular-file || die
        ln -s latin-1-$(printf "\\xa9")-regular-file ${latin_1_dir}/latin-1-$(printf "\\xa9")-symlink || die
 }
+
+pkg_config() {
+       einfo "called pkg_config for $CATEGORY/$PF"
+}
+
+pkg_info() {
+       einfo "called pkg_info for $CATEGORY/$PF"
+}
+
 """
 
                ebuilds = {
@@ -194,6 +203,8 @@ src_install() {
                        emerge_cmd + ("--oneshot", "--usepkg", "dev-libs/B",),
                        emerge_cmd + ("--oneshot", "dev-libs/A",),
                        emerge_cmd + ("--noreplace", "dev-libs/A",),
+                       emerge_cmd + ("--config", "dev-libs/A",),
+                       emerge_cmd + ("--info", "dev-libs/A", "dev-libs/B"),
                        emerge_cmd + ("--pretend", "--depclean", "--verbose", "dev-libs/B"),
                        emerge_cmd + ("--pretend", "--depclean",),
                        emerge_cmd + ("--depclean",),