From: Alexandru Elisei <alexandru.elisei@arm.com>
To: Jon Kohler <jon@nutanix.com>
Cc: Andrew Jones <andrew.jones@linux.dev>,
Thomas Huth <thuth@redhat.com>,
Nicholas Piggin <npiggin@gmail.com>,
Eric Auger <eric.auger@redhat.com>,
Nina Schoetterl-Glausch <nsg@linux.ibm.com>,
kvm@vger.kernel.org
Subject: Re: [kvm-unit-tests PATCH] Makefile: add portable mode
Date: Mon, 13 Jan 2025 13:07:53 +0000 [thread overview]
Message-ID: <Z4UQKTLWpVs5RNbA@arm.com> (raw)
In-Reply-To: <20250105175723.2887586-1-jon@nutanix.com>
Hi,
On Sun, Jan 05, 2025 at 10:57:23AM -0700, Jon Kohler wrote:
> Add a 'portable' mode that packages all relevant flat files and helper
> scripts into a tarball named 'kut-portable.tar.gz'.
>
> This mode is useful for compiling tests on one machine and running them
> on another without needing to clone the entire repository. It allows
> the runner scripts and unit test configurations to remain local to the
> machine under test.
Have you tried make standalone? You can then copy the tests directory, or even a
particular test.
Thanks,
Alex
>
> Signed-off-by: Jon Kohler <jon@nutanix.com>
>
> ---
> .gitignore | 2 ++
> Makefile | 17 +++++++++++++++++
> 2 files changed, 19 insertions(+)
>
> diff --git a/.gitignore b/.gitignore
> index 2168e013..643220f8 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -18,6 +18,8 @@ cscope.*
> /lib/config.h
> /config.mak
> /*-run
> +/kut-portable
> +kut-portable.tar.gz
> /msr.out
> /tests
> /build-head
> diff --git a/Makefile b/Makefile
> index 7471f728..c6333c1a 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -125,6 +125,23 @@ all: directories $(shell (cd $(SRCDIR) && git rev-parse --verify --short=8 HEAD)
> standalone: all
> @scripts/mkstandalone.sh
>
> +portable: all
> + rm -f kut-portable.tar.gz
> + rm -rf kut-portable
> + mkdir -p kut-portable/scripts/s390x
> + mkdir -p kut-portable/$(TEST_DIR)
> + cp build-head kut-portable
> + cp errata.txt kut-portable
> + cp config.mak kut-portable
> + sed -i '/^ERRATATXT/cERRATATXT=errata.txt' kut-portable/config.mak
> + cp run_tests.sh kut-portable
> + cp -r scripts/* kut-portable/scripts
> + cp $(TEST_DIR)-run kut-portable
> + cp $(TEST_DIR)/*.flat kut-portable/$(TEST_DIR)
> + cp $(TEST_DIR)/unittests.cfg kut-portable/$(TEST_DIR)
> + cp $(TEST_DIR)/run kut-portable/$(TEST_DIR)
> + tar -czf kut-portable.tar.gz kut-portable
> +
> install: standalone
> mkdir -p $(DESTDIR)
> install tests/* $(DESTDIR)
> --
> 2.43.0
>
>
next prev parent reply other threads:[~2025-01-13 13:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-05 17:57 [kvm-unit-tests PATCH] Makefile: add portable mode Jon Kohler
2025-01-13 13:07 ` Alexandru Elisei [this message]
2025-01-13 14:49 ` Jon Kohler
2025-01-13 15:36 ` Andrew Jones
2025-01-13 20:53 ` Jon Kohler
2025-01-14 9:20 ` Andrew Jones
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=Z4UQKTLWpVs5RNbA@arm.com \
--to=alexandru.elisei@arm.com \
--cc=andrew.jones@linux.dev \
--cc=eric.auger@redhat.com \
--cc=jon@nutanix.com \
--cc=kvm@vger.kernel.org \
--cc=npiggin@gmail.com \
--cc=nsg@linux.ibm.com \
--cc=thuth@redhat.com \
/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