summaryrefslogtreecommitdiffstats
path: root/tests/test8.tst
blob: dd91ee736a03ef37e83d47daf49b86769dec7f9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

source ${CURDIR}/tests/functions

#
# test init/clean
#
header "test init/clean"
runcmd "$MOCKCMD --offline --clean"
if [ -e $CHROOT ]; then
    echo "clean test FAILED. still found $CHROOT dir."
    exit 1
fi

runcmd "$MOCKCMD --offline --init"
runcmd "$MOCKCMD --offline --install ccache"
if [ ! -e $CHROOT/usr/bin/ccache ]; then
    echo "init/clean test FAILED. ccache not found."
    exit 1
fi