[parted-devel] [PATCH 8/8] tests: t3310-flags.sh: Add tests for remaining table types

Mike Fleetwood mike.fleetwood at googlemail.com
Tue Aug 16 19:42:42 UTC 2016


Add test of flags for remaining table types: aix, amiga, pc98, sun and
loop.  Note that support of writing AIX tables is not yet implemented in
parted and LOOP tables support no flags.
---
 tests/t3310-flags.sh |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/tests/t3310-flags.sh b/tests/t3310-flags.sh
index 62be528..61c454f 100644
--- a/tests/t3310-flags.sh
+++ b/tests/t3310-flags.sh
@@ -25,12 +25,19 @@ extract_flags()
   perl -nle '/^[^:]*:4096s:6143s:2048s::[^:]*:(.+);$/ and print $1' "$@"
 }
 
-for table_type in bsd dvh gpt mac msdos; do
+for table_type in aix amiga bsd dvh gpt mac msdos pc98 sun loop; do
   ptn_num=1
 
   # Get the full list of flags to be tested from each table types'
   # libparted/labels/*.c *_partition_is_flag_available() function.
   case $table_type in
+    aix)   # Support for writing AIX disk labels and adding partitions
+           # is not yet implemented.
+           continue
+           ;;
+    amiga) primary_or_name='PTNNAME'
+           flags='boot hidden raid lvm'
+           ;;
     bsd)   primary_or_name=''
            flags='boot raid lvm'
            ;;
@@ -59,6 +66,15 @@ for table_type in bsd dvh gpt mac msdos; do
     msdos) primary_or_name='primary'
            flags='hidden boot raid lvm lba palo prep irst esp diag'
            ;;
+    pc98)  primary_or_name='PTNNAME'
+           flags='hidden boot'
+           ;;
+    sun)   primary_or_name=''
+           flags='boot root lvm raid'
+           ;;
+    loop)  # LOOP table supports no flags.
+           continue
+           ;;
   esac
 
   n_sectors=8192
-- 
1.7.1




More information about the parted-devel mailing list