Linux Kernel Selftest development
 help / color / mirror / Atom feed
* Purpose of gen_tar
@ 2023-10-24 18:21 Marcos Paulo de Souza
  2023-10-24 18:34 ` Bird, Tim
  0 siblings, 1 reply; 3+ messages in thread
From: Marcos Paulo de Souza @ 2023-10-24 18:21 UTC (permalink / raw)
  To: linux-kselftest; +Cc: mbenes

Hi,

while testing a new patch on the livepatch kselftests, I was testing the gen_tar
target and I figured that we only copy the resulting binaries to the final tar
file.

Per the kselftests documentation[1], the gen_tar target is used to package the
tests to run "on different systems". But what if the different system has
different libraries/library versions? Wouldn't it be a problem?

This question came when I was working to build the livepatch modules as part of
the kselftests testing suit. The plan was to just package the test
scripts/programs/modules and then run the tests on a different system, likewise
a different SLE version. Since the kernel would be different in this case, I
expected that gen_tar would copy the module source files so they can be compiled
on the target system.

While the current approach can work when the selftests rely solely on shell scripts(cpufreq, kexec),
those who compile userspace binaries (cgroup, alsa, sched, ...) may not work.

Am I missing something? Is gen_tar only meant to copy the tests to be run on
systems with the same libraries or with the libraries with the exactly the same
version?

Thanks in advance,
  Marcos

[1]: https://www.kernel.org/doc/html/latest/dev-tools/kselftest.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-25 22:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-24 18:21 Purpose of gen_tar Marcos Paulo de Souza
2023-10-24 18:34 ` Bird, Tim
2023-10-25 22:57   ` Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox