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

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