#!/bin/sh

if [ $# -ne 2 ]  
 then
    echo "$0 fscq-repo top-dir"
    exit 1
fi

echo "=== app-bench $1 $2 ==="
cd $2

echo "=== git clone ==="
time -p git clone $1 fscq

echo "=== compile xv6 ==="
cd fscq/xv6
time -p make

echo "=== compile lfs bench ==="
cd ../bench/LFStest
time -p make

echo "=== run lfs large ==="
./largefile -f 1 -i 1 $2

echo "=== run lfs small ==="
./smallfile 400 1024 $2

echo "=== cleanup ==="

cd $2 && time -p rm -rf fscq/*

#!/bin/sh

if [ $# -ne 2 ]  
 then
    echo "$0 xv6-repo top-dir"
    exit 1
fi

echo "=== app-bench $1 $2 ==="
cd $2

echo "=== git clone ==="
time -p git clone $1 xv6

echo "=== compile xv6 ==="
cd xv6
time -p make

Update for just git clone repo + make. Only ext4 can run this for xv6 repo.
Update for just git clone repo + make.  Only ext4 can run this for xv6 repo.
