From 3f6ff5341318f68d267ed27a7879368b4e8f1167 Mon Sep 17 00:00:00 2001 From: Pierrick Bouvier Date: Tue, 26 Nov 2024 18:20:09 -0800 Subject: [PATCH] TODO and comment --- tests/functional/test_aarch64_virt.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tests/functional/test_aarch64_virt.py b/tests/functional/test_aarch64_virt.py index bcbecd84dc8fc..367b6b22f514e 100755 --- a/tests/functional/test_aarch64_virt.py +++ b/tests/functional/test_aarch64_virt.py @@ -171,11 +171,17 @@ def test_aarch64_virt_rme(self): self.vm.add_args('-append', 'root=/dev/vda') self.vm.launch() + ####### + # TODO: use self.exec_command_and_wait_for_pattern instead self.wait_for_console_pattern('Welcome to Buildroot') time.sleep(0.1) exec_command(self, 'root') time.sleep(0.1) + ###### + # TODO: catch error when executing || &print error, catch with + # console_pattern + # We now boot the (nested) guest VM exec_command(self, 'qemu-system-aarch64 -M virt,gic-version=3 ' @@ -189,8 +195,15 @@ def test_aarch64_virt_rme(self): '-serial stdio') # Detect Realm activation during boot. self.wait_for_console_pattern('SMC_RMI_REALM_ACTIVATE') - # Wait for boot to complete. + # Wait for (nested) guest boot to complete. self.wait_for_console_pattern('Welcome to Buildroot') + # TODO: + # run cca-workload-attestation report + # SMC_RSI_ATTEST_TOKEN_CONTINUE + # "cca-realm-hash-algo-id": "sha-512" + # "cca-platform-hash-algo-id": "sha-256" + # "cca-realm-public-key-hash-algo-id": "sha-256" + if __name__ == '__main__': QemuSystemTest.main()