From: Konrad Rzeszutek Wilk <konrad@kernel.org>
To: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: xen-devel@lists.xenproject.org, Marcos.Matsunaga@oracle.com
Subject: Re: [PATCH v1 3/7] ts-xen-build: Install livepatch regressions tests. [and 1 more messages]
Date: Mon, 21 Nov 2016 16:28:48 -0500 [thread overview]
Message-ID: <20161121212846.GA126025@osstest.dumpdata.com> (raw)
In-Reply-To: <22573.39231.91977.537159@mariner.uk.xensource.com>
On Thu, Nov 17, 2016 at 11:49:19AM +0000, Ian Jackson wrote:
> Konrad Rzeszutek Wilk writes ("[PATCH v1 3/7] ts-xen-build: Install livepatch regressions tests."):
> > That come with the Xen git tree (see xen/test/).
>
> I think this and the "build them" patch should be combined.
>
> > + buildcmd_stamped_logged(600, 'xen', 'tests-install', '',<<END,'') if $dokconfig;
>
> Can you keep the lines down to 75 characters or less please ?
>
> > + if test -d xen/test; then
> > + mkdir -p dist/install/usr/lib/debug
> > + livepatch_files=`find xen/test/livepatch -name '*.livepatch' -print`
> > + cp \$livepatch_files dist/install/usr/lib/debug
>
> Should this not be in the xen.git Makefiles ?
Jan didn't like it (as part of the normal 'install' stanza).
I could add it in xen/test/Makefile, but I had a hard time executing
anything inside 'xen' sub-directories by themselves, aka:
make -C xen/test install
As the 'xen/test/livepatch/Makefile' does:
include $(XEN_ROOT)/Config.mk
(and other) and the XEN_ROOT is not available unless you run it from
within 'xen' directory.
Which means I would have to add a new top-level target, such as:
make -C xen test_install
or such. But then it is not exactly sure where one would install
the "tests"? /usr/lib/debug? /usr/lib/xen/debug/ ?
I figured it would be easier if it was left unimplemented and folks
just copied the files out of there.
>
> Also, the result of this is that the tests end up in the tools output
> because you haven't fixed `divide'. Background: each osstest
> invocation of ts-xen-build produces two primary deliverables: `' and
> `xen' aka `dist' and `xendist'.
>
> I think, but I'm not sure, that these patches contain hypervisor code
> and should be in `xendist'.
In the cover letter you mentioned that it may be good to have an
xenlptdist.tar.gz which would only contain the livepatch test-cases.
And then we could use the existence of that file as a check for
the hypervisor having the support?
If I squash this patch in this one:
diff --git a/ts-xen-build b/ts-xen-build
index 1b36b9c..1137947 100755
--- a/ts-xen-build
+++ b/ts-xen-build
@@ -170,11 +170,11 @@ END
$make_prefix make -C xen tests
fi
END
- buildcmd_stamped_logged(600, 'xen', 'tests-install', '',<<END,'') if $dokconfig;
+ buildcmd_stamped_logged(600, 'xen', 'xenlpt-install', '',<<END,'') if $dokconfig;
if test -d xen/test; then
- mkdir -p dist/install/usr/lib/debug
+ mkdir -p dist/xenlptinstall/usr/lib/debug
livepatch_files=`find xen/test/livepatch -name '*.livepatch' -print`
- cp \$livepatch_files dist/install/usr/lib/debug
+ cp \$livepatch_files dist/xenlptinstall/usr/lib/debug
fi
END
}
It should in theory (testing it now) do the right thing. Now just need
to figure out how to gate the execution of ts-livepatch on the existence
of that file (in a non-hackish way).
>
> Thanks,
> Ian.
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-11-21 18:19 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-17 1:37 [PATCH v1] OSSTest test-harness for livepatches Konrad Rzeszutek Wilk
2016-11-17 1:37 ` [PATCH v1 1/7] ts-xen-build: Enable livepatch Konrad Rzeszutek Wilk
2016-11-17 11:45 ` Ian Jackson
2016-11-17 1:37 ` [PATCH v1 2/7] ts-xen-build: Build the livepatch test-cases Konrad Rzeszutek Wilk
2016-11-17 1:37 ` [PATCH v1 3/7] ts-xen-build: Install livepatch regressions tests Konrad Rzeszutek Wilk
2016-11-17 11:49 ` [PATCH v1 3/7] ts-xen-build: Install livepatch regressions tests. [and 1 more messages] Ian Jackson
2016-11-21 21:28 ` Konrad Rzeszutek Wilk [this message]
2016-12-12 16:12 ` Ian Jackson
2016-11-17 1:37 ` [PATCH v1 4/7] OssTest: Add target_cmd_root_rc which returns return code Konrad Rzeszutek Wilk
2016-11-17 11:53 ` Ian Jackson
2016-11-17 1:37 ` [PATCH v1 5/7] ts-livepatch: Initial test-cases Konrad Rzeszutek Wilk
2016-11-17 12:21 ` Ian Jackson
2016-11-21 22:47 ` Konrad Rzeszutek Wilk
2016-12-12 16:17 ` Ian Jackson
2016-11-17 1:37 ` [PATCH v1 6/7] sg-run-job: Add the test-livepatch Konrad Rzeszutek Wilk
2016-11-17 12:23 ` Ian Jackson
2016-11-17 1:37 ` [PATCH v1 7/7] make-flight/mfi-common: Add them in the matrix Konrad Rzeszutek Wilk
2016-11-17 12:24 ` Ian Jackson
2016-12-12 19:01 ` Konrad Rzeszutek Wilk
2016-12-12 16:19 ` Ian Jackson
2016-11-17 12:28 ` [PATCH v1] OSSTest test-harness for livepatches Ian Jackson
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=20161121212846.GA126025@osstest.dumpdata.com \
--to=konrad@kernel.org \
--cc=Marcos.Matsunaga@oracle.com \
--cc=ian.jackson@eu.citrix.com \
--cc=xen-devel@lists.xenproject.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).