common: kill _supported_os
[xfstests-dev.git] / tests / xfs / 156
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2006 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FSQA Test No. 156
6 #
7 # DMAPI get directory attributes (simple check
8 #
9 seq=`basename $0`
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
12
13 here=`pwd`
14 tmp=/tmp/$$
15 status=1    # failure is the default!
16 trap "exit \$status" 0 1 2 3 15
17
18 # get standard environment, filters and checks
19 . ./common/rc
20 . ./common/filter
21 . ./common/dmapi
22
23 # real QA test starts here
24 _supported_fs xfs
25
26 _require_scratch
27 _scratch_mkfs_xfs >/dev/null 2>&1
28 _dmapi_scratch_mount
29
30 ${DMAPI_QASUITE1_DIR}cmd/get_dirattrs $SCRATCH_MNT > $seqres.full
31 [ $? -ne 0 ] && echo "get_dirattrs failed - see $seqres.full"
32
33 status=0
34 exit