On 3/5/2025 2:05 AM, Thomas Huth wrote:
On 04/03/2025 16.46, Philippe Mathieu-Daudé wrote:
Hi Brian,

On 1/3/25 18:20, Brian Cain wrote:
From: Brian Cain <bc...@quicinc.com>

A bit opaque...

Signed-off-by: Brian Cain <brian.c...@oss.qualcomm.com>
---
  MAINTAINERS                             |  1 +
  tests/functional/meson.build            |  8 +++++
  tests/functional/test_hexagon_minivm.py | 42 +++++++++++++++++++++++++
  3 files changed, 51 insertions(+)
  create mode 100755 tests/functional/test_hexagon_minivm.py

diff --git a/MAINTAINERS b/MAINTAINERS
index deeb7878c8..48a5e7c005 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -247,6 +247,7 @@ F: gdb-xml/hexagon*.xml
  F: docs/system/target-hexagon.rst
  F: docs/devel/hexagon-sys.rst
  F: docs/devel/hexagon-l2vic.rst
+F: tests/functional/test_hexagon_minivm.py
  T: git https://github.com/quic/qemu.git hex-next
  Hexagon idef-parser
diff --git a/tests/functional/meson.build b/tests/functional/meson.build
index 111d8bab26..78b42e58f9 100644
--- a/tests/functional/meson.build
+++ b/tests/functional/meson.build
@@ -135,6 +135,14 @@ tests_i386_system_quick = [
    'migration',
  ]
+test_timeouts += {
+  'hexagon_minivm': 180,
+}
+
+tests_hexagon_system_quick = [
+  'hexagon_minivm',
+]
+
  tests_i386_system_thorough = [
    'i386_tuxrun',
  ]
diff --git a/tests/functional/test_hexagon_minivm.py b/tests/functional/ test_hexagon_minivm.py
new file mode 100755
index 0000000000..2ba92bcce3
--- /dev/null
+++ b/tests/functional/test_hexagon_minivm.py
@@ -0,0 +1,42 @@
+#!/usr/bin/env python3
+#
+# Copyright(c) 2024-2025 Qualcomm Innovation Center, Inc. All Rights Reserved.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+import os
+from glob import glob
+from qemu_test import QemuSystemTest, Asset
+from qemu_test import wait_for_console_pattern
+
+class MiniVMTest(QemuSystemTest):
+
+    timeout = 180
+    GUEST_ENTRY = 0xc0000000
+
+    REPO = 'https://artifacts.codelinaro.org/artifactory'
+    ASSET_TARBALL = \
+        Asset(f'{REPO}/codelinaro-toolchain-for-hexagon/'
+               '19.1.5/hexagon_minivm_2024_Dec_15.tar.gz',
+ 'd7920b5ff14bed5a10b23ada7d4eb927ede08635281f25067e0d5711feee2c2a')

Tests that download assets should go into the "thorough" category, not into the quick one, so please replace tests_hexagon_system_quick with tests_hexagon_system_thorough in the meson.build file.

(yes, I know, it's a little bit confusing that tests that finish quickly should still go into the thorough category instead ... but we needed a way to distinguish the tests that download assets and the ones that can run without downloads, see also the description in docs/devel/testing/functional.rst)


Thanks -- I'll fix this.



 Thomas


Reply via email to