3 # check 2^31 volume switching for pmlogger
5 # Copyright (c) 2011 Ken McDonell. All Rights Reserved.
6 # Copyright (c) 2012 Red Hat.
8 # check-group-include: pmlogger
11 echo "QA output created by $seq"
13 # get standard environment, filters and checks
18 status
=0 # success is the default!
19 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
21 # real QA test starts here
23 .
/tmparch
/mkbig1
> $seq.full
2>&1
24 [ $?
-eq 0 ] || _notrun
`cat $seq.full`
26 # expect 2 volumes, and both < 2^31 bytes in size
29 nvol
=`ls tmparch/big1.? | wc -l | sed -e 's/ //g'`
33 echo "Error: expecting 2 volumes, found $nvol"
37 for vol
in tmparch
/big1.?
43 echo "Error: cannot extract size for volume $vol"
45 elif [ "$size" -ge $limit ]
48 echo "Error: size ($size) exceeds limit ($limit)"