aboutsummaryrefslogtreecommitdiff
path: root/src/clients/paludis/pretend_TEST
blob: ab8efd9c5ad57721860b3a7b573b1063c29a0232 (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
#!/usr/bin/env bash

PALUDIS_HOME=./pretend_TEST_dir/config/ ./paludis --environment :pretend-test \
    --list-packages || exit 12

PALUDIS_HOME=./pretend_TEST_dir/config/ ./paludis --environment :pretend-test \
    --query test-category/target || exit 13

PALUDIS_HOME=./pretend_TEST_dir/config/ ./paludis --environment :pretend-test \
    --has-version test-category/target && exit 1

export PRETEND_SHOULD_FAIL=yes

PALUDIS_HOME=./pretend_TEST_dir/config/ ./paludis --environment :pretend-test \
    --pretend --install test-category/target && exit 2

PALUDIS_HOME=./pretend_TEST_dir/config/ ./paludis --environment :pretend-test \
    --install test-category/target && exit 3

export PRETEND_SHOULD_FAIL=

PALUDIS_HOME=./pretend_TEST_dir/config/ ./paludis --environment :pretend-test \
    --pretend --install test-category/target || exit 4

PALUDIS_HOME=./pretend_TEST_dir/config/ ./paludis --environment :pretend-test \
    --install test-category/target || exit 5