#!/bin/sh
cd /dev/shm
rm -rf parrot-clean make-j5 make-j6
svn co -q -r47170 https://svn.parrot.org/parrot/trunk parrot-clean    # Fetch a clean copy

rsync -a parrot-clean/ parrot/
    cd parrot
    perl Configure.pl > Configure.log 2>&1
    make -j 5 > make.log 2>&1 
    ./parrot t/library/lwp.t > lwp.log 2>&1
    strace ./parrot t/library/lwp.t > strace.log 2>&1
    cd ..
mv parrot make-j5  # Move working version out of the way.

rsync -a parrot-clean/ parrot/
    cd parrot
    perl Configure.pl > Configure.log 2>&1
    make -j 6 > make.log 2>&1 
    ./parrot t/library/lwp.t > lwp.log 2>&1
    strace ./parrot t/library/lwp.t > strace.log 2>&1
    cd ..
mv parrot make-j6 # Move failed version out of the way
