From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 24 Oct 2025 15:22:43 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f183.google.com (mail-lj1-f183.google.com [209.85.208.183]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 59ODMfYT001875 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 24 Oct 2025 15:22:42 +0200 Received: by mail-lj1-f183.google.com with SMTP id 38308e7fff4ca-369b2d355d0sf18095091fa.3 for ; Fri, 24 Oct 2025 06:22:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1761312156; cv=pass; d=google.com; s=arc-20240605; b=k3edJcqYMY5mF6LugXpQMHCHjEbDe7ExlWejgR75oa/K2LsyanAqLUuWXdkjpPBqDZ J3ut9vpxqWQAasLwZC9G1ZWDhXxh2FzqB98jZZXK8Gs0PC417kkqEBmZlsuwioBTgINz jD1UCBsOKdpvQ7eVN2s/gjj8tohZY/bLh33KZrRc5U0dJ+yX+eEOarzcX4uJFH7NWHhs CEZsw5g4FbbQmkXOOPOYCR0nIXzyrmIQw4tYJBIOnbDGMa1Z8uzlg1e+qRxAOtZ3KKQ8 IM71verdGo7gySXmHdTHES7UhgBMDvaN8yBukBczNlyv9ikCjo8vQRtombwDIE8zlf8S VYXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=mHjZlaEKTkjqb4VqPfW0OdM0JLDrUkP1TU5n8yeT+Ew=; fh=hkw1vYZd7iMlHP0tO5AFUFR7HL1Ln2CKWxBhRCuBqUA=; b=Z+rLfQia+UGfcEKBbjoagBwjg2TZ0nQzAtQqDbOhXxq0SOgJ2bmYdYC+aByPN/S+vm h0K6T8ItdiynEGMS+sIUvb7CbaKMDI73Y4wrEnKMQcOiHLf35j4JpuloCtCXw6u9/0NJ E0ZSFgPnGlDdNPkpmCMISYAHhwDWyT7HvkJM4h+OFu9tkmn8VgBG0ebxgncXe1yXszWl oiAAAw/BEkU42KXkcOt8brkUlQzoUWaw1mwXhEigYH1iW7quM8QU9fhpSNQL4ddfwcv/ DFTLto0EO7X4zxeGNXYwQkRIYyJ93ZOKBv3QKy1SdviN05a9ZSCgjVafPTT3VrWMZeBj Ho1w==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=mFnjghn+; spf=pass (google.com: domain of fm-1212295-20251024132231a71d1c0613000207d1-6fvp3u@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-1212295-20251024132231a71d1c0613000207d1-6FvP3u@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1761312156; x=1761916956; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=mHjZlaEKTkjqb4VqPfW0OdM0JLDrUkP1TU5n8yeT+Ew=; b=rxlEzT+71L10ivJ4P8WHw+KFoHX7+wvpiF0Xd/97eSk5Cy+qNP/AiIieAkC8Z3rXkS eXzjLsI3yTJWE0B8N+mwd9Kf77e+XG2uIEuouSBqEvE541c6bw5QicJ3WxOgXUVEH4Nj sUW9ZcrjiURpYCEsWy/SRSpkhKVX2Ytopp1xzoc2/JyziGepW24DhoDdW9QaweE9k/Is +1Yl3DlZqxB0MtMFOFJBxxVr9ktpJGAQR8LkPyHBdCX91NONY3Pras3SvaPjS8aVUEQT mluEPGINXpuylmezZJTc+UzlO6DTkG/E6QIyyTLfTpvixe/ALa5PDro9eMVnJoubezcv hgmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761312156; x=1761916956; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=mHjZlaEKTkjqb4VqPfW0OdM0JLDrUkP1TU5n8yeT+Ew=; b=qjCt+EiO+EWfPJiKCGfQRiQqupZWKv65HaODpuLExSkqrGuCU8wYYUfa2fkE0wnNjn na0JpHS/zWNVdwpABEfcBEGBHDU4MNk9H6wqA/o7t+PquLTz/pvvz7kCHhEuF4kQda1/ 2l7HjFH/XmU6R63iE+qq6lTrhfr9QxE5i3RlSmVy3Kko589xJMHSaYM5F7Dy9DxAd3Fg dtvP8yuyQlQRTsRLrU6ikGKRJcJBEn59ag9tZ29NiIUxbO+VS6fa8PIP3IZ+CmEFNxaQ Iv8kXH4p4T9aWyPczFxFMpBRKw7o55tHbhCSUUj6de0IQBCpKOi+UGqvtVtlRZCQ7/iW f4AA== X-Forwarded-Encrypted: i=2; AJvYcCVFEPG+8mcbD3t3vPWXPRSBerhzB0pPWyXYAoTFztWa9vR33aRGu6nAvPdT0lF9NHVyoi4+@ilbers.de X-Gm-Message-State: AOJu0Ywx5kWBK51ceBb/IclGEhOMgDatMMDCm9ltgyPgdbWQCKBIam70 pBBALsG25uNbx3Qowl5fjADhWLfBWxf73+wn1amWTmxw4WuStvY7+5l4 X-Google-Smtp-Source: AGHT+IFJQGJsMOpU7LWQLcuojQK/1NvdJtj3hhHrn38QzHZDFbvUgJ8GO1KFNoe9ZUlQT0o8fdoLuA== X-Received: by 2002:a2e:bc22:0:b0:378:d690:5d9b with SMTP id 38308e7fff4ca-378e4432790mr8040381fa.14.1761312155989; Fri, 24 Oct 2025 06:22:35 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="Ae8XA+bPBSheIECiq318Z9CbPw9Vy2022C4afRk4AZ2ickZjEg==" Received: by 2002:a2e:95cf:0:b0:337:f40b:d07a with SMTP id 38308e7fff4ca-378d635e3ecls3785261fa.0.-pod-prod-03-eu; Fri, 24 Oct 2025 06:22:32 -0700 (PDT) X-Received: by 2002:a2e:be9b:0:b0:36b:d9d2:734c with SMTP id 38308e7fff4ca-378e440d085mr8391771fa.8.1761312152512; Fri, 24 Oct 2025 06:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1761312152; cv=none; d=google.com; s=arc-20240605; b=VC0xhGVG7zR9v17DETfpLCEmBkozx8njJKF6d6RevuSrTBhtUYT0Nsw6pvqDCk58xA IJF93vxT5PNKp5qPLHlAsnYVP/4Iv2pTvb8IgmzeypBejeM6riPvtXLj5BZbjUIldf1D nBz2fjnGIEA4RwaFSVCwKIPioJFFRo2eeyvtsAdHCLY4cstysNIBF0nyQw0fyTFCRsJq oXq7FEEa2RDx6yGxUYtvTFVQSoo+4y37eyEMKMAurwki11ZbnbDRZfiP45GaZ4ium86C Utw/PrXPJwppyMxN4mNSQz6uBO/S2LxDlzpap3xjI/lYJcnuGF/lcirkdAto1YfJR2K/ M2LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:message-id:date :subject:cc:to:from:dkim-signature; bh=IDY3bPwjybug4PTz4qFrH3NSG3gIzhg/sEkRRZ0885g=; fh=1z37pEVhqwMLlkT4FDzOga7XBsM6Rzv6sXOq0pipxqo=; b=jnRdPUAi7i0/ir3uvbOu8y0f7pTzJ8AjeeAsdYzjeATnbErQQEZmkRcnbS2/1b/Uva ksq87dhS5E3IQNvPXDXQKAh0WSQEXmNu31JVuIC5GaOypk4uL2zQadnptolBKYuFtnNY YcV+vDuu+kP79hAo8bTdkWdbOjZMxwqXm3QEpcpGdc/LyqBv71sgfzwAzPJJ7Swu3IBa CCVfxy4ScZS4bNQWjtxj2mJ/E33dBo+xF6ZUYCE43W+JPOCCWrmB9yseC7N5b5npwn1/ 5BlNxD872zUsWZCWwwxcB0z5dBTpzd7Hych0Ijdng98kY88Vkc0vg0N4a9hm+EQXQZqs sHHw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=mFnjghn+; spf=pass (google.com: domain of fm-1212295-20251024132231a71d1c0613000207d1-6fvp3u@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-1212295-20251024132231a71d1c0613000207d1-6FvP3u@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net. [185.136.64.227]) by gmr-mx.google.com with ESMTPS id 38308e7fff4ca-378d67da1d1si862331fa.8.2025.10.24.06.22.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Oct 2025 06:22:32 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-1212295-20251024132231a71d1c0613000207d1-6fvp3u@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) client-ip=185.136.64.227; Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 20251024132231a71d1c0613000207d1 for ; Fri, 24 Oct 2025 15:22:31 +0200 From: "'Cedric Hombourger' via isar-users" To: isar-users@googlegroups.com Cc: Cedric Hombourger Subject: [PATCH] test: provide ci_shell as a convienence wrapper Date: Fri, 24 Oct 2025 15:21:46 +0200 Message-ID: <20251024132204.3476198-1-cedric.hombourger@siemens.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1212295:519-21489:flowmailer X-Original-Sender: cedric.hombourger@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=mFnjghn+; spf=pass (google.com: domain of fm-1212295-20251024132231a71d1c0613000207d1-6fvp3u@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-1212295-20251024132231a71d1c0613000207d1-6FvP3u@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Cedric Hombourger Reply-To: Cedric Hombourger Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS 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: US7+iQWukKa6 Ease use of the container environment that may be used to run tests from this project by adding a `scripts/ci_shell` script to invoke `kas-container` for you. The script uses a simple kas fragment (`kas/ci-shell.yml`) to use your existing copy of the Isar code checkout: this makes it easier to test your work-in-progress changes. Lastly, `ci_setup.sh` will produce less output (e.g. when installing dependencies) and will print a few hints to remind users with useful commands. Signed-off-by: Cedric Hombourger --- CONTRIBUTING.md | 52 +++++++++++---------------------------------- kas/ci-shell.yml | 19 +++++++++++++++++ scripts/ci_setup.sh | 32 +++++++++++++++++++++++----- scripts/ci_shell | 12 +++++++++++ 4 files changed, 70 insertions(+), 45 deletions(-) create mode 100644 kas/ci-shell.yml create mode 100755 scripts/ci_shell diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 07621232..6970477b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -81,54 +81,26 @@ Plan merges to `master` so that both fit the two-week w= indow; short extensions s by launching CI tests scripts. The procedure is described below: =20 ``` - git clone https://github.com/siemens/kas - cat > kas.yml </dev/null } =20 +echo "=F0=9F=94=8D Checking dependencies..." tools=3D"avocado qemu-system-aarch64 qemu-system-arm qemu-system-i386 qemu= -system-x86_64" need_install=3D0 for tool in ${tools}; do which "${tool}" || need_install=3D1 done [ "${need_install}" =3D "0" ] || { - sudo apt-get update - sudo apt-get install -y avocado qemu-system-arm qemu-system-x86 + echo "=E2=8F=B3 Installing missing dependencies..." + ( + sudo apt-get update + sudo apt-get install -y avocado qemu-system-arm qemu-system-x86 + ) >/dev/null } =20 -exec /container-entrypoint ${*} +( + cat <<' EOF' + alias tlist=3D"avocado list" + alias trun=3D"avocado run" + cd /work/testsuite + EOF +) | sudo tee -a /etc/profile.d/ci.sh >/dev/null + +cat <<'EOF' + +=F0=9F=92=A1 Use "tlist citest.py" to list existing test cases +=F0=9F=92=A1 Use "trun citest.py:TestClass.test_method" to run a specific = test +=F0=9F=92=A1 Use "trun -p sstate=3D1 citest.py" to enable sstate + +=E2=9C=85 Test environment ready for use! + +EOF + +exec /container-entrypoint bash -l diff --git a/scripts/ci_shell b/scripts/ci_shell new file mode 100755 index 00000000..308bb9fd --- /dev/null +++ b/scripts/ci_shell @@ -0,0 +1,12 @@ +#!/bin/bash +# A simple wrapper to run a container to run CI tests +# +# Cedric Hombourger +# Copyright (c) Siemens AG, 2025 +# SPDX-License-Identifier: MIT + +self=3D${0} +topdir=3D$(readlink -f $(dirname ${self})/..) + +cd ${topdir} +kas/kas-container shell --command /work/scripts/ci_setup.sh kas/ci-shell.y= ml --=20 2.47.3 --=20 You received this message because you are subscribed to the Google Groups "= isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/= 20251024132204.3476198-1-cedric.hombourger%40siemens.com.