From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6953642757724307456 X-Received: by 2002:a5d:4947:: with SMTP id r7mr23172541wrs.217.1620542554249; Sat, 08 May 2021 23:42:34 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:24d4:: with SMTP id k203ls8003664wmk.0.canary-gmail; Sat, 08 May 2021 23:42:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTzuVqjgDLglKSVVPCyYGMqgCr8GHeRmKHPmgMr/Lp0siOmXrFydgP//OWvRXS0jHV00FQ X-Received: by 2002:a05:600c:220e:: with SMTP id z14mr19899894wml.0.1620542553435; Sat, 08 May 2021 23:42:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620542553; cv=none; d=google.com; s=arc-20160816; b=HP712cEXwtMslMKVSUGWhCG2b+HGDb3LUBW5gRD3D1fdS1pJ9yJzl8FfvaSY2zT4t1 eaw0Ar0IQ9LjvtcVsmxXzq8Ec63M6kebbTvn6WAb9TV+Xivlwhsh27Qfm7lqmpe9GAoN EhYEfmdiV5KkckztdEZ1akLSd9pwNebyg/7t1HGi4nPSunNh877a8M1bm3yK1tsGxsj+ xzEHBqqPzR+4zjqrqPV8hP7wDGce7jOJZ2fPY5cDdFcatwO6z/jvV2HPlE/d64qlKqav MsZjZQBo/0Hzyb1/bQnLLACWVvlhgMfqo8PAnTWO+yCoTQNUX5TLIR6B5ElK0JWpoEXV t1ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=LLS6q7ZRqhYE1TcPLY/lCqCA8kuc/xQyXex69br7OLQ=; b=lM2XYsyFFRGz9iv9v/Z+VFTe6jHLLrF0wDKjfQIOa5opn4Crf0NReYCLSH/VHGTLLK 8IcHLQWBSyIDyDJJDX+pAkOisyUqiA0alKNwkJJHQ/8FpbfAhzsUhoaQNMqW8wyMvsyi rf30C19hud1teGmGcA40Yj245VMtgnZfBefWXEz4OZ/Oj5n9bqOoYZpJIcIg9U1FHze0 Zp17t0cj3mGrQhJ2ktSsv8kqWjdDkCEZ6FBpGuyG7+8UDpoAIAPsKUIo5Nu7vJs+b6Fa hqyvV/1ceuXr29pANzVlZZdasDOIRQlzcBjjtWSfVGK3Idmh8K3+8OsjBVAj5iai56LF nKlw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id c13si757121wme.3.2021.05.08.23.42.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 08 May 2021 23:42:33 -0700 (PDT) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from localhost.localdomain (mm-99-50-214-37.mgts.dynamic.pppoe.byfly.by [37.214.50.99] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 1496gViE007988 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 9 May 2021 08:42:32 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH v6 00/15] Update Avocado testsuite Date: Sun, 9 May 2021 09:42:09 +0300 Message-Id: <20210509064224.96072-1-amikan@ilbers.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: N1yVKrUUM87A This patchset provides implementation of build and vm_start tests functionality in Python with help of Avocado framework. Scripts ci_build and vm_smoke_test are rewritten to call Avocado. ci_build and vm_smoke_test are left for compatibility and should be replaced by direct avocado calls later. Original ci_build and vm_smoke_test are renamed to *_legacy. Build and run logs are hidden now until an error occurs. --- Changes since v5: - Rebase on current next. Changes since v4: - Add container tests. - Implement testcase skipping logic. - Separate and protect Bullseye tests. - Add checks for container dependencies. - Add Ilbers repo key. - Improve error handling. - Fix Ubuntu qemu image name. Changes since v3: - Add automatic bitbake init. - Fix line lengths. - Fix build without repro. - Fix build artifact paths. - Prepare for Gitlab build. - Change debug settings. - Move log splitting to start_vm. - Add deb package install. Changes since v2: - Make CI call Avocado tests. - Wait less on vm_start test. - Split Roman's vm_start commit. - Put logs to build folder. - Rearrange patches. - Split build test to classes. - Add test case tagging. - Get rid of avocado-framework-plugin-varianter-yaml-to-mux. - Get rid of python-subprocess32. - Improve logging. Changes since v1: - Merge start_vm rebuild patches. - Fix patch comments. Anton Mikanovich (12): start_vm.py: Fix ubuntu image name vm_boot_test: Fix log file path in vm_boot_test vm_boot_test: Remove external varianter vm_boot_test: Improve QEMU images checking build_test: Refactoring build tests cases testsuite: Add Python generations for testsuite in gitignore testsuite: Fix test suite prepare guide gitlab-ci: Add Avocado build artifacts vm_boot_test: Add automatic bitbake init ci_build: Migrate to Avocado vm_smoke_test: Migrate to Avocado ci_build: Install Avocado if needed Roman Pletnev (3): start_vm.py: Fix target name handling start_vm.py: Add output and PID file vm_start.py options start_vm.py: Add MIPS support .gitlab-ci.yml | 1 + scripts/ci_build.sh | 212 +++++--------------- scripts/ci_build_legacy.sh | 267 +++++++++++++++++++++++++ scripts/vm_smoke_test | 110 ++-------- scripts/vm_smoke_test_legacy | 168 ++++++++++++++++ testsuite/.gitignore | 1 + testsuite/README.md | 21 +- testsuite/build_test/build_test.py | 208 +++++++++++++++++-- testsuite/build_test/cibase.py | 145 ++++++++++++++ testsuite/build_test/cibuilder.py | 90 +++++++++ testsuite/build_test/run.sh | 3 - testsuite/build_test/run_fast.sh | 3 + testsuite/build_test/run_full.sh | 3 + testsuite/build_test/variant.yaml | 22 -- testsuite/start_vm.py | 27 ++- testsuite/vm_boot_test/run.sh | 3 - testsuite/vm_boot_test/run_fast.sh | 3 + testsuite/vm_boot_test/run_full.sh | 3 + testsuite/vm_boot_test/variant.yaml | 22 -- testsuite/vm_boot_test/vm_boot_test.py | 120 +++++++++-- 20 files changed, 1057 insertions(+), 375 deletions(-) create mode 100755 scripts/ci_build_legacy.sh create mode 100755 scripts/vm_smoke_test_legacy create mode 100644 testsuite/.gitignore create mode 100644 testsuite/build_test/cibase.py create mode 100644 testsuite/build_test/cibuilder.py delete mode 100755 testsuite/build_test/run.sh create mode 100755 testsuite/build_test/run_fast.sh create mode 100755 testsuite/build_test/run_full.sh delete mode 100644 testsuite/build_test/variant.yaml delete mode 100755 testsuite/vm_boot_test/run.sh create mode 100755 testsuite/vm_boot_test/run_fast.sh create mode 100755 testsuite/vm_boot_test/run_full.sh delete mode 100644 testsuite/vm_boot_test/variant.yaml -- 2.25.1