aboutsummaryrefslogtreecommitdiff
path: root/0.8.0/paludis/qa/defaults_check_TEST_setup.sh
blob: 98d7cb91062013fca90031a186bcb3da156555e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# vim: set ft=sh sw=4 sts=4 et :

mkdir defaults_check_TEST_dir || exit 1
cd defaults_check_TEST_dir || exit 1

mkdir -p repo1/{eclass,distfiles,profiles/profile} || exit 1
cd repo1 || exit 1
echo "test-repo-1" > profiles/repo_name || exit 1
cat <<END > profiles/categories || exit 1
cat-one
cat-two
cat-three
END
cat <<END > profiles/profile/make.defaults
ARCH=test
END
cat <<END > profiles/profiles.desc
test profile/ stable
END
mkdir -p cat-one/pkg-one
cat <<"END" > cat-one/pkg-one/pkg-one-1.ebuild
DESCRIPTION="foo"
SLOT="foo"

src_unpack() {
	unpack "${A}"
	cd "${S}"
	epatch "${FILESDIR}"/${PN}-cookie.patch
}
END
cat <<"END" > cat-one/pkg-one/pkg-one-2.ebuild
DESCRIPTION="foo"
SLOT="foo"

src_unpack() {
	:
}
END

cd ..