summaryrefslogtreecommitdiff
path: root/test/test3.sh
blob: 421d576dca52c000752c054f9d3380ad99dbbf7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -e

# desc: test successful pre-install

$APK add --root $ROOT --initdb --repository $PWD/repo1 --repository $SYSREPO \
	-U test-c

# check that package was installed
$APK info --root $ROOT -e test-c

# check if pre-install was executed
test -f $ROOT/pre-install