* Build-time tests?
@ 2019-05-08 19:30 Joe Lawrence
2019-05-12 12:23 ` Masahiro Yamada
0 siblings, 1 reply; 2+ messages in thread
From: Joe Lawrence @ 2019-05-08 19:30 UTC (permalink / raw)
To: linux-kselftest, linux-kbuild; +Cc: Joe Lawrence
Hello kbuild, kselftest,
I've been working on a patchset which adds an additional build script to
the toolchain when compiling livepatches. There are a few kernel
section features in which this script does not yet support, but can
detect and abort when it encounters. To test this detection, I've
written a small set of kernel modules that require such sections.
A few questions:
Is build-testing out of scope for kernel selftests? For expediency,
it was really easy to spin out new lib/livepatch kernel modules.
Does kbuild support the notion of expected failure? In this case, the
build script returns a non-zero error and the build stops.
Am I trying to fit a square peg in a round hole? I could easily keep
these build tests in a private branch, but could they exist in a
different format somewhere else in the tree?
Suggestions welcome,
-- Joe
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Build-time tests?
2019-05-08 19:30 Build-time tests? Joe Lawrence
@ 2019-05-12 12:23 ` Masahiro Yamada
0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2019-05-12 12:23 UTC (permalink / raw)
To: Joe Lawrence
Cc: open list:KERNEL SELFTEST FRAMEWORK, Linux Kbuild mailing list
On Thu, May 9, 2019 at 4:30 AM Joe Lawrence <joe.lawrence@redhat.com> wrote:
>
> Hello kbuild, kselftest,
>
> I've been working on a patchset which adds an additional build script to
> the toolchain when compiling livepatches. There are a few kernel
> section features in which this script does not yet support, but can
> detect and abort when it encounters. To test this detection, I've
> written a small set of kernel modules that require such sections.
>
> A few questions:
>
> Is build-testing out of scope for kernel selftests? For expediency,
> it was really easy to spin out new lib/livepatch kernel modules.
>
> Does kbuild support the notion of expected failure? In this case, the
> build script returns a non-zero error and the build stops.
If I understood correctly, your are asking about kselftest,
maintained by Shuah Khan.
(Unfortunately), makefiles under tools/ adopted completely
different build system, and it is out of scope of kbuild.
> Am I trying to fit a square peg in a round hole? I could easily keep
> these build tests in a private branch, but could they exist in a
> different format somewhere else in the tree?
>
> Suggestions welcome,
>
> -- Joe
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-12 12:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-08 19:30 Build-time tests? Joe Lawrence
2019-05-12 12:23 ` Masahiro Yamada
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox