summaryrefslogtreecommitdiffstats
path: root/test/test3.sh
blob: 994d54d11af3f7c20803f5bb4d5eb317b420d294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# 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