mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Added randomize test option to ./check
Merge of master-melb:xfs-cmds:24664a by kenmcd. Added comment about the randomize '-r' option.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
##/bin/sh
|
||||
#
|
||||
# Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
|
||||
# Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved.
|
||||
#
|
||||
# common procedures for QA scripts
|
||||
#
|
||||
@@ -34,6 +34,7 @@ showme=false
|
||||
sortme=false
|
||||
expunge=true
|
||||
have_test_arg=false
|
||||
randomize=false
|
||||
rm -f $tmp.list $tmp.tmp $tmp.sed
|
||||
|
||||
export FSTYP=xfs
|
||||
@@ -117,7 +118,7 @@ check options
|
||||
-q quick [deprecated]
|
||||
-T output timestamps
|
||||
-x group[,group...] exclude tests from these groups
|
||||
-r randomize order
|
||||
-r randomize test order
|
||||
'
|
||||
exit 0
|
||||
;;
|
||||
@@ -155,6 +156,10 @@ check options
|
||||
showme=true
|
||||
xpand=false
|
||||
;;
|
||||
-r) # randomize test order
|
||||
randomize=true
|
||||
xpand=false
|
||||
;;
|
||||
|
||||
-T) # turn on timestamp output
|
||||
timestamp=true
|
||||
@@ -248,6 +253,11 @@ fi
|
||||
list=`sort $tmp.list`
|
||||
rm -f $tmp.list $tmp.tmp $tmp.sed
|
||||
|
||||
if $randomize
|
||||
then
|
||||
list=`echo $list | awk -f randomize.awk`
|
||||
fi
|
||||
|
||||
case "$FSTYP" in
|
||||
xfs)
|
||||
[ "$XFS_LOGPRINT_PROG" = "" ] && _fatal "xfs_logprint not found"
|
||||
|
||||
Reference in New Issue
Block a user