aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/resolver_TEST_simple_setup.sh
blob: 68727c25c77541289501f33494a0fe4a3c8be9b8 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :

mkdir resolver_TEST_simple_dir || exit 1
cd resolver_TEST_simple_dir || exit 1

mkdir -p build
mkdir -p distdir
mkdir -p installed

mkdir -p repo/{profiles/profile,metadata}

cd repo
echo "repo" > profiles/repo_name
:> metadata/categories.conf

# no-deps
echo 'no-deps' >> metadata/categories.conf

mkdir -p 'packages/no-deps/target'
cat <<END > packages/no-deps/target/target-1.exheres-0
SUMMARY="target"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES=""
END

# build-deps
echo 'build-deps' >> metadata/categories.conf

mkdir -p 'packages/build-deps/target'
cat <<END > packages/build-deps/target/target-1.exheres-0
SUMMARY="target"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES="build: build-deps/a-dep build-deps/b-dep build-deps/z-dep"
END

mkdir -p 'packages/build-deps/a-dep'
cat <<END > packages/build-deps/a-dep/a-dep-1.exheres-0
SUMMARY="target"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES=""
END

mkdir -p 'packages/build-deps/b-dep'
cat <<END > packages/build-deps/b-dep/b-dep-1.exheres-0
SUMMARY="target"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES=""
END

mkdir -p 'packages/build-deps/z-dep'
cat <<END > packages/build-deps/z-dep/z-dep-1.exheres-0
SUMMARY="target"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES=""
END

# run-deps
echo 'run-deps' >> metadata/categories.conf

mkdir -p 'packages/run-deps/target'
cat <<END > packages/run-deps/target/target-1.exheres-0
SUMMARY="target"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES="run: run-deps/a-dep run-deps/b-dep run-deps/z-dep"
END

mkdir -p 'packages/run-deps/a-dep'
cat <<END > packages/run-deps/a-dep/a-dep-1.exheres-0
SUMMARY="target"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES=""
END

mkdir -p 'packages/run-deps/b-dep'
cat <<END > packages/run-deps/b-dep/b-dep-1.exheres-0
SUMMARY="target"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES=""
END

mkdir -p 'packages/run-deps/z-dep'
cat <<END > packages/run-deps/z-dep/z-dep-1.exheres-0
SUMMARY="target"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES=""
END

# post-deps
echo 'post-deps' >> metadata/categories.conf

mkdir -p 'packages/post-deps/target'
cat <<END > packages/post-deps/target/target-1.exheres-0
SUMMARY="target"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES="post: post-deps/a-dep post-deps/b-dep post-deps/z-dep"
END

mkdir -p 'packages/post-deps/a-dep'
cat <<END > packages/post-deps/a-dep/a-dep-1.exheres-0
SUMMARY="target"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES=""
END

mkdir -p 'packages/post-deps/b-dep'
cat <<END > packages/post-deps/b-dep/b-dep-1.exheres-0
SUMMARY="target"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES=""
END

mkdir -p 'packages/post-deps/z-dep'
cat <<END > packages/post-deps/z-dep/z-dep-1.exheres-0
SUMMARY="target"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES=""
END

cd ..