OSDN Git Service

Acceptance tests: add Linux initrd checking test
authorWainer dos Santos Moschetta <wainersm@redhat.com>
Fri, 9 Nov 2018 18:21:53 +0000 (13:21 -0500)
committerEduardo Habkost <ehabkost@redhat.com>
Thu, 17 Jan 2019 19:52:40 +0000 (17:52 -0200)
commit82d4c923a580751c86dc0852a7cc8e369a78e8ad
treef1e7b26c6eba327d994e1486d43dfc76191e465e
parent54f96b4553e3d7ba1dc822d1e19f0ba0f64bd7d7
Acceptance tests: add Linux initrd checking test

QEMU used to exits with a not accurate error message when
an initrd > 2GiB was passed. That was fixed on patch:

commit f3839fda5771596152b75dd1e1a6d050e6e6e380
Author: Li Zhijian <lizhijian@cn.fujitsu.com>
Date:   Thu Sep 13 18:07:13 2018 +0800

     change get_image_size return type to int64_t

This change adds a regression test for that fix. It starts
QEMU with a 2GiB dummy initrd, and checks that it evaluates the
file size correctly and prints an accurate message.

Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: Caio Carrara <ccarrara@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20181109182153.5390-1-wainersm@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
tests/acceptance/linux_initrd.py [new file with mode: 0644]