aboutsummaryrefslogtreecommitdiff
path: root/src/clients/paludis/install_TEST
blob: 45b10ac7a5c71a0f2d7ec2be6235ddf8bbd712d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

PALUDIS_HOME=./install_TEST_dir/config/ ./paludis --environment :install-test \
    --has-version test-category/target && exit 1
PALUDIS_INSTALL_TEST_DIE_PLEASE=yes \
    PALUDIS_HOME=./install_TEST_dir/config/ ./paludis --environment :install-test \
    --install target --resume-command-template `pwd`/install_TEST_dir/resume && exit 2
( echo -n './paludis ' ; cut -d ' ' -f2- < install_TEST_dir/resume ) > install_TEST_dir/fixedresume
PALUDIS_HOME=./install_TEST_dir/config/ bash `pwd`/install_TEST_dir/fixedresume || exit 3
./install_TEST_dir/root/usr/bin/testbin | grep success >/dev/null || exit 4
grep target install_TEST_dir/root/var/db/pkg/world >/dev/null || exit 5
PALUDIS_HOME=./install_TEST_dir/config/ ./paludis --environment :install-test \
    --has-version test-category/target || exit 6
PALUDIS_HOME=./install_TEST_dir/config/ ./paludis --environment :install-test \
    --uninstall target || exit 7
[[ -f ./install_TEST_dir/root/usr/bin/testbin ]] && exit 8
PALUDIS_HOME=./install_TEST_dir/config/ ./paludis --environment :install-test \
    --has-version test-category/target && exit 9
grep target install_TEST_dir/root/var/db/pkg/world >/dev/null && exit 10
true