diff options
Diffstat (limited to 'tests/distcc')
-rw-r--r-- | tests/distcc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/distcc b/tests/distcc new file mode 100644 index 0000000..281aac1 --- /dev/null +++ b/tests/distcc @@ -0,0 +1,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 + |