xfstests: kill useless test owner fields
[xfstests-dev.git] / 040
1 #! /bin/bash
2 # FS QA Test No. 040
3 #
4 # srcdiff test
5 #
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
8 #
9 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License as
11 # published by the Free Software Foundation.
12 #
13 # This program is distributed in the hope that it would be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write the Free Software Foundation,
20 # Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21 #
22 #-----------------------------------------------------------------------
23 #
24
25 seq=`basename $0`
26 echo "QA output created by $seq"
27
28 here=`pwd`
29 tmp=/tmp/$$
30 status=1        # failure is the default!
31 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
32
33 # get standard environment, filters and checks
34 . ./common.rc
35 . ./common.filter
36
37 [ -z "$KWORKAREA" ] && \
38         _notrun "Can't run srcdiff without KWORKAREA set"
39 [ -d "$KWORKAREA/fs/xfs" ] || \
40         _notrun "Can't find XFS source under \"$KWORKAREA\""
41
42 [ -z "$WORKAREA" ] && \
43         _notrun "Can't run srcdiff without WORKAREA set"
44 [ -f "$WORKAREA/xfstests/tools/srcdiff" ] || \
45         _notrun "Can't find srcdiff tool under \"$WORKAREA\""
46 [ -d "$WORKAREA/xfsprogs/include" ] || \
47         _notrun "Can't find XFS command headers under \"$WORKAREA\""
48
49 # real QA test starts here
50 cd "$WORKAREA/xfstests"
51 echo Silence is golden.
52 perl tools/srcdiff -q >$seq.full
53 if ! diff $seq.full $seq.good >/dev/null; then
54     echo "FAILED: srcdiff output $seq.full differs to $seq.good"
55     exit 1
56 fi
57
58 # success, all done
59 status=0
60 exit