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

mkdir resolver_TEST_continue_on_failure_dir || exit 1
cd resolver_TEST_continue_on_failure_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

# continue-on-failure
echo 'continue-on-failure' >> metadata/categories.conf

mkdir -p 'packages/continue-on-failure/target'
cat <<END > packages/continue-on-failure/target/target-1.exheres-0
SUMMARY="target"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES="
    continue-on-failure/unchanged-dep
    continue-on-failure/direct-dep
    "
END

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

mkdir -p 'packages/continue-on-failure/unchanged-dep'
cat <<END > packages/continue-on-failure/unchanged-dep/unchanged-dep-1.exheres-0
SUMMARY="dep"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES="
    continue-on-failure/indirect-dep
    "
END

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

# continue-on-failure-purge
echo 'continue-on-failure-purge' >> metadata/categories.conf

mkdir -p 'packages/continue-on-failure-purge/target'
cat <<END > packages/continue-on-failure-purge/target/target-1.exheres-0
SUMMARY="dep"
PLATFORMS="test"
SLOT="0"
END

cd ..