From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7192322883099557888 X-Received: by 2002:a25:dc46:0:b0:862:c0e3:375 with SMTP id y67-20020a25dc46000000b00862c0e30375mr256039ybe.316.1675399474453; Thu, 02 Feb 2023 20:44:34 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a25:bfc8:0:b0:80f:54e:d6f1 with SMTP id q8-20020a25bfc8000000b0080f054ed6f1ls2354086ybm.0.-pod-prod-gmail; Thu, 02 Feb 2023 20:44:33 -0800 (PST) X-Google-Smtp-Source: AK7set/ZxPdrEbPcS1LSVl2StMKAhStqXWBUUxrWO1L1WdktxHZ6vmC0G9Gb00RN+VXNaEbn+P+Q X-Received: by 2002:a25:7646:0:b0:80b:838a:5068 with SMTP id r67-20020a257646000000b0080b838a5068mr7023678ybc.18.1675399473777; Thu, 02 Feb 2023 20:44:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675399473; cv=none; d=google.com; s=arc-20160816; b=lC45HVSmGb/eyZqtWJVXS28y2wHUqSm6/SbD8sGt7uP0WLCHLny8DG3DmIKTjwE5HV Y//ztk30Y+WY5bzJBaMIjtWySPDVNZTL0CaCp1Q5wdmPHvRdwflWqjPKho1sBrYbPVH+ /1GQU+AYG85HhKnOHM4zxnmkMiHrHmc0NhUhZZVBYvkDPoMRNiB3nvzClt9ppA478lbZ DJV0Lc2oN1jJOZHYV7v+aOGvHa3gRHIFJhYJJywr0NoVffPvoS0X/vlno1ZOcBj+4G6G WAWSu3sUsvlh1oXuP3G5L1ApRwwoCZC4OnVMJvF8tQ8aGkompNvTYpGITa9je7Rt4ber HcHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=miYplDqrM6bHkqYCDU1KedbYTVllFUFKv4GdHAg6H84=; b=ZIE49FgZt3/Ck5Su7r9sQp66okgh1TYmNzog3Q3tlWrurl3Y1F51E3uJsJc9hx53k6 bkBhjPL5zcHAlfQuDs0RMFI/JzzTx2kSDZ3yQ3x2Ksayb+aon/3qGUOKNmFXcW3y6b/I QN7FQ8fOHRC5rQ0g9td59yWAshj1pjdjYSqoTKFROUav58+onbCkVl0CA4rgGd8DeQ7S DJ9BygfZMqRHyuNBqcRuIMh17CXnXKBM+LD8iba1kJiqP7O6/5HaHKFYE82/Xcj9u0s6 qchFRedgQ85nXrU0QMp6hU73VsDiD9/hphq6A4mPRSCWoPeoG6Xm2TViBfpkjyjFdbtj fhhQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id a185-20020a251ac2000000b0085ac1bb6a0fsi148880yba.2.2023.02.02.20.44.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Feb 2023 20:44:33 -0800 (PST) Received-SPF: pass (google.com: domain of ubely@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 ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from baighyz.m.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 3134iRm9023918 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 3 Feb 2023 05:44:32 +0100 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v3 15/15] CI: Add single target test case Date: Fri, 3 Feb 2023 05:44:26 +0100 Message-Id: <20230203044427.32711-16-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230203044427.32711-1-ubely@ilbers.de> References: <20230203044427.32711-1-ubely@ilbers.de> 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: Il9cmZk8bl8N From: Anton Mikanovich Add special test case for single target build and run testing. Signed-off-by: Anton Mikanovich --- testsuite/README.md | 6 ++++++ testsuite/citest.py | 22 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/testsuite/README.md b/testsuite/README.md index 90ba5c3d..4f2a8da8 100644 --- a/testsuite/README.md +++ b/testsuite/README.md @@ -18,6 +18,12 @@ $ pip install avocado-framework==99.0 $ avocado run ../testsuite/citest.py -t dev --nrunner-max-parallel-tasks=1 ``` +## Single target test + +``` +$ avocado run ../testsuite/citest.py -t single --nrunner-max-parallel-tasks=1 -p machine=qemuamd64 -p distro=bullseye +``` + ## Fast build test ``` diff --git a/testsuite/citest.py b/testsuite/citest.py index cdbede05..975cb064 100755 --- a/testsuite/citest.py +++ b/testsuite/citest.py @@ -309,6 +309,28 @@ class SstateTest(CIBaseTest): self.init('build-sstate') self.perform_sstate_test(image_target, package_target) +class SingleTest(CIBaseTest): + + """ + Single test for selected target + + :avocado: tags=single + """ + def test_single_build(self): + self.init() + machine = self.params.get('machine', default='qemuamd64') + distro = self.params.get('distro', default='bullseye') + image = self.params.get('image', default='isar-image-base') + + self.perform_build_test('mc:%s-%s:%s' % (machine, distro, image)) + + def test_single_run(self): + self.init() + machine = self.params.get('machine', default='qemuamd64') + distro = self.params.get('distro', default='bullseye') + + self.vm_start(machine.removeprefix('qemu'), distro) + class VmBootTestFast(CIBaseTest): """ -- 2.20.1