fstests: add _require_mknod
[xfstests-dev.git] / tests / generic / 184
index d551c117a7cdec61d44735751f9697b6f07a3879..94f4d0e1c14408a61f932b8f630ff17192d79149 100755 (executable)
@@ -1,31 +1,13 @@
 #! /bin/bash
-# FS QA Test No. 184
-#
-# check mknod makes working nodes.
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
 # Copyright (c) 2007 Silicon Graphics, Inc.  All Rights Reserved.
 #
-# This program is free software; you can redistribute it and/or
-# modify it under the terms 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.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write the Free Software Foundation,
-# Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+# FS QA Test No. 184
 #
-#-----------------------------------------------------------------------
+# check mknod makes working nodes.
 #
-
 seq=`basename $0`
 seqres=$RESULT_DIR/$seq
-seqres=$RESULT_DIR/$seq
-seqres=$RESULT_DIR/$seq
 echo "QA output created by $seq - silence is golden"
 
 here=`pwd`
@@ -37,7 +19,6 @@ _cleanup()
 {
     cd /
     rm -f $tmp.*
-    _cleanup_testdir
 }
 
 # get standard environment, filters and checks
@@ -46,14 +27,14 @@ _cleanup()
 
 # real QA test starts here
 _supported_fs generic
-_supported_os IRIX Linux
-
-_setup_testdir
-
-rm -f $testdir/null
-mknod $testdir/null c 1 3
-chmod 666 $testdir/null
-echo fred > $testdir/null
+_supported_os Linux
+_require_test
+_require_mknod
+
+rm -f $TEST_DIR/null
+mknod $TEST_DIR/null c 1 3
+chmod 666 $TEST_DIR/null
+echo fred > $TEST_DIR/null
 
 status=$?
 exit