Blame SOURCES/0052-tests-t3310-flags.sh-Add-tests-for-remaining-table-t.patch

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