Skip to content

Commit

Permalink
TODO and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pbo-linaro committed Nov 27, 2024
1 parent aa86bdb commit 3f6ff53
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tests/functional/test_aarch64_virt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '
Expand All @@ -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()

0 comments on commit 3f6ff53

Please sign in to comment.