aboutsummaryrefslogtreecommitdiff
path: root/ruby/package_id_TEST_setup.sh
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2011-10-01 13:14:04 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2011-10-01 17:55:11 +0100
commit269259dd03f9b096aebf8027b4e139f32e18b71d (patch)
treef43d1258e647af2ccfa55d03bf01c6dc946316d5 /ruby/package_id_TEST_setup.sh
parentd1a2b50c7d803c8cbe4af8e06e829d6dbbf01634 (diff)
downloadpaludis-269259dd03f9b096aebf8027b4e139f32e18b71d.tar.gz
paludis-269259dd03f9b096aebf8027b4e139f32e18b71d.tar.xz
(ruby) Expose mask tokens
Diffstat (limited to 'ruby/package_id_TEST_setup.sh')
-rwxr-xr-xruby/package_id_TEST_setup.sh41
1 files changed, 41 insertions, 0 deletions
diff --git a/ruby/package_id_TEST_setup.sh b/ruby/package_id_TEST_setup.sh
index e71cda879..4f8b5d0b7 100755
--- a/ruby/package_id_TEST_setup.sh
+++ b/ruby/package_id_TEST_setup.sh
@@ -15,6 +15,15 @@ profiles = \${location}/profiles/testprofile
builddir = `pwd`
END
+cat <<END > home/.paludis/repositories/exheresrepo.conf
+location = `pwd`/exheresrepo
+format = e
+names_cache = /var/empty
+cache = /var/empty
+profiles = \${location}/profiles/testprofile
+builddir = `pwd`
+END
+
cat <<END > home/.paludis/repositories/installed.conf
location = `pwd`/installed
format = vdb
@@ -85,6 +94,38 @@ END
cd ..
+mkdir -p exheresrepo/{exlibs,metadata,profiles/testprofile,packages/scm/scm/files} || exit 1
+cd exheresrepo || exit 1
+echo "exheresrepo" > profiles/repo_name || exit 1
+cat <<END > metadata/categories.conf || exit 1
+scm
+END
+cat <<END > metadata/layout.conf
+layout = exheres
+eapi_when_unknown = exheres-0
+eapi_when_unspecified = exheres-0
+profile_eapi_when_unspecified = exheres-0
+END
+cat <<END > metadata/profiles_desc.conf
+test testprofile stable
+END
+cat <<END > metadata/repository_mask.conf
+scm/scm[=scm] [[ token = scm ]]
+END
+
+cat <<"END" > packages/scm/scm/scm-scm.exheres-0 || exit 1
+SUMMARY="Test package"
+HOMEPAGE="http://paludis.pioto.org/"
+DOWNLOADS=""
+SLOT="0"
+MYOPTIONS="testflag"
+LICENCES="GPL-2"
+PLATFORMS="test"
+DEPENDENCIES="build: foo/bar"
+END
+
+cd ..
+
mkdir -p installed/cat-one/pkg-{one,two}-1 || exit 1
echo "cat-one" > installed/cat-one/pkg-one-1/CATEGORY