summaryrefslogtreecommitdiffstats
path: root/tests/squid
blob: c34a9b6a0eec78e00bcd78d65f804e45a7a4aaf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
	apk_add $@
	if ! [ test -e /etc/squid ];
		then mkdir -p /etc/squid;
	fi
	echo "visible_hostname test.domain" >> /etc/squid/squid.conf
	/etc/init.d/$@ start
	pidof squid
	/etc/init.d/$@ stop
	i=10; while pidof $@; do		\
		[ $i -eq 0 ] && exit 1;	\
		i=$((i - 1));		\
		sleep 1;			\
	done
	apk_del $@