repo
stringlengths
2
99
file
stringlengths
13
225
code
stringlengths
0
18.3M
file_length
int64
0
18.3M
avg_line_length
float64
0
1.36M
max_line_length
int64
0
4.26M
extension_type
stringclasses
1 value
qemu
qemu-master/scripts/qapi/__init__.py
0
0
0
py
qemu
qemu-master/scripts/qapi/schema.py
# -*- coding: utf-8 -*- # # QAPI schema internal representation # # Copyright (c) 2015-2019 Red Hat Inc. # # Authors: # Markus Armbruster <armbru@redhat.com> # Eric Blake <eblake@redhat.com> # Marc-André Lureau <marcandre.lureau@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2. # See t...
42,332
33.98595
78
py
qemu
qemu-master/scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Use this to convert qtest log info from a generic fuzzer input into a qtest trace that you can feed into a standard qemu-system process. Example usage: QEMU_FUZZ_ARGS="-machine q35,accel=qtest" QEMU_FUZZ_OBJECTS="*" \ ./i386-softmmu/qemu-fuzz-i386 --fuzz-targ...
3,736
34.932692
79
py
qemu
qemu-master/scripts/oss-fuzz/output_reproducer.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Convert plain qtest traces to C or Bash reproducers Use this to help build bug-reports or create in-tree reproducers for bugs. Note: This will not format C code for you. Pipe the output through clang-format -style="{BasedOnStyle: llvm, IndentWidth: 4, ColumnLimit: 90...
5,532
33.36646
80
py
qemu
qemu-master/scripts/oss-fuzz/minimize_qtest_trace.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This takes a crashing qtest trace and tries to remove superflous operations """ import sys import os import subprocess import time import struct QEMU_ARGS = None QEMU_PATH = None TIMEOUT = 5 CRASH_TOKEN = None # Minimization levels M1 = False # try removing IO comm...
11,613
34.845679
80
py
qemu
qemu-master/tests/qemu-iotests/findtests.py
# TestFinder class, define set of tests to run. # # Copyright (c) 2020-2021 Virtuozzo International GmbH # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (...
5,621
34.1375
79
py
qemu
qemu-master/tests/qemu-iotests/testenv.py
# TestEnv class to manage test environment variables. # # Copyright (c) 2020-2021 Virtuozzo International GmbH # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, ...
11,181
34.611465
79
py
qemu
qemu-master/tests/qemu-iotests/testrunner.py
# Class for actually running tests. # # Copyright (c) 2020-2021 Virtuozzo International GmbH # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your opti...
14,877
33.360277
79
py
qemu
qemu-master/tests/qemu-iotests/nbd-fault-injector.py
#!/usr/bin/env python3 # NBD server - fault injection utility # # Configuration file syntax: # [inject-error "disconnect-neg1"] # event=neg1 # io=readwrite # when=before # # Note that Python's ConfigParser squashes together all sections with the same # name, so give each [inject-error] a unique name. # # inject...
8,638
30.878229
106
py
qemu
qemu-master/tests/qemu-iotests/qcow2_format.py
# Library for manipulations with qcow2 image # # Copyright (c) 2020 Virtuozzo International GmbH. # Copyright (C) 2012 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either vers...
14,526
29.974414
79
py
qemu
qemu-master/tests/qemu-iotests/qcow2.py
#!/usr/bin/env python3 # # Manipulations with qcow2 image # # Copyright (C) 2012 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your op...
4,555
24.740113
75
py
qemu
qemu-master/tests/qemu-iotests/qed.py
#!/usr/bin/env python3 # # Tool to manipulate QED image files # # Copyright (C) 2010 IBM, Corp. # # Authors: # Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> # # This work is licensed under the terms of the GNU GPL, version 2 or later. # See the COPYING file in the top-level directory. import sys import struct import ...
7,210
29.555085
103
py
qemu
qemu-master/tests/qemu-iotests/iotests.py
# Common utilities and Python wrappers for qemu-iotests # # Copyright (C) 2012 IBM Corp. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) ...
60,397
34.696217
79
py
qemu
qemu-master/tests/qemu-iotests/linters.py
# Copyright (C) 2020 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in ...
3,368
30.783019
77
py
qemu
qemu-master/tests/qapi-schema/test-qapi.py
#!/usr/bin/env python3 # # QAPI parser test harness # # Copyright (c) 2013 Red Hat Inc. # # Authors: # Markus Armbruster <armbru@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 or later. # See the COPYING file in the top-level directory. # import argparse import difflib import os impo...
7,413
31.80531
77
py
qemu
qemu-master/tests/guest-debug/run-test.py
#!/usr/bin/env python3 # # Run a gdbstub test case # # Copyright (c) 2019 Linaro # # Author: Alex Bennée <alex.bennee@linaro.org> # # This work is licensed under the terms of the GNU GPL, version 2 or later. # See the COPYING file in the top-level directory. # # SPDX-License-Identifier: GPL-2.0-or-later import argpars...
3,367
29.618182
78
py
qemu
qemu-master/tests/guest-debug/test-gdbstub.py
# # This script needs to be run on startup # qemu -kernel ${KERNEL} -s -S # and then: # gdb ${KERNEL}.vmlinux -x ${QEMU_SRC}/tests/guest-debug/test-gdbstub.py import gdb failcount = 0 def report(cond, msg): "Report success/fail of test" if cond: print ("PASS: %s" % (msg)) else: print ("F...
4,609
24.898876
73
py
qemu
qemu-master/tests/migration/guestperf-plot.py
#!/usr/bin/env python3 # # Migration test graph plotting command # # Copyright (c) 2016 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License...
868
31.185185
78
py
qemu
qemu-master/tests/migration/guestperf.py
#!/usr/bin/env python3 # # Migration test direct invokation command # # Copyright (c) 2016 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the Lice...
864
29.892857
78
py
qemu
qemu-master/tests/migration/guestperf-batch.py
#!/usr/bin/env python3 # # Migration test batch comparison invokation # # Copyright (c) 2016 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the Li...
875
31.444444
78
py
qemu
qemu-master/tests/migration/guestperf/scenario.py
# # Migration test scenario parameter description # # Copyright (c) 2016 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your o...
3,759
35.153846
91
py
qemu
qemu-master/tests/migration/guestperf/comparison.py
# # Migration test scenario comparison mapping # # Copyright (c) 2016 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your opti...
5,182
36.28777
78
py
qemu
qemu-master/tests/migration/guestperf/engine.py
# # Migration test main engine # # Copyright (c) 2016 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ve...
18,037
36.191753
99
py
qemu
qemu-master/tests/migration/guestperf/hardware.py
# # Migration test hardware configuration description # # Copyright (c) 2016 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at yo...
2,257
34.84127
78
py
qemu
qemu-master/tests/migration/guestperf/progress.py
# # Migration test migration operation progress # # Copyright (c) 2016 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your opt...
3,862
31.737288
78
py
qemu
qemu-master/tests/migration/guestperf/timings.py
# # Migration test timing records # # Copyright (c) 2016 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later...
1,519
26.142857
78
py
qemu
qemu-master/tests/migration/guestperf/shell.py
# # Migration test command line shell integration # # Copyright (c) 2016 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your o...
11,166
39.314079
114
py
qemu
qemu-master/tests/migration/guestperf/report.py
# # Migration test output result reporting # # Copyright (c) 2016 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) ...
3,307
32.414141
94
py
qemu
qemu-master/tests/migration/guestperf/plot.py
# # Migration test graph plotting # # Copyright (c) 2016 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later...
19,027
29.49359
94
py
qemu
qemu-master/tests/migration/guestperf/__init__.py
0
0
0
py
qemu
qemu-master/tests/tcg/i386/test-avx.py
#! /usr/bin/env python3 # Generate test-avx.h from x86.csv import csv import sys from fnmatch import fnmatch archs = [ "SSE", "SSE2", "SSE3", "SSSE3", "SSE4_1", "SSE4_2", "AES", "AVX", "AVX2", "AES+AVX", "VAES+AVX", "F16C", "FMA", ] ignore = set(["FISTTP", "LDMXCSR", "VLDMXCSR", "STMXCSR", "VSTMXCSR...
10,596
27.183511
80
py
qemu
qemu-master/tests/tcg/i386/test-mmx.py
#! /usr/bin/env python3 # Generate test-avx.h from x86.csv import csv import sys from fnmatch import fnmatch ignore = set(["EMMS", "FEMMS", "FISTTP", "LDMXCSR", "VLDMXCSR", "STMXCSR", "VSTMXCSR"]) imask = { 'PALIGNR': 0x3f, 'PEXTRB': 0x0f, 'PEXTRW': 0x07, 'PEXTRD': 0x03, 'PEXTRQ': 0x01, ...
6,197
24.297959
80
py
qemu
qemu-master/tests/tcg/multiarch/gdbstub/memory.py
from __future__ import print_function # # Test some of the softmmu debug features with the multiarch memory # test. It is a port of the original vmlinux focused test case but # using the "memory" test instead. # # This is launched via tests/guest-debug/run-test.py # import gdb import sys failcount = 0 def report(co...
3,204
23.465649
75
py
qemu
qemu-master/tests/tcg/multiarch/gdbstub/test-qxfer-auxv-read.py
from __future__ import print_function # # Test auxiliary vector is loaded via gdbstub # # This is launched via tests/guest-debug/run-test.py # import gdb import sys failcount = 0 def report(cond, msg): "Report success/fail of test" if cond: print ("PASS: %s" % (msg)) else: print ("FAIL: %...
1,319
21.758621
63
py
qemu
qemu-master/tests/tcg/multiarch/gdbstub/sha1.py
from __future__ import print_function # # A very simple smoke test for debugging the SHA1 userspace test on # each target. # # This is launched via tests/guest-debug/run-test.py # import gdb import sys initial_vlen = 0 failcount = 0 def report(cond, msg): "Report success/fail of test" if cond: print(...
2,256
24.359551
75
py
qemu
qemu-master/tests/tcg/multiarch/gdbstub/test-thread-breakpoint.py
from __future__ import print_function # # Test auxiliary vector is loaded via gdbstub # # This is launched via tests/guest-debug/run-test.py # import gdb import sys failcount = 0 def report(cond, msg): "Report success/fail of test" if cond: print ("PASS: %s" % (msg)) else: print ("FAIL: %...
1,351
21.163934
71
py
qemu
qemu-master/tests/tcg/aarch64/gdbstub/test-sve-ioctl.py
from __future__ import print_function # # Test the SVE ZReg reports the right amount of data. It uses the # sve-ioctl test and examines the register data each time the # __sve_ld_done breakpoint is hit. # # This is launched via tests/guest-debug/run-test.py # import gdb import sys initial_vlen = 0 failcount = 0 def ...
2,653
27.537634
69
py
qemu
qemu-master/tests/tcg/aarch64/gdbstub/test-sve.py
from __future__ import print_function # # Test the SVE registers are visable and changeable via gdbstub # # This is launched via tests/guest-debug/run-test.py # import gdb import sys MAGIC = 0xDEADBEEF failcount = 0 def report(cond, msg): "Report success/fail of test" if cond: print ("PASS: %s" % (m...
2,169
25.790123
68
py
qemu
qemu-master/tests/tcg/s390x/gdbstub/test-signals-s390x.py
from __future__ import print_function # # Test that signals and debugging mix well together on s390x. # # This is launched via tests/guest-debug/run-test.py # import gdb import sys failcount = 0 def report(cond, msg): """Report success/fail of test""" if cond: print("PASS: %s" % (msg)) else: ...
1,822
22.675325
66
py
qemu
qemu-master/tests/docker/docker.py
#!/usr/bin/env python3 # # Docker controlling module # # Copyright (c) 2016 Red Hat Inc. # # Authors: # Fam Zheng <famz@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 # or (at your option) any later version. See the COPYING file in # the top-level directory. import os import sys impor...
22,876
32.445906
87
py
qemu
qemu-master/tests/vm/basevm.py
# # VM testing base class # # Copyright 2017-2019 Red Hat Inc. # # Authors: # Fam Zheng <famz@redhat.com> # Gerd Hoffmann <kraxel@redhat.com> # # This code is licensed under the GPL version 2 or later. See # the COPYING file in the top-level directory. # import os import re import sys import socket import logging i...
27,602
40.137109
87
py
qemu
qemu-master/tests/vm/ubuntuvm.py
#!/usr/bin/env python3 # # Ubuntu VM testing library # # Copyright 2017 Red Hat Inc. # Copyright 2020 Linaro # # Authors: # Robert Foley <robert.foley@linaro.org> # Originally based on ubuntu.i386 Fam Zheng <famz@redhat.com> # # This code is licensed under the GPL version 2 or later. See # the COPYING file in the to...
2,271
36.245902
80
py
qemu
qemu-master/tests/vm/aarch64vm.py
#!/usr/bin/env python3 # # VM testing aarch64 library # # Copyright 2020 Linaro # # Authors: # Robert Foley <robert.foley@linaro.org> # # This code is licensed under the GPL version 2 or later. See # the COPYING file in the top-level directory. # import os import sys import subprocess import basevm from qemu.utils im...
4,245
38.682243
79
py
qemu
qemu-master/tests/image-fuzzer/runner.py
#!/usr/bin/env python3 # Tool for running fuzz tests # # Copyright (C) 2014 Maria Kustova <maria.k@catit.be> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, o...
16,343
36.833333
94
py
qemu
qemu-master/tests/image-fuzzer/qcow2/fuzz.py
# Fuzzing functions for qcow2 fields # # Copyright (C) 2014 Maria Kustova <maria.k@catit.be> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your opti...
11,104
29.094851
83
py
qemu
qemu-master/tests/image-fuzzer/qcow2/layout.py
# Generator of fuzzed qcow2 images # # Copyright (C) 2014 Maria Kustova <maria.k@catit.be> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option...
27,123
43.247961
79
py
qemu
qemu-master/tests/image-fuzzer/qcow2/__init__.py
from .layout import create_image
33
16
32
py
qemu
qemu-master/tests/avocado/ppc_pseries.py
# Test that Linux kernel boots on ppc machines and check the console # # Copyright (c) 2018, 2020 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 avocado.utils import archive from avocado_qemu import QemuSystemTest fro...
1,377
37.277778
78
py
qemu
qemu-master/tests/avocado/x86_cpu_model_versions.py
# # Basic validation of x86 versioned CPU models and CPU model aliases # # Copyright (c) 2019 Red Hat Inc # # Author: # Eduardo Habkost <ehabkost@redhat.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Fre...
15,950
43.431755
118
py
qemu
qemu-master/tests/avocado/boot_linux_console.py
# Functional test that boots a Linux kernel and checks the console # # Copyright (c) 2018 Red Hat, Inc. # # Author: # Cleber Rosa <crosa@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import os import lzma import gzip impor...
57,340
44.400633
88
py
qemu
qemu-master/tests/avocado/machine_arm_integratorcp.py
# Functional test that boots a Linux kernel and checks the console # # Copyright (c) 2020 Red Hat, Inc. # # Author: # Thomas Huth <thuth@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import os import logging from avocado ...
3,729
36.3
80
py
qemu
qemu-master/tests/avocado/hotplug_cpu.py
# Functional test that hotplugs a CPU and checks it on a Linux guest # # Copyright (c) 2021 Red Hat, Inc. # # Author: # Cleber Rosa <crosa@redhat.com> # # 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 avocado_qemu import LinuxTest ...
1,179
30.052632
75
py
qemu
qemu-master/tests/avocado/replay_linux.py
# Record/replay test that boots a complete Linux system via a cloud image # # Copyright (c) 2020 ISP RAS # # Author: # Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import os import logging i...
6,216
31.046392
80
py
qemu
qemu-master/tests/avocado/ppc_virtex_ml507.py
# Test that Linux kernel boots on ppc machines and check the console # # Copyright (c) 2018, 2020 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 avocado.utils import archive from avocado_qemu import QemuSystemTest fro...
1,399
36.837838
77
py
qemu
qemu-master/tests/avocado/boot_linux.py
# Functional test that boots a complete Linux system via a cloud image # # Copyright (c) 2018-2020 Red Hat, Inc. # # Author: # Cleber Rosa <crosa@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import os from avocado_qemu i...
3,440
26.97561
79
py
qemu
qemu-master/tests/avocado/vnc.py
# Simple functional tests for VNC functionality # # Copyright (c) 2018 Red Hat, Inc. # # Author: # Cleber Rosa <crosa@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import socket from typing import List from avocado_qemu i...
4,165
34.305085
79
py
qemu
qemu-master/tests/avocado/pc_cpu_hotplug_props.py
# # Ensure CPU die-id can be omitted on -device # # Copyright (c) 2019 Red Hat Inc # # Author: # Eduardo Habkost <ehabkost@redhat.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; ...
1,293
34.944444
90
py
qemu
qemu-master/tests/avocado/smmu.py
# SMMUv3 Functional tests # # Copyright (c) 2021 Red Hat, Inc. # # Author: # Eric Auger <eric.auger@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import os from avocado import skipIf from avocado_qemu import LinuxTest, BUI...
4,492
31.557971
77
py
qemu
qemu-master/tests/avocado/ppc_prep_40p.py
# Functional test that boots a PReP/40p machine and checks its serial console. # # Copyright (c) Philippe Mathieu-Daudé <f4bug@amsat.org> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import os from avocado import skipUnless from avoca...
3,257
36.883721
78
py
qemu
qemu-master/tests/avocado/netdev-ethtool.py
# ethtool tests for emulated network devices # # This test leverages ethtool's --test sequence to validate network # device behaviour. # # SPDX-License-Identifier: GPL-2.0-or-late from avocado import skip from avocado_qemu import QemuSystemTest from avocado_qemu import exec_command, exec_command_and_wait_for_pattern f...
3,754
31.094017
77
py
qemu
qemu-master/tests/avocado/machine_mips_fuloong2e.py
# Functional tests for the Lemote Fuloong-2E machine. # # Copyright (c) 2019 Philippe Mathieu-Daudé <f4bug@amsat.org> # # This work is licensed under the terms of the GNU GPL, version 2 or later. # See the COPYING file in the top-level directory. # # SPDX-License-Identifier: GPL-2.0-or-later import os from avocado im...
1,601
36.255814
79
py
qemu
qemu-master/tests/avocado/info_usernet.py
# Test for the hmp command "info usernet" # # Copyright (c) 2021 Red Hat, Inc. # # Author: # Cleber Rosa <crosa@redhat.com> # # 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 avocado_qemu import QemuSystemTest from qemu.utils import ...
1,096
31.264706
79
py
qemu
qemu-master/tests/avocado/linux_ssh_mips_malta.py
# Functional test that boots a VM and run commands via a SSH session # # Copyright (c) Philippe Mathieu-Daudé <f4bug@amsat.org> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import os import re import base64 import logging import time ...
7,646
34.733645
80
py
qemu
qemu-master/tests/avocado/migration.py
# Migration test # # Copyright (c) 2019 Red Hat, Inc. # # Authors: # Cleber Rosa <crosa@redhat.com> # Caio Carrara <ccarrara@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import tempfile from avocado_qemu import QemuSyst...
2,752
32.573171
85
py
qemu
qemu-master/tests/avocado/tuxrun_baselines.py
# Functional test that boots known good tuxboot images the same way # that tuxrun (www.tuxrun.org) does. This tool is used by things like # the LKFT project to run regression tests on kernels. # # Copyright (c) 2023 Linaro Ltd. # # Author: # Alex Bennée <alex.bennee@linaro.org> # # SPDX-License-Identifier: GPL-2.0-or-...
13,187
31.087591
78
py
qemu
qemu-master/tests/avocado/boot_xen.py
# Functional test that boots a Xen hypervisor with a domU kernel and # checks the console output is vaguely sane . # # Copyright (c) 2020 Linaro # # Author: # Alex Bennée <alex.bennee@linaro.org> # # SPDX-License-Identifier: GPL-2.0-or-later # # This work is licensed under the terms of the GNU GPL, version 2 or # late...
4,066
33.760684
87
py
qemu
qemu-master/tests/avocado/intel_iommu.py
# INTEL_IOMMU Functional tests # # Copyright (c) 2021 Red Hat, Inc. # # Author: # Eric Auger <eric.auger@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import os from avocado import skipIf from avocado_qemu import LinuxTest...
4,167
33.733333
80
py
qemu
qemu-master/tests/avocado/virtio-gpu.py
# virtio-gpu tests # # 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 avocado_qemu import BUILD_DIR from avocado_qemu import QemuSystemTest from avocado_qemu import wait_for_console_pattern from avocado_qemu import exec_command_and_wa...
5,153
32.038462
80
py
qemu
qemu-master/tests/avocado/machine_m68k_nextcube.py
# Functional test that boots a VM and run OCR on the framebuffer # # Copyright (c) 2019 Philippe Mathieu-Daudé <f4bug@amsat.org> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import os import time from avocado_qemu import QemuSystemTe...
2,989
36.375
79
py
qemu
qemu-master/tests/avocado/empty_cpu_model.py
# Check for crash when using empty -cpu option # # Copyright (c) 2019 Red Hat, Inc. # # Author: # Eduardo Habkost <ehabkost@redhat.com> # # 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 avocado_qemu import QemuSystemTest class EmptyC...
698
33.95
82
py
qemu
qemu-master/tests/avocado/machine_avr6.py
# # QEMU AVR integration tests # # Copyright (c) 2019-2020 Michael Rolnik <mrolnik@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your opt...
1,755
33.431373
104
py
qemu
qemu-master/tests/avocado/machine_sparc64_sun4u.py
# Functional test that boots a Linux kernel and checks the console # # Copyright (c) 2020 Red Hat, Inc. # # Author: # Thomas Huth <thuth@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import os from avocado_qemu import wait...
1,238
32.486486
75
py
qemu
qemu-master/tests/avocado/replay_kernel.py
# Record/replay test that boots a Linux kernel # # Copyright (c) 2020 ISP RAS # # Author: # Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import os import lzma import shutil import logging im...
23,046
42.484906
87
py
qemu
qemu-master/tests/avocado/riscv_opensbi.py
# OpenSBI boot test for RISC-V machines # # Copyright (c) 2022, Ventana Micro # # 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 avocado_qemu import QemuSystemTest from avocado import skip from avocado_qemu import wait_for_console_patt...
1,632
23.742424
68
py
qemu
qemu-master/tests/avocado/machine_aarch64_virt.py
# Functional test that boots a various Linux systems and checks the # console output. # # Copyright (c) 2022 Linaro Ltd. # # Author: # Alex Bennée <alex.bennee@linaro.org> # # SPDX-License-Identifier: GPL-2.0-or-later import time import os import logging from avocado_qemu import QemuSystemTest from avocado_qemu impo...
5,515
36.52381
103
py
qemu
qemu-master/tests/avocado/reverse_debugging.py
# Reverse debugging test # # Copyright (c) 2020 ISP RAS # # Author: # Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import os import logging from avocado import skipIf from avocado_qemu impo...
7,303
32.351598
79
py
qemu
qemu-master/tests/avocado/virtio_check_params.py
# # Test virtio-scsi and virtio-blk queue settings for all machine types # # Copyright (c) 2019 Virtuozzo International GmbH # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of...
5,011
33.805556
80
py
qemu
qemu-master/tests/avocado/version.py
# Version check example test # # Copyright (c) 2018 Red Hat, Inc. # # Author: # Cleber Rosa <crosa@redhat.com> # # 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 avocado_qemu import QemuSystemTest class Version(QemuSystemTest): ...
670
24.807692
68
py
qemu
qemu-master/tests/avocado/ppc_mpc8544ds.py
# Test that Linux kernel boots on ppc machines and check the console # # Copyright (c) 2018, 2020 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 avocado.utils import archive from avocado_qemu import QemuSystemTest fro...
1,273
35.4
70
py
qemu
qemu-master/tests/avocado/machine_s390_ccw_virtio.py
# Functional test that boots an s390x Linux guest with ccw and PCI devices # attached and checks whether the devices are recognized by Linux # # Copyright (c) 2020 Red Hat, Inc. # # Author: # Cornelia Huck <cohuck@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPY...
13,917
49.79562
80
py
qemu
qemu-master/tests/avocado/ppc_405.py
# Test that the U-Boot firmware boots on ppc 405 machines and check the console # # Copyright (c) 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 avocado.utils import archive from avocado_qemu import QemuSystemTes...
1,308
34.378378
79
py
qemu
qemu-master/tests/avocado/tcg_plugins.py
# TCG Plugins tests # # These are a little more involved than the basic tests run by check-tcg. # # Copyright (c) 2021 Linaro # # Author: # Alex Bennée <alex.bennee@linaro.org> # # SPDX-License-Identifier: GPL-2.0-or-later import tempfile import mmap import re from boot_linux_console import LinuxKernelTest class P...
5,294
34.777027
88
py
qemu
qemu-master/tests/avocado/machine_arm_n8x0.py
# Functional test that boots a Linux kernel and checks the console # # Copyright (c) 2020 Red Hat, Inc. # # Author: # Thomas Huth <thuth@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import os from avocado import skipUnle...
1,604
31.1
76
py
qemu
qemu-master/tests/avocado/kvm_xen_guest.py
# KVM Xen guest functional tests # # Copyright © 2021 Red Hat, Inc. # Copyright © 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Author: # David Woodhouse <dwmw2@infradead.org> # Alex Bennée <alex.bennee@linaro.org> # # SPDX-License-Identifier: GPL-2.0-or-later import os from qemu.machine import ...
5,998
33.877907
85
py
qemu
qemu-master/tests/avocado/machine_arm_canona1100.py
# Functional test that boots the canon-a1100 machine with firmware # # Copyright (c) 2020 Red Hat, Inc. # # Author: # Thomas Huth <thuth@redhat.com> # # 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 avocado_qemu import QemuSystemTest...
1,246
33.638889
79
py
qemu
qemu-master/tests/avocado/acpi-bits.py
#!/usr/bin/env python3 # group: rw quick # Exercize QEMU generated ACPI/SMBIOS tables using biosbits, # https://biosbits.org/ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 o...
16,312
39.884712
80
py
qemu
qemu-master/tests/avocado/machine_microblaze.py
# 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 avocado_qemu import QemuSystemTest from avocado_qemu import wait...
1,396
37.805556
77
py
qemu
qemu-master/tests/avocado/ppc_bamboo.py
# Test that Linux kernel boots on the ppc bamboo board and check the console # # Copyright (c) 2021 Red Hat # # 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 avocado.utils import archive from avocado_qemu import QemuSystemTest from av...
1,731
39.27907
80
py
qemu
qemu-master/tests/avocado/cpu_queries.py
# Sanity check of query-cpu-* results # # Copyright (c) 2019 Red Hat, Inc. # # Author: # Eduardo Habkost <ehabkost@redhat.com> # # 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 avocado_qemu import QemuSystemTest class QueryCPUModelE...
1,021
28.2
86
py
qemu
qemu-master/tests/avocado/machine_sparc_leon3.py
# Functional test that boots a Leon3 machine and checks its serial console. # # Copyright (c) Philippe Mathieu-Daudé <f4bug@amsat.org> # # 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 avocado_qemu import QemuSystemTest from avocado_qe...
1,302
33.289474
81
py
qemu
qemu-master/tests/avocado/multiprocess.py
# Test for multiprocess qemu # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import os import socket from avocado_qemu import QemuSystemTest from avocado_qemu import wait_for_console_pattern from avocado_qemu import exec_command from a...
4,081
41.082474
79
py
qemu
qemu-master/tests/avocado/tesseract_utils.py
# ... # # Copyright (c) 2019 Philippe Mathieu-Daudé <f4bug@amsat.org> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import re import logging from avocado.utils import process from avocado.utils.path import find_command, CmdNotFoundErro...
1,439
29.638298
70
py
qemu
qemu-master/tests/avocado/linux_initrd.py
# Linux initrd integration test. # # Copyright (c) 2018 Red Hat, Inc. # # Author: # Wainer dos Santos Moschetta <wainersm@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import os import logging import tempfile from avocado...
3,386
36.633333
80
py
qemu
qemu-master/tests/avocado/virtio_version.py
""" Check compatibility of virtio device types """ # Copyright (c) 2018 Red Hat, Inc. # # Author: # Eduardo Habkost <ehabkost@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import sys import os from qemu.machine import QEMU...
6,672
37.131429
94
py
qemu
qemu-master/tests/avocado/machine_mips_malta.py
# Functional tests for the MIPS Malta board # # Copyright (c) Philippe Mathieu-Daudé <f4bug@amsat.org> # # This work is licensed under the terms of the GNU GPL, version 2 or later. # See the COPYING file in the top-level directory. # # SPDX-License-Identifier: GPL-2.0-or-later import os import gzip import logging fro...
5,766
35.04375
78
py
qemu
qemu-master/tests/avocado/load_bflt.py
# Test the bFLT loader format # # Copyright (C) 2019 Philippe Mathieu-Daudé <f4bug@amsat.org> # # SPDX-License-Identifier: GPL-2.0-or-later import os import bz2 import subprocess from avocado import skipUnless from avocado_qemu import QemuUserTest from avocado_qemu import has_cmd class LoadBFLT(QemuUserTest): ...
1,708
30.072727
80
py
qemu
qemu-master/tests/avocado/machine_rx_gdbsim.py
# Functional test that boots a Linux kernel and checks the console # # Copyright (c) 2018 Red Hat, Inc. # # Author: # Cleber Rosa <crosa@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. import os from avocado import skipIf f...
2,858
37.635135
80
py
qemu
qemu-master/tests/avocado/machine_mips_loongson3v.py
# Functional tests for the Generic Loongson-3 Platform. # # Copyright (c) 2021 Jiaxun Yang <jiaxun.yang@flygoat.com> # # This work is licensed under the terms of the GNU GPL, version 2 or later. # See the COPYING file in the top-level directory. # # SPDX-License-Identifier: GPL-2.0-or-later import os import time from...
1,341
32.55
82
py
qemu
qemu-master/tests/avocado/ppc_74xx.py
# Smoke tests for 74xx cpus (aka G4). # # Copyright (c) 2021, IBM Corp. # # 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 avocado_qemu import QemuSystemTest from avocado_qemu import wait_for_console_pattern class ppc74xxCpu(QemuSyste...
4,028
28.408759
69
py
qemu
qemu-master/tests/avocado/machine_aspeed.py
# Functional test that boots the ASPEED SoCs with firmware # # Copyright (C) 2022 ASPEED Technology 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. import time import os from avocado_qemu import QemuSystemTest from avocado_qemu impo...
14,461
42.957447
89
py