fstests: use _require_symlinks on all necessary tests
[xfstests-dev.git] / tests / generic / 184
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2007 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 184
6 #
7 # check mknod makes working nodes.
8 #
9 seq=`basename $0`
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq - silence is golden"
12
13 here=`pwd`
14 tmp=/tmp/$$
15 status=1        # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
17
18 _cleanup()
19 {
20     cd /
21     rm -f $tmp.*
22 }
23
24 # get standard environment, filters and checks
25 . ./common/rc
26 . ./common/filter
27
28 # real QA test starts here
29 _supported_fs generic
30 _supported_os Linux
31 _require_test
32
33 rm -f $TEST_DIR/null
34 mknod $TEST_DIR/null c 1 3
35 chmod 666 $TEST_DIR/null
36 echo fred > $TEST_DIR/null
37
38 status=$?
39 exit