2010-06-15 15:14:18 +00:00
|
|
|
#!/bin/sh -e
|
2010-06-15 13:30:12 +00:00
|
|
|
|
|
|
|
# desc: test failing pre-install
|
|
|
|
|
|
|
|
# pre-install script will fail if should-fail file exists
|
|
|
|
mkdir -p "$ROOT"
|
|
|
|
touch "$ROOT"/should-fail
|
|
|
|
|
|
|
|
! $APK add --root $ROOT --initdb --repository $PWD/repo1 --repository $SYSREPO \
|
|
|
|
-U test-c
|
|
|
|
|
|
|
|
# check that pre-install was executed
|
|
|
|
test -f $ROOT/pre-install
|
|
|
|
|
2017-06-11 10:24:59 +00:00
|
|
|
# check that package was installed
|
|
|
|
$APK info --root $ROOT -e test-c
|
2010-06-15 13:30:12 +00:00
|
|
|
|