From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7008446828784910336 X-Received: by 2002:a5d:510b:: with SMTP id s11mr13013300wrt.79.1631898049022; Fri, 17 Sep 2021 10:00:49 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:2012:: with SMTP id g18ls322821wmg.1.canary-gmail; Fri, 17 Sep 2021 10:00:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxzs7R6r1N1YAcTcwtP1ei1Co0O66pzR1r0g1CA5Yk4G1BBYBS8suKiDzizxDmJQXl3Pu8 X-Received: by 2002:a7b:c316:: with SMTP id k22mr16483418wmj.56.1631898048110; Fri, 17 Sep 2021 10:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631898048; cv=none; d=google.com; s=arc-20160816; b=Gp0B/FDJf9/qTcHYEc21o8SD7u3lI9WeYvnodNs/Di+A3NRwwQ44yXm4Go3p4nC/4O 1Gf03VMLa7RPfxFxdh4N20HrRW1J4eQHCFeqoSdGaIbLvVXsBU7UyFQoEU36zyO82dO4 yDmh4dXiBJOFIDCCGai9+lnXBQzp7Pwo8JhYG3ZtbJ+xGKEr3aIByohkmueyOCPLwb2p q898sReiT9OvXl0K9nGs2Gyxpje762OvYCDs0dgTomfLryuHNGgZDeiQnbFPUxBgmZC0 2B5Sd/mJJoW0ABGvLwT5ZFIZYSjchdoObdiY89A1S/jI6ueqEU8lxAEFqQMVVeAQ2uXz HLlQ== 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=Zk/pdzOvIlv53IOeFeB4q+irweSXaBQE9F5bFJmMpfc=; b=0DcbhS4VoSP6qiKQx6z4hegxotSGocL6wKzMohF5vx+//yZZ0TA7mkS9cvZEEwc0D4 t+8hKZRoWS/a18ObsNl2Gcxi/PGhhxzPhNzGApQseCF4HpFX3W2eztUh8j2+k/n/5QyF fe2hEpqx55l/ful78tTMwQ8pcaa2vtVJWgDis3nOYDxDdgmmMapmuT9N7ps4Nfbe/Daj x4F/B3Aw8tcgIqrQdPVyvWC9WzfffVQElga0m4bVjdCoZcyaSOgYZM8rHjx8juftMI7P NXZzsBtkgv5EGQQ4hlDQQas1y1ZvdLCH9R32F9jEu8si8Blb47RX0ukfYMcrMpAgveLy cZ6A== 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 g202si203130wmg.1.2021.09.17.10.00.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Sep 2021 10:00:48 -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-240-58-214-37.mgts.dynamic.pppoe.byfly.by [37.214.58.240] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 18HH0iMw028039 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Sep 2021 19:00:45 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH v12 00/16] Update Avocado testsuite Date: Fri, 17 Sep 2021 20:00:17 +0300 Message-Id: <20210917170033.74797-1-amikan@ilbers.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: +r64Oz0+U+GG 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 by default now until an error occurs. --- Changes since v11: - Rebase on next. - Init environment in vm_smoke_test. Changes since v10: - Rebase on next. - Add DISTRO_APT_PREMIRRORS usage. - Remove avocado deb package install. - Set default runner. Changes since v9: - Rebase on next. - Fix avocado artifacts path. Changes since v8: - Remove duplication in logs. - Disable sysinfo plugin. - Show full errors in default mode. Changes since v7: - Remove code duplication. - Fix build_dir parsing. - Add missed protect files backup logic. Changes since v6: - Improve environment parsing. - Protect files backup logic. - Rebuild full log output option. - Protect ubuntu target with KFAIL. 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 (13): 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 gitlab-ci: Add debug flag vm_boot_test: Add automatic bitbake init build_test: Protect ubuntu target with KFAIL ci_build: Migrate to Avocado vm_smoke_test: Migrate to Avocado 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 | 5 +- scripts/ci_build.sh | 208 +++---------------- scripts/ci_build_legacy.sh | 275 +++++++++++++++++++++++++ scripts/vm_smoke_test | 120 +++-------- scripts/vm_smoke_test_legacy | 168 +++++++++++++++ testsuite/.gitignore | 1 + testsuite/README.md | 21 +- testsuite/build_test/build_test.py | 219 ++++++++++++++++++-- testsuite/build_test/cibase.py | 116 +++++++++++ testsuite/build_test/cibuilder.py | 132 ++++++++++++ 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 | 121 +++++++++-- 20 files changed, 1084 insertions(+), 391 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