summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorOtavio Pontes <otaviobp@gmail.com>2010-08-06 00:31:36 +0000
committerOtavio Pontes <otaviobp@gmail.com>2010-08-06 00:31:36 +0000
commita41885f9bc241fb0e608af1079042718574de620 (patch)
tree8e99f7bb674f5443ba916b00172ff51cdaa3caf8 /pym
parentFixing portage bug. If more than one line in package.license is used for the ... (diff)
downloadportage-multirepo-a41885f9bc241fb0e608af1079042718574de620.tar.gz
portage-multirepo-a41885f9bc241fb0e608af1079042718574de620.tar.bz2
portage-multirepo-a41885f9bc241fb0e608af1079042718574de620.zip
Adding tests for package.license
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/tests/multirepo/ebuilds/portage/cat-packages/test-license/Manifest3
-rw-r--r--pym/portage/tests/multirepo/ebuilds/portage/cat-packages/test-license/test-license-1.0.ebuild20
-rw-r--r--pym/portage/tests/multirepo/ebuilds/portage/cat-packages/test-license/test-license-2.0.ebuild20
-rw-r--r--pym/portage/tests/multirepo/ebuilds/portage/cat-packages/test-license/test-license-3.0.ebuild20
-rw-r--r--pym/portage/tests/multirepo/ebuilds/repo1/cat-packages/test-license/Manifest3
-rw-r--r--pym/portage/tests/multirepo/ebuilds/repo1/cat-packages/test-license/test-license-1.0.ebuild20
-rw-r--r--pym/portage/tests/multirepo/ebuilds/repo1/cat-packages/test-license/test-license-2.0.ebuild20
-rw-r--r--pym/portage/tests/multirepo/ebuilds/repo1/cat-packages/test-license/test-license-3.0.ebuild20
-rw-r--r--pym/portage/tests/multirepo/etc/make.conf1
-rw-r--r--pym/portage/tests/multirepo/etc/portage/package.license2
-rw-r--r--pym/portage/tests/multirepo/etc/portage/package.properties2
-rw-r--r--pym/portage/tests/multirepo/test_packages_files.py9
12 files changed, 140 insertions, 0 deletions
diff --git a/pym/portage/tests/multirepo/ebuilds/portage/cat-packages/test-license/Manifest b/pym/portage/tests/multirepo/ebuilds/portage/cat-packages/test-license/Manifest
new file mode 100644
index 00000000..c26345a7
--- /dev/null
+++ b/pym/portage/tests/multirepo/ebuilds/portage/cat-packages/test-license/Manifest
@@ -0,0 +1,3 @@
+EBUILD test-license-1.0.ebuild 381 RMD160 2261f06d701a3774a2e9844ba8d9d44235479d0e SHA1 8bfb4bf6db7a0408d9db9fd7b07448047e25d3ac SHA256 c463abbaa8f6cd3fe2d447c28a9bb5bd93f23f042fd0381855a9660f62e63d25
+EBUILD test-license-2.0.ebuild 381 RMD160 2261f06d701a3774a2e9844ba8d9d44235479d0e SHA1 8bfb4bf6db7a0408d9db9fd7b07448047e25d3ac SHA256 c463abbaa8f6cd3fe2d447c28a9bb5bd93f23f042fd0381855a9660f62e63d25
+EBUILD test-license-3.0.ebuild 381 RMD160 2261f06d701a3774a2e9844ba8d9d44235479d0e SHA1 8bfb4bf6db7a0408d9db9fd7b07448047e25d3ac SHA256 c463abbaa8f6cd3fe2d447c28a9bb5bd93f23f042fd0381855a9660f62e63d25
diff --git a/pym/portage/tests/multirepo/ebuilds/portage/cat-packages/test-license/test-license-1.0.ebuild b/pym/portage/tests/multirepo/ebuilds/portage/cat-packages/test-license/test-license-1.0.ebuild
new file mode 100644
index 00000000..cdedabd7
--- /dev/null
+++ b/pym/portage/tests/multirepo/ebuilds/portage/cat-packages/test-license/test-license-1.0.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-portage/genlop/genlop-0.30.5.ebuild,v 1.11 2006/11/22 12:15:58 flameeyes Exp $
+
+DESCRIPTION=""
+HOMEPAGE=""
+SRC_URI=""
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+LICENSE="TEST"
+
+src_install() {
+ :
+}
diff --git a/pym/portage/tests/multirepo/ebuilds/portage/cat-packages/test-license/test-license-2.0.ebuild b/pym/portage/tests/multirepo/ebuilds/portage/cat-packages/test-license/test-license-2.0.ebuild
new file mode 100644
index 00000000..cdedabd7
--- /dev/null
+++ b/pym/portage/tests/multirepo/ebuilds/portage/cat-packages/test-license/test-license-2.0.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-portage/genlop/genlop-0.30.5.ebuild,v 1.11 2006/11/22 12:15:58 flameeyes Exp $
+
+DESCRIPTION=""
+HOMEPAGE=""
+SRC_URI=""
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+LICENSE="TEST"
+
+src_install() {
+ :
+}
diff --git a/pym/portage/tests/multirepo/ebuilds/portage/cat-packages/test-license/test-license-3.0.ebuild b/pym/portage/tests/multirepo/ebuilds/portage/cat-packages/test-license/test-license-3.0.ebuild
new file mode 100644
index 00000000..cdedabd7
--- /dev/null
+++ b/pym/portage/tests/multirepo/ebuilds/portage/cat-packages/test-license/test-license-3.0.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-portage/genlop/genlop-0.30.5.ebuild,v 1.11 2006/11/22 12:15:58 flameeyes Exp $
+
+DESCRIPTION=""
+HOMEPAGE=""
+SRC_URI=""
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+LICENSE="TEST"
+
+src_install() {
+ :
+}
diff --git a/pym/portage/tests/multirepo/ebuilds/repo1/cat-packages/test-license/Manifest b/pym/portage/tests/multirepo/ebuilds/repo1/cat-packages/test-license/Manifest
new file mode 100644
index 00000000..c26345a7
--- /dev/null
+++ b/pym/portage/tests/multirepo/ebuilds/repo1/cat-packages/test-license/Manifest
@@ -0,0 +1,3 @@
+EBUILD test-license-1.0.ebuild 381 RMD160 2261f06d701a3774a2e9844ba8d9d44235479d0e SHA1 8bfb4bf6db7a0408d9db9fd7b07448047e25d3ac SHA256 c463abbaa8f6cd3fe2d447c28a9bb5bd93f23f042fd0381855a9660f62e63d25
+EBUILD test-license-2.0.ebuild 381 RMD160 2261f06d701a3774a2e9844ba8d9d44235479d0e SHA1 8bfb4bf6db7a0408d9db9fd7b07448047e25d3ac SHA256 c463abbaa8f6cd3fe2d447c28a9bb5bd93f23f042fd0381855a9660f62e63d25
+EBUILD test-license-3.0.ebuild 381 RMD160 2261f06d701a3774a2e9844ba8d9d44235479d0e SHA1 8bfb4bf6db7a0408d9db9fd7b07448047e25d3ac SHA256 c463abbaa8f6cd3fe2d447c28a9bb5bd93f23f042fd0381855a9660f62e63d25
diff --git a/pym/portage/tests/multirepo/ebuilds/repo1/cat-packages/test-license/test-license-1.0.ebuild b/pym/portage/tests/multirepo/ebuilds/repo1/cat-packages/test-license/test-license-1.0.ebuild
new file mode 100644
index 00000000..cdedabd7
--- /dev/null
+++ b/pym/portage/tests/multirepo/ebuilds/repo1/cat-packages/test-license/test-license-1.0.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-portage/genlop/genlop-0.30.5.ebuild,v 1.11 2006/11/22 12:15:58 flameeyes Exp $
+
+DESCRIPTION=""
+HOMEPAGE=""
+SRC_URI=""
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+LICENSE="TEST"
+
+src_install() {
+ :
+}
diff --git a/pym/portage/tests/multirepo/ebuilds/repo1/cat-packages/test-license/test-license-2.0.ebuild b/pym/portage/tests/multirepo/ebuilds/repo1/cat-packages/test-license/test-license-2.0.ebuild
new file mode 100644
index 00000000..cdedabd7
--- /dev/null
+++ b/pym/portage/tests/multirepo/ebuilds/repo1/cat-packages/test-license/test-license-2.0.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-portage/genlop/genlop-0.30.5.ebuild,v 1.11 2006/11/22 12:15:58 flameeyes Exp $
+
+DESCRIPTION=""
+HOMEPAGE=""
+SRC_URI=""
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+LICENSE="TEST"
+
+src_install() {
+ :
+}
diff --git a/pym/portage/tests/multirepo/ebuilds/repo1/cat-packages/test-license/test-license-3.0.ebuild b/pym/portage/tests/multirepo/ebuilds/repo1/cat-packages/test-license/test-license-3.0.ebuild
new file mode 100644
index 00000000..cdedabd7
--- /dev/null
+++ b/pym/portage/tests/multirepo/ebuilds/repo1/cat-packages/test-license/test-license-3.0.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-portage/genlop/genlop-0.30.5.ebuild,v 1.11 2006/11/22 12:15:58 flameeyes Exp $
+
+DESCRIPTION=""
+HOMEPAGE=""
+SRC_URI=""
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+LICENSE="TEST"
+
+src_install() {
+ :
+}
diff --git a/pym/portage/tests/multirepo/etc/make.conf b/pym/portage/tests/multirepo/etc/make.conf
index 20dfc789..75678bdc 100644
--- a/pym/portage/tests/multirepo/etc/make.conf
+++ b/pym/portage/tests/multirepo/etc/make.conf
@@ -14,3 +14,4 @@ PORTDIR=""
PORTDIR_OVERLAY=""
SYNC=""
ACCEPT_PROPERTIES="-interactive"
+ACCEPT_LICENSE="-TEST"
diff --git a/pym/portage/tests/multirepo/etc/portage/package.license b/pym/portage/tests/multirepo/etc/portage/package.license
new file mode 100644
index 00000000..f6e8aff8
--- /dev/null
+++ b/pym/portage/tests/multirepo/etc/portage/package.license
@@ -0,0 +1,2 @@
+=cat-packages/test-license-2.0::repo1 TEST
+=cat-packages/test-license-3.0 TEST
diff --git a/pym/portage/tests/multirepo/etc/portage/package.properties b/pym/portage/tests/multirepo/etc/portage/package.properties
new file mode 100644
index 00000000..02bbd0c8
--- /dev/null
+++ b/pym/portage/tests/multirepo/etc/portage/package.properties
@@ -0,0 +1,2 @@
+=cat-packages/test-properties-2.0::repo1 interactive
+=cat-packages/test-properties-3.0 interactive
diff --git a/pym/portage/tests/multirepo/test_packages_files.py b/pym/portage/tests/multirepo/test_packages_files.py
index cac982de..7d15c5ce 100644
--- a/pym/portage/tests/multirepo/test_packages_files.py
+++ b/pym/portage/tests/multirepo/test_packages_files.py
@@ -51,6 +51,15 @@ class testPackageFiles(TestCase):
"=test-properties-1.0::repo1": '(.|\n)*(masked by:.*interactive properties)',
"=test-properties-2.0::repo1": '(.|\n)*\[ebuild.*cat-packages/test-properties',
"=test-properties-3.0::repo1": '(.|\n)*\[ebuild.*cat-packages/test-properties',
+
+ #package.license
+ "=test-license-1.0::gentoo": '(.|\n)*(masked by: TEST license)',
+ "=test-license-2.0::gentoo": '(.|\n)*(masked by: TEST license)',
+ "=test-license-3.0::gentoo": '(.|\n)*\[ebuild.*cat-packages/test-license',
+ "=test-license-1.0::repo1": '(.|\n)*(masked by:.*TEST license)',
+ "=test-license-2.0::repo1": '(.|\n)*\[ebuild.*cat-packages/test-license',
+ "=test-license-3.0::repo1": '(.|\n)*\[ebuild.*cat-packages/test-license',
+
}
tests_exclude = {