summary refs log tree commit diff stats
path: root/tests/functional/microblazeel/test_s3adsp1800.py
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2025-08-19 13:23:50 +0200
committerThomas Huth <thuth@redhat.com>2025-08-27 09:46:55 +0200
commit67adbc8b6f40f6a2370d4a0ba479d3778d147cbc (patch)
tree8f21c7952b83b85eb6f8f2a326b47ae988292d9d /tests/functional/microblazeel/test_s3adsp1800.py
parent0ae63d0e19b22d45cd354b428b4b530223f53d7b (diff)
downloadfocaccia-qemu-67adbc8b6f40f6a2370d4a0ba479d3778d147cbc.tar.gz
focaccia-qemu-67adbc8b6f40f6a2370d4a0ba479d3778d147cbc.zip
tests/functional: Move microblaze tests into architecture specific folder
The tests/functional folder has become quite crowded, thus move the
microblaze tests into a target-specific subfolder.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250819112403.432587-14-thuth@redhat.com>
Diffstat (limited to 'tests/functional/microblazeel/test_s3adsp1800.py')
-rwxr-xr-xtests/functional/microblazeel/test_s3adsp1800.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/functional/microblazeel/test_s3adsp1800.py b/tests/functional/microblazeel/test_s3adsp1800.py
new file mode 100755
index 0000000000..75ce8856ed
--- /dev/null
+++ b/tests/functional/microblazeel/test_s3adsp1800.py
@@ -0,0 +1,26 @@
+#!/usr/bin/env python3
+#
+# Functional test that boots a microblaze Linux kernel and checks the console
+#
+# Copyright (c) 2018, 2021 Red Hat, Inc.
+#
+# This work is licensed under the terms of the GNU GPL, version 2 or
+# later. See the COPYING file in the top-level directory.
+
+from microblaze.test_s3adsp1800 import MicroblazeMachine
+
+
+class MicroblazeLittleEndianMachine(MicroblazeMachine):
+
+    ASSET_IMAGE_LE = MicroblazeMachine.ASSET_IMAGE_LE
+    ASSET_IMAGE_BE = MicroblazeMachine.ASSET_IMAGE_BE
+
+    def test_microblaze_s3adsp1800_legacy_le(self):
+        self.do_xmaton_le_test()
+
+    def test_microblaze_s3adsp1800_legacy_be(self):
+        self.do_ballerina_be_test(force_endianness=True)
+
+
+if __name__ == '__main__':
+    MicroblazeMachine.main()