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

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