All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 00/11] add runtime test for mpd
@ 2026-07-09 11:08 Andreas Ziegler
  2026-07-09 11:08 ` [Buildroot] [PATCH v2 01/11] package/mpd: install provided sample configuration file as mpd.conf Andreas Ziegler
                   ` (11 more replies)
  0 siblings, 12 replies; 18+ messages in thread
From: Andreas Ziegler @ 2026-07-09 11:08 UTC (permalink / raw)
  To: buildroot; +Cc: Marcus Hoffmann, Andreas Ziegler

Testing MPD in a real world situation is fairly straightforward: build,
deploy, play some music. Representing this simple test within a test
framework is quite complex.

I tried to break down my simple test case into a few atomic steps that
interact with MPD via the built-in protocol. The necessary test data was
generated with ffmpeg and imagemagick and is royalty-free :-D

In good old usenet tradition, test data had to be split in archive
chunks, to overcome the limitations of the mailing list. The data will
be re-combined in a post-build script. 

Working on this also triggered some changes in the Buildroot setup:

The configuration file supplied by Buildroot is only a sample; it will not
start MPD on a default installation. Usually a custom mpd.conf is supplied
in a rootfs overlay. Drop the Buildroot configuration file and install the
sample supplied by MPD instead, it is more complete, contains useful
examples and is update regularly.

After various updates since version 0.20, most dependencies placing
restrictions on sub-components are now superseded by restrictions placed on
MPD itself. Example: io_uring needs kernel headers > 5.1; MPD needs kernel
headers > 5.6. Remove dependencies from sub-options if they are already
imposed on MPD. 

MPD has 99 configurable options; of these, 44 are exposed in Buildroot's
Config.in. Sort order and grouping of these options are different within
the MPD project and Buildroot, which makes a comparison difficult.
Reorder entries in Config.in to reflect their order in meson_options.txt.
Also update at least some of the help texts to more closely resemble what
is published in the MPD manual.

Changes v1 -> v2:
	split test data in chunks to overcome mailing list restrictions

Andreas Ziegler (11):
  package/mpd: install provided sample configuration file as mpd.conf
  package/mpd: remove duplicated dependencies from sub-options
  package/mpd: reorder config items based on order in meson_options.txt
  support/testing: add test data for mpd
  support/testing: add test data for mpd
  support/testing: add test data for mpd
  support/testing: add test data for mpd
  support/testing: add test data for mpd
  support/testing: add test data for mpd
  support/testing: add runtime test for mpd
  DEVELOPERS: add entry for test_mpd

 DEVELOPERS                                    |   2 +
 package/mpd/Config.in                         | 364 +++++++++---------
 package/mpd/mpd.conf                          |  32 --
 package/mpd/mpd.mk                            |   2 +-
 support/testing/tests/package/test_mpd.py     |  57 +++
 .../tests/package/test_mpd/_test_data0        | Bin 0 -> 223630 bytes
 .../tests/package/test_mpd/_test_data1        | Bin 0 -> 223630 bytes
 .../tests/package/test_mpd/_test_data2        | Bin 0 -> 223630 bytes
 .../tests/package/test_mpd/_test_data3        | Bin 0 -> 223630 bytes
 .../tests/package/test_mpd/_test_data4        | Bin 0 -> 223630 bytes
 .../tests/package/test_mpd/_test_data5        | Bin 0 -> 223630 bytes
 .../tests/package/test_mpd/busybox.fragment   |   4 +
 .../tests/package/test_mpd/post-build.sh      |   6 +
 .../test_mpd/rootfs-overlay/etc/mpd.conf      |  14 +
 .../test_mpd/rootfs-overlay/root/test_mpd.sh  |  74 ++++
 15 files changed, 348 insertions(+), 207 deletions(-)
 delete mode 100644 package/mpd/mpd.conf
 create mode 100644 support/testing/tests/package/test_mpd.py
 create mode 100644 support/testing/tests/package/test_mpd/_test_data0
 create mode 100644 support/testing/tests/package/test_mpd/_test_data1
 create mode 100644 support/testing/tests/package/test_mpd/_test_data2
 create mode 100644 support/testing/tests/package/test_mpd/_test_data3
 create mode 100644 support/testing/tests/package/test_mpd/_test_data4
 create mode 100644 support/testing/tests/package/test_mpd/_test_data5
 create mode 100644 support/testing/tests/package/test_mpd/busybox.fragment
 create mode 100755 support/testing/tests/package/test_mpd/post-build.sh
 create mode 100644 support/testing/tests/package/test_mpd/rootfs-overlay/etc/mpd.conf
 create mode 100755 support/testing/tests/package/test_mpd/rootfs-overlay/root/test_mpd.sh

-- 
2.53.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2026-08-15 19:41 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-09 11:08 [Buildroot] [PATCH v2 00/11] add runtime test for mpd Andreas Ziegler
2026-07-09 11:08 ` [Buildroot] [PATCH v2 01/11] package/mpd: install provided sample configuration file as mpd.conf Andreas Ziegler
2026-08-15 17:08   ` Thomas Petazzoni via buildroot
2026-07-09 11:08 ` [Buildroot] [PATCH v2 02/11] package/mpd: remove duplicated dependencies from sub-options Andreas Ziegler
2026-08-15 19:37   ` Thomas Petazzoni via buildroot
2026-07-09 11:08 ` [Buildroot] [PATCH v2 03/11] package/mpd: reorder config items based on order in meson_options.txt Andreas Ziegler
2026-08-15 19:38   ` Thomas Petazzoni via buildroot
2026-07-09 11:08 ` [Buildroot] [PATCH v2 04/11] support/testing: add test data for mpd (1/6) Andreas Ziegler
2026-08-15 19:41   ` Thomas Petazzoni via buildroot
2026-07-09 11:08 ` [Buildroot] [PATCH v2 05/11] support/testing: add test data for mpd (2/6) Andreas Ziegler
2026-07-09 11:08 ` [Buildroot] [PATCH v2 06/11] support/testing: add test data for mpd (3/6) Andreas Ziegler
2026-07-09 11:08 ` [Buildroot] [PATCH v2 07/11] support/testing: add test data for mpd (4/6) Andreas Ziegler
2026-07-09 11:08 ` [Buildroot] [PATCH v2 08/11] support/testing: add test data for mpd (5/6) Andreas Ziegler
2026-07-09 11:08 ` [Buildroot] [PATCH v2 09/11] support/testing: add test data for mpd (6/6) Andreas Ziegler
2026-07-09 11:08 ` [Buildroot] [PATCH v2 10/11] support/testing: add runtime test for mpd Andreas Ziegler
2026-07-09 11:08 ` [Buildroot] [PATCH v2 11/11] DEVELOPERS: add entry for test_mpd Andreas Ziegler
2026-07-11 10:24 ` [Buildroot] [PATCH v2 00/11] add runtime test for mpd Fiona Klute via buildroot
2026-07-12  2:54   ` Andreas Ziegler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.