From nobody Sat May 18 08:47:01 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1666348091; cv=none; d=zohomail.com; s=zohoarc; b=IyZNuvl68feUylRAOthQ+B8kpDM4yaaqpmo4rHGcsyJzGX44CPHAPVHbkOE81uGs9qRAc81A00mP99fZ0H+bqgPF3RGUSuHtEdoMesYziGgal8XacSiZxRv2T1QAoTFKTvDI2CCo1k2e4mb/72X9JrTnpkX5F4HZZinBvKVoznI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1666348091; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=z6GL747aNys3jONLPu3v5IZEA2sjN65vmxGongvs2Bg=; b=fPyReQ2pNesA/LoL8iTXki5qBxH2labcaWpnC17UjgBrkbp39vnTQRTj02g0yKhWIpsXoPtVK3UIMbuzQ4z8Fjl0Y7QB8/W7hInVxesXHHKEJeig1OVSe13JNEiQmMT5hl2iSqTrYbRjf1Yr298SOUNQBqwiydA74qbyV78grns= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16663480913861004.8495492343479; Fri, 21 Oct 2022 03:28:11 -0700 (PDT) Received: from localhost ([::1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olpG6-0000zQ-2f for importer@patchew.org; Fri, 21 Oct 2022 06:28:10 -0400 Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olorl-00029L-JP for importer@patchew.org; Fri, 21 Oct 2022 06:03:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olorO-0001gb-Vr for qemu-devel@nongnu.org; Fri, 21 Oct 2022 06:02:48 -0400 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olorI-0006GC-R6 for qemu-devel@nongnu.org; Fri, 21 Oct 2022 06:02:36 -0400 Received: by mail-pg1-x533.google.com with SMTP id f193so2172425pgc.0 for ; Fri, 21 Oct 2022 03:02:29 -0700 (PDT) Received: from anisinha-lenovo.ba.nuagenetworks.net ([203.212.245.138]) by smtp.googlemail.com with ESMTPSA id e14-20020a631e0e000000b0042fe1914e26sm12997375pge.37.2022.10.21.03.02.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Oct 2022 03:02:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anisinha-ca.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=z6GL747aNys3jONLPu3v5IZEA2sjN65vmxGongvs2Bg=; b=Tg0/oASTOdHczf21u9bJacc/I2vKBP9kThBOKvMG4kSVIkwXzkAlto66S6HWhaecYf t93JIfAY5MNnDST3lZ0pWVjPgzckM1AOnHy0j/3lWIseQdVXx+zPoSFv0OFo/GSmhpP6 ND/FAde4W2zMj0v/jX3RKDqIPIiH9EDmJp4qbuDghtv36uNBw0k2fXC8NWuUPbXhZxuk 8xE18qtZXoGt9rKBzJpWLy6/iouRZaBQdJx4e5r7M4NxsVRGoOzmSkT/TJ7ilyikPWcs tSKMGQt2IUITsWoP6EF/qnFQIhFSeF/tb70iN8rLQR/ORKJjV/na+jG/oZJv+7zapFxT r/VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=z6GL747aNys3jONLPu3v5IZEA2sjN65vmxGongvs2Bg=; b=fIQjmMNoqTk2XXdhmmQrinBiwtxnmSieilqHiipUhz19fIs8kExO3d/BvjX61iSdWy 07FdRxBaQgHnPX5tM8zl/WUN8nWcpqEc51JDxabFoAWLfU+0i/zEOaHelOxRPFQOvRG1 4BlKN8aAVQcfG/E0XouG/wFFB/hU2njwEHv4IxTrCvL+MPmEIk5OT9EobdAvvaTaxMQc ClOP9YplHaZyznjsbLQTFKXjaDF+zryDsNtZZYxy68con01K735oTppQfr+XHxz8yAp1 Cc/PtyZ+wTAN1zp86IRuZcXhG9z/b76E2m+5secj9TUWFZpj5zC3mK91Pcn99enMDNed WvMA== X-Gm-Message-State: ACrzQf3Vgwq9+JldE9jE6hJOR4Y7bkj7al/q1t5aLItUPzg5UZClFhqI 3H1FbbmJuKaakyD/cYDShi0rUQ== X-Google-Smtp-Source: AMsMyM4O6A4MNp2xoD6/WDZXdQrq7+DHImLL99Z4KvJijhugmsQg+Gm+rbF50CwU+vhm9v8+OUxD9Q== X-Received: by 2002:a63:2cd2:0:b0:41c:5901:67d8 with SMTP id s201-20020a632cd2000000b0041c590167d8mr15680049pgs.365.1666346547759; Fri, 21 Oct 2022 03:02:27 -0700 (PDT) From: Ani Sinha To: Cleber Rosa , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal Cc: Ani Sinha , Qemu Devel , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Paolo Bonzini , Maydell Peter , John Snow , Thomas Huth , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Igor Mammedov , Michael Tsirkin Subject: [PATCH v7 0/7] Introduce new acpi/smbios avocado tests using biosbits Date: Fri, 21 Oct 2022 15:21:01 +0530 Message-Id: <20221021095108.104843-1-ani@anisinha.ca> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::533; envelope-from=ani@anisinha.ca; helo=mail-pg1-x533.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @anisinha-ca.20210112.gappssmtp.com) X-ZM-MESSAGEID: 1666348093238100001 Please see the rst doc file in patch 6 for more details. Sample runs are as follows: Passed tests: $ ./tests/venv/bin/avocado run -t acpi tests/avocado Fetching asset from tests/avocado/acpi-bits.py:AcpiBitsTest.test_acpi_smbio= s_bits JOB ID : e95c7413e996bfb59389839e5ca5105464ef098f JOB LOG : /home/anisinha/avocado/job-results/job-2022-10-14T19.15-e95c74= 1/job.log (1/1) tests/avocado/acpi-bits.py:AcpiBitsTest.test_acpi_smbios_bits: PASS = (33.08 s) RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CA= NCEL 0 JOB TIME : 39.18 s $ ./tests/venv/bin/avocado run ./tests/avocado/acpi-bits.py=20 Fetching asset from ./tests/avocado/acpi-bits.py:AcpiBitsTest.test_acpi_smb= ios_bits JOB ID : c6e588594bceb2c5fdbdf45095559c58e4030f9c JOB LOG : /home/anisinha/avocado/job-results/job-2022-10-14T19.13-c6e588= 5/job.log (1/1) ./tests/avocado/acpi-bits.py:AcpiBitsTest.test_acpi_smbios_bits: PAS= S (32.29 s) RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CA= NCEL 0 JOB TIME : 39.27 s When PSS tests are enabled: $ git diff diff --git a/tests/avocado/acpi-bits/bits-tests/testacpi.py2 b/tests/avocad= o/acpi-bits/bits-tests/testacpi.py2 index f818a9cce6..18dc818d62 100644 --- a/tests/avocado/acpi-bits/bits-tests/testacpi.py2 +++ b/tests/avocado/acpi-bits/bits-tests/testacpi.py2 @@ -40,8 +40,8 @@ import time =20 def register_tests(): testsuite.add_test("ACPI _MAT (Multiple APIC Table Entry) under Proces= sor objects", test_mat, submenu=3D"ACPI Tests") -# testsuite.add_test("ACPI _PSS (Pstate) table conformance tests", test= _pss, submenu=3D"ACPI Tests") -# testsuite.add_test("ACPI _PSS (Pstate) runtime tests", test_pstates, = submenu=3D"ACPI Tests") + testsuite.add_test("ACPI _PSS (Pstate) table conformance tests", test_= pss, submenu=3D"ACPI Tests") + testsuite.add_test("ACPI _PSS (Pstate) runtime tests", test_pstates, s= ubmenu=3D"ACPI Tests") testsuite.add_test("ACPI DSDT (Differentiated System Description Table= )", test_dsdt, submenu=3D"ACPI Tests") testsuite.add_test("ACPI FACP (Fixed ACPI Description Table)", test_fa= cp, submenu=3D"ACPI Tests") testsuite.add_test("ACPI HPET (High Precision Event Timer Table)", tes= t_hpet, submenu=3D"ACPI Tests") $ ./tests/venv/bin/avocado run -t acpi tests/avocado Fetching asset from tests/avocado/acpi-bits.py:AcpiBitsTest.test_acpi_smbio= s_bits JOB ID : 16a8b8c7f8dc87c4b84f8a2f95135bb63464a71e JOB LOG : /home/anisinha/avocado/job-results/job-2022-10-14T22.43-16a8b8= c/job.log (1/1) tests/avocado/acpi-bits.py:AcpiBitsTest.test_acpi_smbios_bits: FAIL:= '1' !=3D '0'\n- 1\n+ 0\n : Some bits tests seems to have failed. Please ch= eck the test logs for more info. (33.01 s) RESULTS : PASS 0 | ERROR 0 | FAIL 1 | SKIP 0 | WARN 0 | INTERRUPT 0 | CA= NCEL 0 JOB TIME : 39.17 s Changelog: v7: - added "-icount auto" QEMU param in order to remove timing inconsistenci= es. - removed smilatency test and related changes. smilatency tests passes. =3D=3D=3D SMI latency test =3D=3D=3D=3D Warning: touching the keyboard can affect the results of this test. Starting test. Wait here, I will be back in 15 seconds. Summary: 1 passed, 0 failed - updated doc based on Alex's suggestions. Incorporated his other suggest= ions. - updated tags. v6: - skip test when dependencies (xorriso for example) are not installed. - skip test when run on a platform other than x86_64. - move README as an rst file under docs/devel. - updated tags. v5: - fixed bits so that grub-mkrescue is built as a static binary. - updated the test so that it points to the new bits artifact. - V=3D1 now spits out more meaningful information on failure. - added a check to see if xorriso is installed. If not, the test skips wi= th a meaningful message instructing the user to install it. - fixed README by removing references to stale instructions and adding updated instructions. - tags updated. v4: - renamed the bits test files as .py2. - fixed a bug with missing log file parsing. dump bits logs automatically for test failures (no need to re-run with V=3D1). - fixed issues with README file and enhanced it. - cosmetic comment updates. v3: - converted the existing test to avocado tests as per the popular recommendation. Added appropriate tags. - artifact download URL modified based on gitlab-CI URL. For biosbits repo: - moved to a gitlab repo with me being the maintainer. - added .gitlab-ci.yml file to generate the artifacts. v2: - a new class of python based tests introduced that is separate from avoca= do tests or qtests. Can be run by using "make check-pytest". - acpi biosbits tests are the first tests to use pytest environment. - bios bits tests now download the bits binary archives from a remote repository if they are not found locally. The test skips if download fails. - A new environment variable is introduced that can be passed by the tester to specify the location of the bits archives locally. test skips if the bits binaries are not found in that location. - if pip install of python module fails for whatever reaoson, the test ski= ps. - misc code fixes including spell check of the README doc. README has been updated as well. - addition of SPDX license headers to bits test files. - update MAINTAINERS to reflect the new pytest test class. For biosbits repo: - added Dockerfile and build script. Made bios bits build on gcc 11. https://github.com/ani-sinha/bits/blob/bits-qemu-logging/Dockerfile https://github.com/ani-sinha/bits/blob/bits-qemu-logging/build-artifacts= .sh The build script generates the zip archive and tarball used by the test. v1: initial patchset. uses qtest to implement the bios bits tests. Cc: Qemu Devel Cc: Daniel P. Berrang=C3=A9 Cc: Paolo Bonzini Cc: Maydell Peter Cc: John Snow Cc: Thomas Huth Cc: Alex Benn=C3=A9e Cc: Igor Mammedov Cc: Michael Tsirkin Ani Sinha (7): acpi/tests/avocado/bits: initial commit of test scripts that are run by biosbits acpi/tests/avocado/bits: add SPDX license identifiers for bios bits tests acpi/tests/avocado/bits: disable acpi PSS tests that are failing in biosbits acpi/tests/avocado/bits: add biosbits config file for running bios tests acpi/tests/avocado/bits: add acpi and smbios avocado tests that uses biosbits acpi/tests/avocado/bits/doc: add a doc file to describe the acpi bits test MAINTAINERS: add myself as the maintainer for acpi biosbits avocado tests MAINTAINERS | 7 + docs/devel/acpi-bits.rst | 145 + docs/devel/index-build.rst | 1 + tests/avocado/acpi-bits.py | 396 +++ .../acpi-bits/bits-config/bits-cfg.txt | 18 + tests/avocado/acpi-bits/bits-tests/smbios.py2 | 2434 +++++++++++++++++ .../avocado/acpi-bits/bits-tests/testacpi.py2 | 287 ++ .../acpi-bits/bits-tests/testcpuid.py2 | 87 + 8 files changed, 3375 insertions(+) create mode 100644 docs/devel/acpi-bits.rst create mode 100644 tests/avocado/acpi-bits.py create mode 100644 tests/avocado/acpi-bits/bits-config/bits-cfg.txt create mode 100644 tests/avocado/acpi-bits/bits-tests/smbios.py2 create mode 100644 tests/avocado/acpi-bits/bits-tests/testacpi.py2 create mode 100644 tests/avocado/acpi-bits/bits-tests/testcpuid.py2 --=20 2.34.1