]> git.pld-linux.org Git - packages/parted.git/blame - 0052-tests-t3310-flags.sh-Add-tests-for-remaining-table-t.patch
- release 6 (by relup.sh)
[packages/parted.git] / 0052-tests-t3310-flags.sh-Add-tests-for-remaining-table-t.patch
CommitLineData
c886eb9d
AM
1From 1bd5c463377b0e54dc3bed840906a8df37bf6f7e Mon Sep 17 00:00:00 2001
2From: Mike Fleetwood <mike.fleetwood@googlemail.com>
3Date: Sat, 1 Oct 2016 16:40:23 +0100
4Subject: [PATCH 52/53] tests: t3310-flags.sh: Add tests for remaining table
5 types
6
7Add test of flags for remaining table types: aix, amiga, pc98, sun and
8loop. Note that support of writing AIX tables is not yet implemented in
9parted and LOOP tables don't support partitions nor flags.
10
11Signed-off-by: Brian C. Lane <bcl@redhat.com>
12---
13 tests/t3310-flags.sh | 16 +++++++++++++++-
14 1 file changed, 15 insertions(+), 1 deletion(-)
15
16diff --git a/tests/t3310-flags.sh b/tests/t3310-flags.sh
17index 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' "$@"
22 }
23
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
26 ptn_num=1
27
28 case $table_type in
29+ aix) # Support for writing AIX disk labels and adding partitions
30+ # is not yet implemented.
31+ continue
32+ ;;
33+ amiga) primary_or_name='PTNNAME'
34+ ;;
35 bsd) primary_or_name=''
36 ;;
37 dvh) primary_or_name='primary'
38@@ -42,6 +48,14 @@ for table_type in bsd dvh gpt mac msdos; do
39 ;;
40 msdos) primary_or_name='primary'
41 ;;
42+ pc98) primary_or_name='PTNNAME'
43+ ;;
44+ sun) primary_or_name=''
45+ ;;
46+ loop) # LOOP table doesn't support creation of a partition nor any
47+ # flags.
48+ continue
49+ ;;
50 esac
51
52 n_sectors=8192
53--
542.7.4
55
This page took 0.086513 seconds and 4 git commands to generate.