[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/26] tests/acceptance: Introduce LinuxUserTest base class
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 08/26] tests/acceptance: Introduce LinuxUserTest base class |
Date: |
Mon, 28 Oct 2019 08:34:23 +0100 |
Similarly to the MachineTest base class, this class contains
methods common to linux-user tests.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
tests/acceptance/avocado_qemu/__init__.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tests/acceptance/avocado_qemu/__init__.py
b/tests/acceptance/avocado_qemu/__init__.py
index d23681818d..2611a5146c 100644
--- a/tests/acceptance/avocado_qemu/__init__.py
+++ b/tests/acceptance/avocado_qemu/__init__.py
@@ -14,6 +14,7 @@ import sys
import uuid
import avocado
+from avocado.utils import process
SRC_ROOT_DIR = os.path.join(os.path.dirname(__file__), '..', '..', '..')
sys.path.append(os.path.join(SRC_ROOT_DIR, 'python'))
@@ -138,3 +139,11 @@ class MachineTest(Test):
def tearDown(self):
for vm in self._vms.values():
vm.shutdown()
+
+
+class LinuxUserTest(Test):
+ def setUp(self):
+ self.base_setUp("%s-linux-user", "qemu-%s")
+
+ def run(self, cmd):
+ return process.run("%s %s" % (self.qemu_bin, cmd))
--
2.21.0
- [PATCH 03/26] tests/acceptance: Fixe wait_for_console_pattern() hangs, (continued)
- [PATCH 03/26] tests/acceptance: Fixe wait_for_console_pattern() hangs, Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 04/26] tests/acceptance: Send <carriage return> on serial lines, Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 05/26] tests/acceptance: Refactor exec_command_and_wait_for_pattern(), Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 06/26] tests/acceptance: Rename avocado_qemu.Test as MachineTest, Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 07/26] tests/acceptance: Make pick_default_qemu_bin() more generic, Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 08/26] tests/acceptance: Introduce LinuxUserTest base class,
Philippe Mathieu-Daudé <=
- [PATCH 09/26] tests/acceptance: Add bFLT loader linux-user test, Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 10/26] tests/acceptance: Add test that boots the HelenOS microkernel on Leon3, Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 11/26] tests/acceptance: Add test that boots Linux up to BusyBox on Leon3, Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 12/26] .travis.yml: Let the avocado job run the Leon3 test, Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 13/26] tests/acceptance: Add test that runs NetBSD 4.0 installer on PRep/40p, Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 14/26] tests/acceptance: Test Open Firmware on the PReP/40p, Philippe Mathieu-Daudé, 2019/10/28