aboutsummaryrefslogtreecommitdiff
path: root/python/metadata_key_TEST_setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'python/metadata_key_TEST_setup.sh')
-rwxr-xr-xpython/metadata_key_TEST_setup.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/python/metadata_key_TEST_setup.sh b/python/metadata_key_TEST_setup.sh
index 8616e4989..ee12c5f51 100755
--- a/python/metadata_key_TEST_setup.sh
+++ b/python/metadata_key_TEST_setup.sh
@@ -4,6 +4,37 @@
mkdir metadata_key_TEST_dir || exit 1
cd metadata_key_TEST_dir || exit 1
+mkdir -p home/.paludis/repositories
+
+cat <<END > home/.paludis/repositories/testrepo.conf
+location = `pwd`/testrepo
+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
+names_cache = /var/empty
+cache = /var/empty
+builddir = `pwd`
+name = installed
+END
+
+cat <<END > home/.paludis/keywords.conf
+*/* test
+END
+cat <<END > home/.paludis/licenses.conf
+*/* *
+END
+
+cat <<END > home/.paludis/general.conf
+world = /dev/null
+END
+
mkdir -p testrepo/{eclass,distfiles,profiles/testprofile,foo/bar/files} || exit 1
cd testrepo || exit 1
echo "testrepo" > profiles/repo_name || exit 1