stress2: Exclude the files in .git. Simplify test by using timeout(1)
This commit is contained in:
parent
f8dc06303b
commit
7b83aad3ff
@ -55,19 +55,16 @@ mount /dev/md$mdstart.nop $mntpoint
|
|||||||
chmod 777 $mntpoint
|
chmod 777 $mntpoint
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
start=`date '+%s'`
|
(cd /usr; tar --exclude compile --exclude-vcs -cf - src) | \
|
||||||
(cd /usr; tar --exclude compile -cf - src) | (cd $mntpoint; tar xf -)
|
(cd $mntpoint; tar xf -)
|
||||||
|
|
||||||
cd $mntpoint/src
|
cd $mntpoint/src
|
||||||
export MAKEOBJDIRPREFIX=$mntpoint/obj
|
export MAKEOBJDIRPREFIX=$mntpoint/obj
|
||||||
|
|
||||||
p=$((`sysctl -n hw.ncpu`+ 1))
|
p=$((`sysctl -n hw.ncpu`+ 1))
|
||||||
make -i -j $p buildworld DESTDIR=$mntpoint TARGET=amd64 TARGET_ARCH=amd64 \
|
timeout 10m \
|
||||||
> /dev/null &
|
make -i -j $p buildworld DESTDIR=$mntpoint TARGET=amd64 \
|
||||||
e=$((`date '+%s'` - start))
|
TARGET_ARCH=amd64 > /dev/null
|
||||||
sleep $((15 * 60 - e))
|
|
||||||
kill $!
|
|
||||||
wait
|
|
||||||
|
|
||||||
cd /
|
cd /
|
||||||
while mount | grep $mntpoint | grep -q /dev/md; do
|
while mount | grep $mntpoint | grep -q /dev/md; do
|
||||||
|
Loading…
Reference in New Issue
Block a user