fstests: move test group info to test files
[xfstests-dev.git] / tests / overlay / 044
index 26fe91d4868cd5a1f095e9ff75fa8ed81a65a0cd..3f54b7eae738b92f3a48d13827a9700cb79cdc96 100755 (executable)
 # - modify A to trigger copy up
 # - file A is no longer a hardlink of file B
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto quick copyup hardlink nonsamefs
 
-tmp=/tmp/$$
-status=1       # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
-
-_cleanup()
-{
-       rm -f $tmp.*
-}
-
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 # real QA test starts here
@@ -38,8 +27,6 @@ _require_test
 _require_scratch_feature index
 _require_test_program "t_dir_type"
 
-rm -f $seqres.full
-
 # Record inode numbers in format <ino> <nlink>
 function record_ino_nlink()
 {