summaryrefslogtreecommitdiffstats
path: root/test/test7.sh
blob: e3e31131ceb6852bf13cc5fc09991ba8c8252a9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e

# 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