Hi Xenia > -----Original Message----- > From: Xen-devel <xen-devel-boun...@lists.xenproject.org> On Behalf Of > Xenia Ragiadakou > Sent: Wednesday, July 27, 2022 3:07 AM > To: xen-devel@lists.xenproject.org > Cc: Doug Goldstein <car...@cardoe.com>; Stefano Stabellini > <sstabell...@kernel.org> > Subject: [PATCH v2 2/2] automation: arm64: Create a test job for testing > static allocation on qemu > > Enable CONFIG_STATIC_MEMORY in the existing arm64 build. > > Create a new test job, called qemu-smoke-arm64-gcc-staticmem. > > Adjust qemu-smoke-arm64.sh script to accomodate the static memory test > as a new test variant. The test variant is determined based on the first > argument passed to the script. For testing static memory, the argument is > 'static-mem'. > > The test configures DOM1 with a static memory region and adds a check in > the init script. > The check consists in comparing the contents of the /proc/device-tree > memory entry with the static memory range with which DOM1 was > configured. > If the memory layout is correct, a message gets printed by DOM1. > > At the end of the qemu run, the script searches for the specific message in > the logs and fails if not found. > > Signed-off-by: Xenia Ragiadakou <burzalod...@gmail.com>
Reviewed-by: Penny Zheng <penny.zh...@arm.com> > --- > > Changes in v2: > - enable CONFIG_STATIC_MEMORY for all arm64 builds > - use the existing qemu-smoke-arm64.sh with an argument passed for > distinguishing between tests, instead of creating a new script > - test does not rely on kernel logs but prints a message itself on success > - remove the part that enables custom configs for arm64 builds > - add comments > - adapt commit message > > automation/gitlab-ci/test.yaml | 18 +++++++++++ > automation/scripts/build | 8 +++++ > automation/scripts/qemu-smoke-arm64.sh | 42 > ++++++++++++++++++++++++-- > 3 files changed, 65 insertions(+), 3 deletions(-) > > --- Cheers, Penny Zheng