From: Andrew Jones <drjones@redhat.com>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: kvm@vger.kernel.org, maz@kernel.org, qemu-arm@nongnu.org,
idan.horowitz@gmail.com, kvmarm@lists.cs.columbia.edu,
linux-arm-kernel@lists.infradead.org
Subject: Re: [kvm-unit-tests PATCH v8 04/10] run_tests.sh: add --config option for alt test set
Date: Wed, 24 Nov 2021 17:48:59 +0100 [thread overview]
Message-ID: <20211124164859.4enqimrptr3pfdkp@gator> (raw)
In-Reply-To: <20211118184650.661575-5-alex.bennee@linaro.org>
On Thu, Nov 18, 2021 at 06:46:44PM +0000, Alex Bennée wrote:
> The upcoming MTTCG tests don't need to be run for normal KVM unit
> tests so lets add the facility to have a custom set of tests.
I think an environment variable override would be better than this command
line override, because then we could also get mkstandalone to work with
the new unittests.cfg files. Or, it may be better to just add them to
the main unittests.cfg with lines like these
groups = nodefault mttcg
accel = tcg
That'll "dirty" the logs with SKIP ... (test marked as manual run only)
for each one, but at least we won't easily forget about running them from
time to time.
Thanks,
drew
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> run_tests.sh | 11 ++++++++---
> 1 file changed, 8 insertions(+), 3 deletions(-)
>
> diff --git a/run_tests.sh b/run_tests.sh
> index 9f233c5..b1088d2 100755
> --- a/run_tests.sh
> +++ b/run_tests.sh
> @@ -15,7 +15,7 @@ function usage()
> {
> cat <<EOF
>
> -Usage: $0 [-h] [-v] [-a] [-g group] [-j NUM-TASKS] [-t]
> +Usage: $0 [-h] [-v] [-a] [-g group] [-j NUM-TASKS] [-t] [-c CONFIG]
>
> -h, --help Output this help text
> -v, --verbose Enables verbose mode
> @@ -24,6 +24,7 @@ Usage: $0 [-h] [-v] [-a] [-g group] [-j NUM-TASKS] [-t]
> -g, --group Only execute tests in the given group
> -j, --parallel Execute tests in parallel
> -t, --tap13 Output test results in TAP format
> + -c, --config Override default unittests.cfg
>
> Set the environment variable QEMU=/path/to/qemu-system-ARCH to
> specify the appropriate qemu binary for ARCH-run.
> @@ -42,7 +43,7 @@ if [ $? -ne 4 ]; then
> fi
>
> only_tests=""
> -args=$(getopt -u -o ag:htj:v -l all,group:,help,tap13,parallel:,verbose -- $*)
> +args=$(getopt -u -o ag:htj:vc: -l all,group:,help,tap13,parallel:,verbose,config: -- $*)
> [ $? -ne 0 ] && exit 2;
> set -- $args;
> while [ $# -gt 0 ]; do
> @@ -73,6 +74,10 @@ while [ $# -gt 0 ]; do
> -t | --tap13)
> tap_output="yes"
> ;;
> + -c | --config)
> + shift
> + config=$1
> + ;;
> --)
> ;;
> *)
> @@ -152,7 +157,7 @@ function run_task()
>
> : ${unittest_log_dir:=logs}
> : ${unittest_run_queues:=1}
> -config=$TEST_DIR/unittests.cfg
> +: ${config:=$TEST_DIR/unittests.cfg}
>
> rm -rf $unittest_log_dir.old
> [ -d $unittest_log_dir ] && mv $unittest_log_dir $unittest_log_dir.old
> --
> 2.30.2
>
> _______________________________________________
> kvmarm mailing list
> kvmarm@lists.cs.columbia.edu
> https://lists.cs.columbia.edu/mailman/listinfo/kvmarm
next prev parent reply other threads:[~2021-11-24 16:49 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-18 18:46 [kvm-unit-tests PATCH v8 00/10] MTTCG sanity tests for ARM Alex Bennée
2021-11-18 18:46 ` [kvm-unit-tests PATCH v8 01/10] docs: mention checkpatch in the README Alex Bennée
2021-11-24 11:06 ` Andrew Jones
2021-11-24 11:08 ` Andrew Jones
2021-11-24 11:38 ` Alex Bennée
2021-11-18 18:46 ` [kvm-unit-tests PATCH v8 02/10] arm/flat.lds: don't drop debug during link Alex Bennée
2021-11-18 18:46 ` [kvm-unit-tests PATCH v8 03/10] Makefile: add GNU global tags support Alex Bennée
2021-11-18 18:46 ` [kvm-unit-tests PATCH v8 04/10] run_tests.sh: add --config option for alt test set Alex Bennée
2021-11-24 16:48 ` Andrew Jones [this message]
2021-12-01 16:20 ` Alex Bennée
2021-12-01 16:41 ` Andrew Jones
2021-12-01 17:07 ` Alex Bennée
2021-11-18 18:46 ` [kvm-unit-tests PATCH v8 05/10] lib: add isaac prng library from CCAN Alex Bennée
2021-11-18 18:46 ` [kvm-unit-tests PATCH v8 06/10] arm/tlbflush-code: TLB flush during code execution Alex Bennée
2021-11-18 18:46 ` [kvm-unit-tests PATCH v8 07/10] arm/locking-tests: add comprehensive locking test Alex Bennée
2021-11-18 18:46 ` [kvm-unit-tests PATCH v8 08/10] arm/barrier-litmus-tests: add simple mp and sal litmus tests Alex Bennée
2021-11-24 16:14 ` Andrew Jones
2021-11-18 18:46 ` [kvm-unit-tests PATCH v8 09/10] arm/run: use separate --accel form Alex Bennée
2021-11-18 18:46 ` [kvm-unit-tests PATCH v8 10/10] arm/tcg-test: some basic TCG exercising tests Alex Bennée
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211124164859.4enqimrptr3pfdkp@gator \
--to=drjones@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=idan.horowitz@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.cs.columbia.edu \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=maz@kernel.org \
--cc=qemu-arm@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).