From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2DC318E361 for ; Mon, 13 Jan 2025 13:08:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736773683; cv=none; b=DP0dC6UBRWJ/XXYYnBhKeeHC0UktePvlFZYNyKcbRo2rGlgP1dlJYS7sfjeeN9UvClXrdfvDMin1JgCddU4YXcJdDOWwBCu3CuDvdlT94jdL39adQ5o0DrwvPAvPrgMW40/mm50eaIEHg/oesQGRrdTw5UGLEo4c14qtiE0lBWQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736773683; c=relaxed/simple; bh=R66NVMPghcnfZJx+J08oBtWuzclSmaBa4x6v2qtHMLo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eQPleykmrCGSZnZasomyMNvJiZZw/cF7Lro18W6pahKLUWYUnP1Bb6tzehh626J82s78+Z9rQKYqTsZ48QMphNCUGDmNpd+Q8+MLtFhCbdp7wSroAH/312B2KOivsq2KpX6QmdkkJvvQDJoBPCE5YouHenEwWXGJpV086fCsUuw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2854F12FC; Mon, 13 Jan 2025 05:08:28 -0800 (PST) Received: from arm.com (unknown [10.57.5.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D4AEF3F673; Mon, 13 Jan 2025 05:07:57 -0800 (PST) Date: Mon, 13 Jan 2025 13:07:53 +0000 From: Alexandru Elisei To: Jon Kohler Cc: Andrew Jones , Thomas Huth , Nicholas Piggin , Eric Auger , Nina Schoetterl-Glausch , kvm@vger.kernel.org Subject: Re: [kvm-unit-tests PATCH] Makefile: add portable mode Message-ID: References: <20250105175723.2887586-1-jon@nutanix.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 > > --- > .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 > >