blob: 281aac1c093661f29c63ece1b022e90e9fbe1a39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
INITD=distccd
PKGS="$@ binutils uclibc-dev"
apk_add $PKGS
/etc/init.d/$INITD start
sleep 2
pidof $INITD
echo -e '#include <stdio.h>\nint main() {\n\tputs("hello world"); return 0; }' > hello.c
cc -o hello hello.c
./hello
rm hello
DISTCC_HOSTS="127.0.0.1:3632" distcc gcc -o hello hello.c
./hello
readelf -d hello
sleep 3
/etc/init.d/$INITD stop
count=0;\
while pidof $INITD && [ $$count -lt 10 ]; do\
echo -n "." >/dev/tty;\
sleep 1;\
count=$((count + 1));\
done
apk_del $PKGS
|