aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/resolver_TEST_serialisation_setup.sh
blob: 15568e5f63fb40e91b7a703d3c68321f0fd222ee (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
#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :

mkdir resolver_TEST_serialisation_dir || exit 1
cd resolver_TEST_serialisation_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

# serialisation
echo 'serialisation' >> metadata/categories.conf

mkdir -p 'packages/serialisation/target'
cat <<END > packages/serialisation/target/target-1.exheres-0
SUMMARY="target"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES="
    ( build: serialisation/dep serialisation/error )
    ( suggestion: serialisation/suggestion )
    "
END

mkdir -p 'packages/serialisation/dep'
cat <<END > packages/serialisation/dep/dep-1.exheres-0
SUMMARY="dep"
PLATFORMS="test"
SLOT="0"
END

mkdir -p 'packages/serialisation/suggestion'
cat <<END > packages/serialisation/suggestion/suggestion-1.exheres-0
SUMMARY="suggestion"
PLATFORMS="test"
SLOT="0"
END

mkdir -p 'packages/serialisation/error'
cat <<END > packages/serialisation/error/error-1.exheres-0
SUMMARY="error"
SLOT="0"
END

cd ..