Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/sbin/gpt Add some gpt tests
details: https://anonhg.NetBSD.org/src/rev/96c57a0ea63e
branches: trunk
changeset: 342051:96c57a0ea63e
user: christos <christos%NetBSD.org@localhost>
date: Fri Dec 04 01:06:17 2015 +0000
description:
Add some gpt tests
diffstat:
tests/sbin/gpt/Makefile | 12 +
tests/sbin/gpt/gpt.2disk.show.guid | 8 +
tests/sbin/gpt/gpt.2part.show.normal | 8 +
tests/sbin/gpt/gpt.backup | 1851 ++++++++++++++++++++++++++++++++++
tests/sbin/gpt/gpt.empty.show.normal | 7 +
tests/sbin/gpt/t_gpt.sh | 147 ++
6 files changed, 2033 insertions(+), 0 deletions(-)
diffs (truncated from 2057 to 300 lines):
diff -r f1e12428e4d7 -r 96c57a0ea63e tests/sbin/gpt/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/sbin/gpt/Makefile Fri Dec 04 01:06:17 2015 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: Makefile,v 1.1 2015/12/04 01:06:17 christos Exp $
+
+.include <bsd.own.mk>
+
+TESTSDIR= ${TESTSBASE}/sbin/gpt
+
+TESTS_SH= t_gpt
+
+FILESDIR= ${TESTSDIR}
+FILES= gpt.2disk.guid gpt.2part gpt.backup gpt.empty
+
+.include <bsd.test.mk>
diff -r f1e12428e4d7 -r 96c57a0ea63e tests/sbin/gpt/gpt.2disk.show.guid
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/sbin/gpt/gpt.2disk.show.guid Fri Dec 04 01:06:17 2015 +0000
@@ -0,0 +1,8 @@
+ start size index contents
+ 0 1 PMBR
+ 1 1 Pri GPT header
+ 2 32 Pri GPT table
+ 34 1024 1 GPT part - 14a91fdb-6cc2-43a5-8921-af015f62afa2
+ 1058 9150 2 GPT part - a375ee9c-e829-4980-a239-6784f039c7f1
+ 10208 32 Sec GPT table
+ 10240 1 Sec GPT header
diff -r f1e12428e4d7 -r 96c57a0ea63e tests/sbin/gpt/gpt.2part.show.normal
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/sbin/gpt/gpt.2part.show.normal Fri Dec 04 01:06:17 2015 +0000
@@ -0,0 +1,8 @@
+ start size index contents
+ 0 1 PMBR
+ 1 1 Pri GPT header
+ 2 32 Pri GPT table
+ 34 1024 1 GPT part - EFI System
+ 1058 9150 2 GPT part - NetBSD FFSv1/FFSv2
+ 10208 32 Sec GPT table
+ 10240 1 Sec GPT header
diff -r f1e12428e4d7 -r 96c57a0ea63e tests/sbin/gpt/gpt.backup
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/sbin/gpt/gpt.backup Fri Dec 04 01:06:17 2015 +0000
@@ -0,0 +1,1851 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>GPT_HDR</key>
+ <dict>
+ <key>entries</key>
+ <integer>128</integer>
+ <key>guid</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ <key>revision</key>
+ <integer>0x10000</integer>
+ </dict>
+ <key>GPT_TBL</key>
+ <dict>
+ <key>gpt_array</key>
+ <array>
+ <dict>
+ <key>attributes</key>
+ <integer>0x0</integer>
+ <key>end</key>
+ <integer>0x421</integer>
+ <key>guid</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ <key>index</key>
+ <integer>1</integer>
+ <key>start</key>
+ <integer>0x22</integer>
+ <key>type</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ </dict>
+ <dict>
+ <key>attributes</key>
+ <integer>0x0</integer>
+ <key>end</key>
+ <integer>0x27df</integer>
+ <key>guid</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ <key>index</key>
+ <integer>2</integer>
+ <key>start</key>
+ <integer>0x422</integer>
+ <key>type</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ </dict>
+ <dict>
+ <key>attributes</key>
+ <integer>0x0</integer>
+ <key>end</key>
+ <integer>0x0</integer>
+ <key>guid</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ <key>index</key>
+ <integer>3</integer>
+ <key>start</key>
+ <integer>0x0</integer>
+ <key>type</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ </dict>
+ <dict>
+ <key>attributes</key>
+ <integer>0x0</integer>
+ <key>end</key>
+ <integer>0x0</integer>
+ <key>guid</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ <key>index</key>
+ <integer>4</integer>
+ <key>start</key>
+ <integer>0x0</integer>
+ <key>type</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ </dict>
+ <dict>
+ <key>attributes</key>
+ <integer>0x0</integer>
+ <key>end</key>
+ <integer>0x0</integer>
+ <key>guid</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ <key>index</key>
+ <integer>5</integer>
+ <key>start</key>
+ <integer>0x0</integer>
+ <key>type</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ </dict>
+ <dict>
+ <key>attributes</key>
+ <integer>0x0</integer>
+ <key>end</key>
+ <integer>0x0</integer>
+ <key>guid</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ <key>index</key>
+ <integer>6</integer>
+ <key>start</key>
+ <integer>0x0</integer>
+ <key>type</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ </dict>
+ <dict>
+ <key>attributes</key>
+ <integer>0x0</integer>
+ <key>end</key>
+ <integer>0x0</integer>
+ <key>guid</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ <key>index</key>
+ <integer>7</integer>
+ <key>start</key>
+ <integer>0x0</integer>
+ <key>type</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ </dict>
+ <dict>
+ <key>attributes</key>
+ <integer>0x0</integer>
+ <key>end</key>
+ <integer>0x0</integer>
+ <key>guid</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ <key>index</key>
+ <integer>8</integer>
+ <key>start</key>
+ <integer>0x0</integer>
+ <key>type</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ </dict>
+ <dict>
+ <key>attributes</key>
+ <integer>0x0</integer>
+ <key>end</key>
+ <integer>0x0</integer>
+ <key>guid</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ <key>index</key>
+ <integer>9</integer>
+ <key>start</key>
+ <integer>0x0</integer>
+ <key>type</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ </dict>
+ <dict>
+ <key>attributes</key>
+ <integer>0x0</integer>
+ <key>end</key>
+ <integer>0x0</integer>
+ <key>guid</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ <key>index</key>
+ <integer>10</integer>
+ <key>start</key>
+ <integer>0x0</integer>
+ <key>type</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ </dict>
+ <dict>
+ <key>attributes</key>
+ <integer>0x0</integer>
+ <key>end</key>
+ <integer>0x0</integer>
+ <key>guid</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ <key>index</key>
+ <integer>11</integer>
+ <key>start</key>
+ <integer>0x0</integer>
+ <key>type</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ </dict>
+ <dict>
+ <key>attributes</key>
+ <integer>0x0</integer>
+ <key>end</key>
+ <integer>0x0</integer>
+ <key>guid</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ <key>index</key>
+ <integer>12</integer>
+ <key>start</key>
+ <integer>0x0</integer>
+ <key>type</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ </dict>
+ <dict>
+ <key>attributes</key>
+ <integer>0x0</integer>
+ <key>end</key>
+ <integer>0x0</integer>
+ <key>guid</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ <key>index</key>
+ <integer>13</integer>
+ <key>start</key>
+ <integer>0x0</integer>
+ <key>type</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ </dict>
+ <dict>
+ <key>attributes</key>
+ <integer>0x0</integer>
+ <key>end</key>
+ <integer>0x0</integer>
+ <key>guid</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ <key>index</key>
+ <integer>14</integer>
+ <key>start</key>
+ <integer>0x0</integer>
+ <key>type</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ </dict>
+ <dict>
+ <key>attributes</key>
+ <integer>0x0</integer>
+ <key>end</key>
+ <integer>0x0</integer>
+ <key>guid</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ <key>index</key>
+ <integer>15</integer>
+ <key>start</key>
+ <integer>0x0</integer>
+ <key>type</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ </dict>
+ <dict>
+ <key>attributes</key>
+ <integer>0x0</integer>
+ <key>end</key>
+ <integer>0x0</integer>
+ <key>guid</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ <key>index</key>
+ <integer>16</integer>
+ <key>start</key>
+ <integer>0x0</integer>
+ <key>type</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ </dict>
+ <dict>
+ <key>attributes</key>
+ <integer>0x0</integer>
+ <key>end</key>
+ <integer>0x0</integer>
+ <key>guid</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ <key>index</key>
+ <integer>17</integer>
+ <key>start</key>
+ <integer>0x0</integer>
+ <key>type</key>
+ <string>00000000-0000-0000-0000-000000000000</string>
+ </dict>
+ <dict>
Home |
Main Index |
Thread Index |
Old Index