apk-tools/test/test3.sh
Natanael Copa 92533beae0 test: dont run sh manually but respect #!/bin/sh in each test
That way we can set sh options case by case
2010-06-15 15:53:32 +00:00

12 lines
273 B
Bash
Executable file

#!/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