automation: arm64: Create a test job for testing static allocation on qemu
authorXenia Ragiadakou <burzalodowa@gmail.com>
Thu, 28 Jul 2022 07:58:56 +0000 (10:58 +0300)
committerStefano Stabellini <stefano.stabellini@amd.com>
Thu, 28 Jul 2022 23:17:46 +0000 (16:17 -0700)
commit108e6f282d2c2b8442ac9e1487e6fd7865cd6ede
tree27b41d754ae4ace895dc0e1fcc1e7be2286f91b6
parent37339ba9ef46cf55e077ca50235279f058b01779
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 <burzalodowa@gmail.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
Reviewed-by: Penny Zheng <penny.zheng@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
automation/gitlab-ci/test.yaml
automation/scripts/build
automation/scripts/qemu-smoke-arm64.sh