Bug 15665 - consider adding xfstests-dev
Summary: consider adding xfstests-dev
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2023.05
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-25 07:11 UTC by stsp
Modified: 2023-06-27 20:02 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stsp 2023-06-25 07:11:59 UTC
https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git

These tests are used for CI-testing
of linux kernel at kernel.org.
Any changes to fs/* require updating
these tests.
Would it be possible to add this as
a package? It would really help to use
buildroot as a platform for making
kernel patches.
Comment 1 Yann E. MORIN 2023-06-25 07:59:23 UTC
stsp, all,

> Would it be possible to add [xfstests-dev] as a package?

Yes, please feel free to send a patch adding it. See the manual:
    https://buildroot.org/downloads/manual/manual.html#adding-packages

Regards,
Yann E. MORIN.
Comment 2 stsp 2023-06-27 07:52:09 UTC
These tests use mkfs command.
which seems not provided under
buildroot. I have individual
mkfs.<fsname> commands, but the
mkfs frontend is missing.
How to "fix" that?
Comment 3 Andreas Ziegler 2023-06-27 12:02:41 UTC
Activate System tools -> util-linux -> basic set: 

config BR2_PACKAGE_UTIL_LINUX_BINARIES
	bool "basic set"
	  ...
	help
	  Install the basic set of util-linux binaries.

	  blkdiscard, blkid, blockdev, chcpu, choom, col, colcrt, colrm,
	  column, ctrlaltdel, dmesg, fdisk, fincore, findfs, findmnt,
	  flock, fsfreeze, fstrim, getopt, hexdump, ipcmk, isosize,
	  ldattach, look, lsblk, lscpu, lsipc, lslocks, lsns, mcookie,
	  mkfs, mkswap, namei, prlimit, readprofile, renice, rev,
	  rtcwake, script, scriptlive, scriptreplay, setarch, setsid,
	  sfdisk, swaplabel, swapoff, swapon, uuidgen, uuidparse,
	  whereis, wipefs
	  ...
Comment 4 stsp 2023-06-27 15:04:24 UTC
Thanks!
I had to do util-linux-dirclean first,
for this to take an effect, but it worked.
Comment 5 stsp 2023-06-27 15:27:44 UTC
Is there a similar trick to enable
native readlink? busybox's readlink
is not suitable.
Comment 6 Yann E. MORIN 2023-06-27 17:49:25 UTC
stsp, All,

> Is there a similar trick to enable native readlink?

readlink is from coreutils.

Since this report is about adding a new package, I'm closing it. Discussion
about development of new features is to be had on the mailing list.

Regards,
Yann E. MORIN.
Comment 7 stsp 2023-06-27 17:53:51 UTC
But isn't working out the dependencies
is a fundamental part of adding the package?
I was asking about readlink and mkfs
exactly because xfstests-dev uses them and
is unsatisfied with the ones from busybox.
Comment 8 Yann E. MORIN 2023-06-27 20:02:38 UTC
stsp, All,

> But isn't working out the dependencies is a fundamental part of adding
> the package?

Yes, but discussion about adding a new package, and about the issues while
doing so, are to be discussed on the mailing list, not in the bug tracker.

Regards,
Yann E. MORIN.