fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 581
index 546362b633af60f27e1f45153fb149790122182b..cabc7e1c69ab3753b09cf317675077d192ef4afa 100755 (executable)
@@ -8,17 +8,13 @@
 # and v2 encryption policies.
 #
 
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto quick encrypt
 echo
 
-here=`pwd`
-tmp=/tmp/$$
-status=1       # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
 orig_maxkeys=
 
+# Override the default cleanup function.
 _cleanup()
 {
        cd /
@@ -28,14 +24,10 @@ _cleanup()
        fi
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/encrypt
 
-# remove previous $seqres.full before test
-rm -f $seqres.full
-
 # real QA test starts here
 _supported_fs generic
 _require_user