[U-Boot] [PATCH 1/3] GPT: create block device for sandbox testing
Simon Glass
sjg at chromium.org
Tue Sep 5 08:55:43 UTC 2017
Hi Alison,
On 3 September 2017 at 08:18, <alison at peloton-tech.com> wrote:
> From: Alison Chaiken <alison at 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 at peloton-tech.com>
> ---
> test/gpt/make-test-disk.sh | 8 ++++++++
> 1 file changed, 8 insertions(+)
> create mode 100755 test/gpt/make-test-disk.sh
>
Can you please move this into the Python script so that it is created
automatically and deleted at the end.
> 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
>
More information about the U-Boot
mailing list