1 From 1bd5c463377b0e54dc3bed840906a8df37bf6f7e Mon Sep 17 00:00:00 2001
2 From: Mike Fleetwood <mike.fleetwood@googlemail.com>
3 Date: Sat, 1 Oct 2016 16:40:23 +0100
4 Subject: [PATCH 52/53] tests: t3310-flags.sh: Add tests for remaining table
7 Add test of flags for remaining table types: aix, amiga, pc98, sun and
8 loop. Note that support of writing AIX tables is not yet implemented in
9 parted and LOOP tables don't support partitions nor flags.
11 Signed-off-by: Brian C. Lane <bcl@redhat.com>
13 tests/t3310-flags.sh | 16 +++++++++++++++-
14 1 file changed, 15 insertions(+), 1 deletion(-)
16 diff --git a/tests/t3310-flags.sh b/tests/t3310-flags.sh
17 index e449589..e97c3b9 100644
18 --- a/tests/t3310-flags.sh
19 +++ b/tests/t3310-flags.sh
20 @@ -25,10 +25,16 @@ extract_flags()
21 perl -nle '/^[^:]*:4096s:6143s:2048s::[^:]*:(.+);$/ and print $1' "$@"
24 -for table_type in bsd dvh gpt mac msdos; do
25 +for table_type in aix amiga bsd dvh gpt mac msdos pc98 sun loop; do
29 + aix) # Support for writing AIX disk labels and adding partitions
30 + # is not yet implemented.
33 + amiga) primary_or_name='PTNNAME'
35 bsd) primary_or_name=''
37 dvh) primary_or_name='primary'
38 @@ -42,6 +48,14 @@ for table_type in bsd dvh gpt mac msdos; do
40 msdos) primary_or_name='primary'
42 + pc98) primary_or_name='PTNNAME'
44 + sun) primary_or_name=''
46 + loop) # LOOP table doesn't support creation of a partition nor any