1fa32a634SThomas Huth# Test class and utilities for functional tests 2fa32a634SThomas Huth# 3fa32a634SThomas Huth# Copyright 2024 Red Hat, Inc. 4fa32a634SThomas Huth# 5fa32a634SThomas Huth# This work is licensed under the terms of the GNU GPL, version 2 or 6fa32a634SThomas Huth# later. See the COPYING file in the top-level directory. 7fa32a634SThomas Huth 8fa32a634SThomas Huth 99903217aSDaniel P. Berrangéfrom .asset import Asset 103a7b9054SPhilippe Mathieu-Daudéfrom .config import BUILD_DIR, dso_suffix 11c5be9dd3SDaniel P. Berrangéfrom .cmd import is_readable_executable_file, \ 12fa32a634SThomas Huth interrupt_interactive_console_until_pattern, wait_for_console_pattern, \ 130da341a7SDaniel P. Berrangé exec_command, exec_command_and_wait_for_pattern, get_qemu_img, which 1499465d3fSPhilippe Mathieu-Daudéfrom .testcase import QemuBaseTest, QemuUserTest, QemuSystemTest 158720471eSThomas Huthfrom .linuxkernel import LinuxKernelTest 163ea06d65SDaniel P. Berrangéfrom .decorators import skipIfMissingCommands, skipIfNotMachine, \ 174ae633b0SThomas Huth skipFlakyTest, skipUntrustedTest, skipBigDataTest, skipSlowTest, \ 18*00f119f4SPhilippe Mathieu-Daudé skipIfMissingImports, skipIfOperatingSystem 19c283afbfSDaniel P. Berrangéfrom .archive import archive_extract 20dd66e65fSDaniel P. Berrangéfrom .uncompress import uncompress 21