public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] GPT: create block device for sandbox testing
@ 2017-09-03  0:18 alison at peloton-tech.com
  2017-09-03  0:18 ` [U-Boot] [PATCH 2/3] add pytest for 'gpt guid' command in sandbox alison at peloton-tech.com
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: alison at peloton-tech.com @ 2017-09-03  0:18 UTC (permalink / raw)
  To: u-boot

From: Alison Chaiken <alison@peloton-tech.com>

Provide a shell script that creates a small block device for the
purpose of testing the cmd/gpt.c functions in the u-boot sandbox.
Running the tests removes the device file.

Signed-off-by: Alison Chaiken <alison@peloton-tech.com>
---
 test/gpt/make-test-disk.sh | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100755 test/gpt/make-test-disk.sh

diff --git a/test/gpt/make-test-disk.sh b/test/gpt/make-test-disk.sh
new file mode 100755
index 0000000..022acba
--- /dev/null
+++ b/test/gpt/make-test-disk.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+/usr/bin/truncate -s 265K disk.raw
+echo -e "label: gpt\n,64K,U\n,,L" | /sbin/sgdisk ./disk.raw
+/sbin/sgdisk --new=1:34:161 ./disk.raw
+/sbin/sgdisk --new=2:162:496 ./disk.raw
+/sbin/sgdisk -U 375a56f7-d6c9-4e81-b5f0-09d41ca89efe ./disk.raw
+/sbin/gdisk -l ./disk.raw
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2017-09-15 16:29 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-03  0:18 [U-Boot] [PATCH 1/3] GPT: create block device for sandbox testing alison at peloton-tech.com
2017-09-03  0:18 ` [U-Boot] [PATCH 2/3] add pytest for 'gpt guid' command in sandbox alison at peloton-tech.com
2017-09-03  0:18 ` [U-Boot] [PATCH 3/3] add pytests for 'gpt rename' and 'gpt swap' alison at peloton-tech.com
2017-09-05  8:55   ` Simon Glass
2017-09-10  6:54     ` [U-Boot] [PATCH v2 1/3] " alison at peloton-tech.com
2017-09-10  6:54       ` [U-Boot] [PATCH 1/1] " alison at peloton-tech.com
2017-09-12 12:29         ` Simon Glass
2017-09-15 12:29         ` [U-Boot] [U-Boot, " Tom Rini
2017-09-15 15:40           ` Stephen Warren
2017-09-15 16:16             ` Tom Rini
2017-09-15 16:29               ` Stephen Warren
2017-09-05  8:55 ` [U-Boot] [PATCH 1/3] GPT: create block device for sandbox testing Simon Glass
2017-09-10  6:47   ` [U-Boot] [PATCH 0/2] GPT: create block device for guid testing alison at peloton-tech.com
2017-09-10  6:47     ` [U-Boot] [PATCH 1/2] GPT: create block device for sandbox testing alison at peloton-tech.com
2017-09-12 12:29       ` Simon Glass
2017-09-15 12:23       ` [U-Boot] [U-Boot, " Tom Rini
2017-09-10  6:47     ` [U-Boot] [PATCH 2/2] add pytests for 'gpt guid' command in sandbox alison at peloton-tech.com
2017-09-12 12:29       ` Simon Glass
2017-09-15 12:28       ` [U-Boot] [U-Boot, " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox