python_code stringlengths 0 679k | repo_name stringlengths 9 41 | file_path stringlengths 6 149 |
|---|---|---|
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/virtio_check_params.py |
# Sanity check of query-cpu-* results
#
# Copyright (c) 2019 Red Hat, Inc.
#
# Author:
# Eduardo Habkost <[email protected]>
#
# 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 Test
class QueryCPUModelExpansion(T... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/cpu_queries.py |
# Check for crash when using empty -cpu option
#
# Copyright (c) 2019 Red Hat, Inc.
#
# Author:
# Eduardo Habkost <[email protected]>
#
# 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 Test
class EmptyCPUModel(Te... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/empty_cpu_model.py |
# Reverse debugging test
#
# Copyright (c) 2020 ISP RAS
#
# Author:
# Pavel Dovgalyuk <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/reverse_debugging.py |
# Version check example test
#
# Copyright (c) 2018 Red Hat, Inc.
#
# Author:
# Cleber Rosa <[email protected]>
#
# 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 Test
class Version(Test):
"""
:avocado: t... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/version.py |
# Record/replay test that boots a Linux kernel
#
# Copyright (c) 2020 ISP RAS
#
# Author:
# Pavel Dovgalyuk <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/replay_kernel.py |
#
# Ensure CPU die-id can be omitted on -device
#
# Copyright (c) 2019 Red Hat Inc
#
# Author:
# Eduardo Habkost <[email protected]>
#
# 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; ... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/pc_cpu_hotplug_props.py |
# Functional test that hotplugs a CPU and checks it on a Linux guest
#
# Copyright (c) 2021 Red Hat, Inc.
#
# Author:
# Cleber Rosa <[email protected]>
#
# 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
... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/hotplug_cpu.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 Test
from avocado_... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/ppc_virtex_ml507.py |
#
# Basic validation of x86 versioned CPU models and CPU model aliases
#
# Copyright (c) 2019 Red Hat Inc
#
# Author:
# Eduardo Habkost <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/x86_cpu_model_versions.py |
# Functional tests for the Generic Loongson-3 Platform.
#
# Copyright (c) 2021 Jiaxun Yang <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/machine_mips_loongson3v.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 Test
from avocado_qemu import BUILD_DIR
from avocado_qemu import wait_for_console_pattern
from avocado_qemu import exec_command_and_wait_for_pat... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/virtio-gpu.py |
# Functional test that boots a VM and run OCR on the framebuffer
#
# Copyright (c) 2019 Philippe Mathieu-Daudé <[email protected]>
#
# 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 Test
from av... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/machine_m68k_nextcube.py |
# Functional test that boots a Linux kernel and checks the console
#
# Copyright (c) 2018 Red Hat, Inc.
#
# Author:
# Cleber Rosa <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/machine_rx_gdbsim.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 Test
from avocado_qemu import wait_for_conso... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/machine_microblaze.py |
# Functional test that boots a Linux kernel and checks the console
#
# Copyright (c) 2020 Red Hat, Inc.
#
# Author:
# Thomas Huth <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/machine_arm_n8x0.py |
# SMMUv3 Functional tests
#
# Copyright (c) 2021 Red Hat, Inc.
#
# Author:
# Eric Auger <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/smmu.py |
# ...
#
# Copyright (c) 2019 Philippe Mathieu-Daudé <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/tesseract_utils.py |
# Functional tests for the MIPS Malta board
#
# Copyright (c) Philippe Mathieu-Daudé <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/machine_mips_malta.py |
# Functional test that boots a complete Linux system via a cloud image
#
# Copyright (c) 2018-2020 Red Hat, Inc.
#
# Author:
# Cleber Rosa <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/boot_linux.py |
#
# QEMU AVR acceptance tests
#
# Copyright (c) 2019-2020 Michael Rolnik <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/machine_avr6.py |
# Functional test that boots a PReP/40p machine and checks its serial console.
#
# Copyright (c) Philippe Mathieu-Daudé <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/ppc_prep_40p.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 Test
from avocado_qemu import wait_for_console_pattern
from avocado_qemu import exec_command
from avocado_qem... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/multiprocess.py |
# Functional test that boots a VM and run commands via a SSH session
#
# Copyright (c) Philippe Mathieu-Daudé <[email protected]>
#
# 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
... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/linux_ssh_mips_malta.py |
# INTEL_IOMMU Functional tests
#
# Copyright (c) 2021 Red Hat, Inc.
#
# Author:
# Eric Auger <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/intel_iommu.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 <[email protected]>
#
# SPDX-License-Identifier: GPL-2.0-or-later
import tempfile
import mmap
import re
from boot_linux_console import LinuxKernelTest
class P... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/tcg_plugins.py |
# Functional test that boots a Linux kernel and checks the console
#
# Copyright (c) 2020 Red Hat, Inc.
#
# Author:
# Thomas Huth <[email protected]>
#
# 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 ... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/machine_arm_integratorcp.py |
# Test for the hmp command "info usernet"
#
# Copyright (c) 2021 Red Hat, Inc.
#
# Author:
# Cleber Rosa <[email protected]>
#
# 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 Test
from qemu.utils import get_info_u... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/info_usernet.py |
# Simple functional tests for VNC functionality
#
# Copyright (c) 2018 Red Hat, Inc.
#
# Author:
# Cleber Rosa <[email protected]>
#
# 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 Test
class Vnc(Test):
"""
... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/vnc.py |
# Record/replay test that boots a complete Linux system via a cloud image
#
# Copyright (c) 2020 ISP RAS
#
# Author:
# Pavel Dovgalyuk <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/replay_linux.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 <[email protected]>
#
# This work is licensed under the terms of the GNU GPL, version 2 or
# later. See the COPY... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/machine_s390_ccw_virtio.py |
"""
Check compatibility of virtio device types
"""
# Copyright (c) 2018 Red Hat, Inc.
#
# Author:
# Eduardo Habkost <[email protected]>
#
# 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
sys.path.append(os.path.join(... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/virtio_version.py |
# Functional tests for the Lemote Fuloong-2E machine.
#
# Copyright (c) 2019 Philippe Mathieu-Daudé <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/machine_mips_fuloong2e.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 Test
from avocado_... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/ppc_pseries.py |
# Migration test
#
# Copyright (c) 2019 Red Hat, Inc.
#
# Authors:
# Cleber Rosa <[email protected]>
# Caio Carrara <[email protected]>
#
# 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 Test
fro... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/migration.py |
# Functional test that boots the canon-a1100 machine with firmware
#
# Copyright (c) 2020 Red Hat, Inc.
#
# Author:
# Thomas Huth <[email protected]>
#
# 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 Test
from avoc... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/machine_arm_canona1100.py |
# Functional test that boots a Linux kernel and checks the console
#
# Copyright (c) 2020 Red Hat, Inc.
#
# Author:
# Thomas Huth <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/machine_sparc64_sun4u.py |
# Functional test that boots a Linux kernel and checks the console
#
# Copyright (c) 2018 Red Hat, Inc.
#
# Author:
# Cleber Rosa <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/boot_linux_console.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 Test
from avocado_... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/ppc_mpc8544ds.py |
# Functional test that boots a Leon3 machine and checks its serial console.
#
# Copyright (c) Philippe Mathieu-Daudé <[email protected]>
#
# 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 Test
from avocado_qemu import ... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/machine_sparc_leon3.py |
# Linux initrd acceptance test.
#
# Copyright (c) 2018 Red Hat, Inc.
#
# Author:
# Wainer dos Santos Moschetta <[email protected]>
#
# 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_... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/linux_initrd.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 <[email protected]>
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This work is licensed under the terms of the GNU GPL, version 2 or
# late... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/boot_xen.py |
import logging
import re
import os
import subprocess
import time
from avocado import skipUnless
from avocado_qemu import LinuxTest, BUILD_DIR
from avocado_qemu import wait_for_console_pattern
from avocado.utils import ssh
def run_cmd(args):
subp = subprocess.Popen(args,
stdout=subproc... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/virtiofs_submounts.py |
# Test class and utilities for functional tests
#
# Copyright (c) 2018 Red Hat, Inc.
#
# Author:
# Cleber Rosa <[email protected]>
#
# 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 logging
import os
import shutil
import sys
import t... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/acceptance/avocado_qemu/__init__.py |
#!/usr/bin/env python3
# Tool for running fuzz tests
#
# Copyright (C) 2014 Maria Kustova <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/image-fuzzer/runner.py |
# Generator of fuzzed qcow2 images
#
# Copyright (C) 2014 Maria Kustova <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/image-fuzzer/qcow2/layout.py |
from .layout import create_image
| nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/image-fuzzer/qcow2/__init__.py |
# Fuzzing functions for qcow2 fields
#
# Copyright (C) 2014 Maria Kustova <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/image-fuzzer/qcow2/fuzz.py |
#!/usr/bin/env python3
#
# QAPI parser test harness
#
# Copyright (c) 2013 Red Hat Inc.
#
# Authors:
# Markus Armbruster <[email protected]>
#
# 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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/qapi-schema/test-qapi.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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/migration/guestperf-batch.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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/migration/guestperf-plot.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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/migration/guestperf.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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/migration/guestperf/plot.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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/migration/guestperf/shell.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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/migration/guestperf/timings.py |
nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/migration/guestperf/__init__.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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/migration/guestperf/comparison.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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/migration/guestperf/engine.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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/migration/guestperf/scenario.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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/migration/guestperf/hardware.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... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/migration/guestperf/progress.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) ... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/tests/migration/guestperf/report.py |
# -*- coding: utf-8 -*-
#
# QEMU documentation build configuration file, created by
# sphinx-quickstart on Thu Jan 31 16:40:14 2019.
#
# This config file can be used in one of two ways:
# (1) as a common config file which is included by the conf.py
# for each of QEMU's manuals: in this case sphinx-build is run multiple... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/docs/conf.py |
# coding=utf-8
#
# QEMU hxtool .hx file parsing extension
#
# Copyright (c) 2020 Linaro
#
# This work is licensed under the terms of the GNU GPLv2 or later.
# See the COPYING file in the top-level directory.
"""hxtool is a Sphinx extension that implements the hxtool-doc directive"""
# The purpose of this extension is ... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/docs/sphinx/hxtool.py |
# SPDX-License-Identifier: GPL-2.0
#
# Sphinx has deprecated its older logging interface, but the replacement
# only goes back to 1.6. So here's a wrapper layer to keep around for
# as long as we support 1.4.
#
import sphinx
if sphinx.__version__[:3] >= '1.6':
UseLogging = True
from sphinx.util import logging... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/docs/sphinx/kernellog.py |
# coding=utf-8
#
# QEMU qapidoc QAPI file parsing extension
#
# Copyright (c) 2020 Linaro
#
# This work is licensed under the terms of the GNU GPLv2 or later.
# See the COPYING file in the top-level directory.
"""
qapidoc is a Sphinx extension that implements the qapi-doc directive
The purpose of this extension is to... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/docs/sphinx/qapidoc.py |
# QEMU Monitor Protocol Lexer Extension
#
# Copyright (C) 2019, Red Hat Inc.
#
# Authors:
# Eduardo Habkost <[email protected]>
# John Snow <[email protected]>
#
# This work is licensed under the terms of the GNU GPLv2 or later.
# See the COPYING file in the top-level directory.
"""qmp_lexer is a Sphinx extension th... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/docs/sphinx/qmp_lexer.py |
# coding=utf-8
#
# Copyright © 2016 Intel Corporation
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, me... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/docs/sphinx/kerneldoc.py |
# coding=utf-8
#
# QEMU depfile generation extension
#
# Copyright (c) 2020 Red Hat, Inc.
#
# This work is licensed under the terms of the GNU GPLv2 or later.
# See the COPYING file in the top-level directory.
"""depfile is a Sphinx extension that writes a dependency file for
an external build system"""
import os
... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/docs/sphinx/depfile.py |
#!/usr/bin/env python3
# Copyright 2012-2021 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/run_tests.py |
#!/usr/bin/env python3
# Copyright 2016-2021 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by ... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/run_unittests.py |
#!/usr/bin/env python3
# Copyright 2018 The Meson development team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/run_meson_command_tests.py |
#!/usr/bin/env python3
# Copyright 2012-2019 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/run_format_tests.py |
#!/usr/bin/env python3
# Copyright 2018 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by appli... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/skip_ci.py |
#!/usr/bin/env python3
# Copyright 2016 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by appl... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/setup.py |
#!/usr/bin/env python3
# SPDX-license-identifier: Apache-2.0
# Copyright © 2021 Intel Corporation
"""Script for running a single project test.
This script is meant for Meson developers who want to run a single project
test, with all of the rules from the test.json file loaded.
"""
import argparse
import pathlib
impo... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/run_single_test.py |
#!/usr/bin/env python3
# Copyright 2016 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by appl... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/meson.py |
#!/usr/bin/env python3
# Copyright 2016 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by appl... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/ghwt.py |
#!/usr/bin/env python3
# Copyright 2013-2016 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/run_cross_test.py |
#!/usr/bin/env python3
from pathlib import Path
import argparse
import os
import subprocess
import sys
import typing as T
from mesonbuild.mesonlib import version_compare
modules = [
# fully typed submodules
# 'mesonbuild/ast',
'mesonbuild/cmake',
'mesonbuild/compilers',
'mesonbuild/dependencies',... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/run_mypy.py |
#!/usr/bin/env python3
from pathlib import Path
import typing as T
root = Path(__file__).absolute().parent
mesonbuild = root / 'mesonbuild'
whitelist = ['mesonbuild/', 'run_', 'ci/', 'tools/', 'docs/']
def check_missing_encoding(lines: T.List[str], path: str) -> int:
errors = 0
functions = ['read_text', 'wr... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/run_custom_lint.py |
#!/usr/bin/env python3
# Copyright 2012-2021 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/run_project_tests.py |
#!/usr/bin/env python3
# Copyright 2017-2021 The Meson development team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/packaging/createmsi.py |
#!/usr/bin/env python3
# Copyright 2017-2021 The Meson development team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/packaging/createpkg.py |
#!/usr/bin/env python3
import argparse
from pathlib import Path
import shutil
import sys
import tempfile
import zipapp
parser = argparse.ArgumentParser()
parser.add_argument('source', nargs='?', default='.', help='Source directory')
parser.add_argument('--outfile', default='meson.pyz', help='Output file for the zipap... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/packaging/create_zipapp.py |
#!/usr/bin/env python3
# Copyright 2021 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by appli... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/tools/run_with_cov.py |
#!/usr/bin/env python3
# Copyright 2015 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by appl... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/tools/ac_converter.py |
#!/usr/bin/env python3
# Copyright 2018 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by app... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/tools/dircondenser.py |
#!/usr/bin/env python3
import os, sys, subprocess, shutil
assert(os.getcwd() == '/home/jpakkane')
from glob import glob
def purge(fname: str) -> None:
if not os.path.exists(fname):
return
if os.path.isdir(fname):
shutil.rmtree(fname)
os.unlink(fname)
def update() -> None:
webdir = '... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/tools/build_website.py |
#!/usr/bin/env python3
# Copyright 2020 Daniel Mensinger
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/tools/gen_data.py |
#!/usr/bin/env python3
# Copyright 2018 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by app... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/tools/regenerate_docs.py |
#!/usr/bin/env python3
# Copyright 2017 Niklas Claesson
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law ... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/tools/boost_names.py |
#!/usr/bin/env python3
# Copyright 2014 Jussi Pakkanen
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law o... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/tools/cmake2meson.py |
#!/usr/bin/env python3
# Copyright 2018 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by app... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/tools/copy_files.py |
#!/usr/bin/env python3
import os, urllib.request, shutil, subprocess
from glob import glob
sdl_url = 'http://libsdl.org/release/SDL2-devel-2.0.3-VC.zip'
sdl_filename = 'SDL2-devel-2.0.3-VC.zip'
sdl_dir = 'SDL2-2.0.3'
shutil.rmtree('build', ignore_errors=True)
os.mkdir('build')
if not os.path.exists(sdl_filename):
... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/manual tests/4 standalone binaries/build_windows_package.py |
#!/usr/bin/env python3
import os
import sys
prefix = os.environ['MESON_INSTALL_DESTDIR_PREFIX']
dirname = os.path.join(prefix, sys.argv[1])
try:
os.makedirs(dirname)
except FileExistsError:
if not os.path.isdir(dirname):
raise
with open(os.path.join(dirname, sys.argv[2]), 'w') as f:
f.write('')... | nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/test cases/unit/26 install umask/myinstall.py |
#!/usr/bin/env python3
import sys
import subprocess
sys.exit(subprocess.call(sys.argv[1:]))
| nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/test cases/unit/5 compiler detection/compiler wrapper.py |
#!/usr/bin/env python3
print('cross')
| nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/test cases/unit/11 cross prog/some_cross_tool.py |
#!/usr/bin/env python3
print('native')
| nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/test cases/unit/11 cross prog/sometool.py |
#!/usr/bin/env python3
import sys
f = open(sys.argv[1], 'w')
f.write('#define RETURN_VALUE 0')
f.close()
| nvtrust-main | infrastructure/kvm/qemu/qemu_source/meson/test cases/unit/95 custominc/easytogrepfor/genh.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.