mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
cmd/xfs/stress/001 1.6 Renamed to cmd/xfstests/001
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of version 2 of the GNU General Public License as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is distributed in the hope that it would be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
# Further, this software is distributed without any warranty that it is
|
||||
# free of the rightful claim of any third person regarding infringement
|
||||
# or the like. Any license provided herein, whether implied or
|
||||
# otherwise, applies only to this software file. Patent licenses, if
|
||||
# any, provided herein do not apply to combinations of this program with
|
||||
# other software, or any other product whatsoever.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston MA 02111-1307, USA.
|
||||
#
|
||||
# Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
|
||||
# Mountain View, CA 94043, or:
|
||||
#
|
||||
# http://www.sgi.com
|
||||
#
|
||||
# For further information regarding this notice, see:
|
||||
#
|
||||
# http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
|
||||
#
|
||||
#
|
||||
# Rebuild NNN.out files
|
||||
#
|
||||
# $Header: /build2/depot/linux/pcp/dev/qa/RCS/remake,v 2.11 1999/09/20 03:42:19 kenmcd Exp $
|
||||
#
|
||||
|
||||
tmp=/tmp/$$
|
||||
trap "rm -f NO-PREVIOUS-OUTPUT $tmp.*; exit" 0 1 2 3 15
|
||||
|
||||
# generic initialization
|
||||
iam=remake
|
||||
. ./common.rc
|
||||
|
||||
. ./common
|
||||
|
||||
[ -f check.time ] || touch check.time
|
||||
|
||||
for seq in $list
|
||||
do
|
||||
if [ ! -f $seq ]
|
||||
then
|
||||
echo "Remake: cannot find \"$seq\""
|
||||
else
|
||||
echo -n "$seq"
|
||||
lasttime=`sed -n -e "/^$seq /s/.* //p" <check.time`
|
||||
[ "X$lasttime" != X ] && echo -n " ${lasttime}s"
|
||||
rm -f $seq.bak $seq.full.bak
|
||||
if sh $seq >$seq.new 2>&1
|
||||
then
|
||||
if [ -f $seq.out ]
|
||||
then
|
||||
$diff $seq.out $seq.new
|
||||
rm -f $seq.out.bad
|
||||
else
|
||||
touch NO-PREVIOUS-OUTPUT
|
||||
$diff NO-PREVIOUS-OUTPUT $seq.new
|
||||
rm -f NO-PREVIOUS-OUTPUT
|
||||
fi
|
||||
echo ""
|
||||
[ -f $seq.out ] && mv $seq.out $seq.bak
|
||||
if [ -f $seq.full ]
|
||||
then
|
||||
[ -f $seq.full.ok ] && mv $seq.full.ok $seq.full.bak
|
||||
mv $seq.full $seq.full.ok
|
||||
fi
|
||||
mv $seq.new $seq.out
|
||||
else
|
||||
echo " - failed (exit status $?)"
|
||||
sed 's/^/ /' $seq.new
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user