common: kill _supported_os
[xfstests-dev.git] / tests / xfs / 152
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. 152
6 #
7 # Verify DMAPI functions
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 _filter_handles()
19 {
20     $PERL_PROG -ne "s/[0-9|a-f]+\s+\(dm/DMAPI_HANDLE \(dm/g ; print" |
21         $PERL_PROG -ne "s/hash [0-9]+/hash HASH/g; print"
22 }
23
24 # get standard environment, filters and checks
25 . ./common/rc
26 . ./common/filter
27 . ./common/dmapi
28
29 # real QA test starts here
30 _supported_fs xfs
31
32 _require_scratch
33 _scratch_mkfs_xfs >/dev/null 2>&1
34 _dmapi_scratch_mount
35
36 DMAPI_FS_HANDLE="`${DMAPI_QASUITE1_DIR}cmd/path_to_fshandle $SCRATCH_MNT`"
37
38 ${DMAPI_QASUITE1_DIR}cmd/dm_handle $SCRATCH_MNT | _filter_handles
39
40 status=0
41 exit