aboutsummaryrefslogtreecommitdiffstats
path: root/test/test7.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/test7.sh')
-rwxr-xr-xtest/test7.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/test7.sh b/test/test7.sh
new file mode 100755
index 0000000000..a742fbcab0
--- /dev/null
+++ b/test/test7.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# desc: test triggers in busybox package
+
+# we had a bug that caused apk fix --reinstall to segfault every second time
+
+$APK add --root $ROOT --initdb -U --repository $PWD/repo1 \
+ --repository $SYSREPO busybox
+
+for i in 0 1 2 3; do
+ # delete wget symlink
+ rm -f "$ROOT"/usr/bin/wget
+
+ # re-install so we run the trigger again
+ $APK fix --root $ROOT --repository $SYSREPO --reinstall busybox
+
+ # verify wget symlink is there
+ test -L "$ROOT"/usr/bin/wget
+done
+
+