All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Jaroslav Kysela <perex@perex.cz>
Cc: ALSA development <alsa-devel@alsa-project.org>,
	Jimmy Cheng-Yi Chiang <cychiang@google.com>,
	Takashi Iwai <tiwai@suse.de>,
	Brian Norris <briannorris@chromium.org>,
	Curtis Malainey <cujomalainey@google.com>,
	Liam Girdwood <liam.r.girdwood@intel.com>,
	Jesse Barnes <jsbarnes@google.com>,
	Pierre-Louis Bossart <pierre-louis.bossart@intel.com>
Subject: Re: [PATCH v2] [RFC] selftests: alsa - add PCM test
Date: Mon, 28 Nov 2022 19:55:41 +0000	[thread overview]
Message-ID: <Y4USPRrDqIfu50hh@sirena.org.uk> (raw)
In-Reply-To: <20221108115914.3751090-1-perex@perex.cz>

[-- Attachment #1: Type: text/plain, Size: 1420 bytes --]

On Tue, Nov 08, 2022 at 12:59:14PM +0100, Jaroslav Kysela wrote:

> --- a/tools/testing/selftests/alsa/Makefile
> +++ b/tools/testing/selftests/alsa/Makefile
> @@ -7,6 +7,8 @@ ifeq ($(LDLIBS),)
>  LDLIBS += -lasound
>  endif
>  
> -TEST_GEN_PROGS := mixer-test
> +TEST_GEN_PROGS := mixer-test pcm-test
> +
> +pcm-test: pcm-test.c conf.c
>  
>  include ../lib.mk

This breaks out of tree kselftest builds - if you specify an output
directory with O= (as all the main automated test systems do) then any
target specific rules need to prepend $(OUTPUT)/ to specify the right
location for the output (this also works fine with in tree builds, a
default OUTPUT is generated).  Unfortunately looking at this just now
simply fixing that is causing only pcm-test to be built and not the
existing mixer-test, and explicitly specifying commands for mixer-test
causes that to be built and not pcm-test even explicitly asking to build
"all" as the target for reasons I'm not yet clear on.

You can see an example failure in:

   https://storage.kernelci.org/next/master/next-20221128/arm64/defconfig/gcc-10/logs/kselftest.log

The whole kselftest build setup is rather fragile and frustrating to
work with unfortunately, especially with tests built from multiple
objects.  The only fix I've come up with thus far is to inline conf.c
into pcm-test.c (a #include will do the trick) which isn't great.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  parent reply	other threads:[~2022-11-28 19:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-08 11:59 [PATCH v2] [RFC] selftests: alsa - add PCM test Jaroslav Kysela
2022-11-08 14:46 ` Mark Brown
2022-11-08 14:46   ` Mark Brown
2022-11-16 14:03 ` Takashi Iwai
2022-11-16 14:17   ` Jaroslav Kysela
2022-11-28 19:55 ` Mark Brown [this message]
2022-11-29  8:58   ` Jaroslav Kysela

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=Y4USPRrDqIfu50hh@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=briannorris@chromium.org \
    --cc=cujomalainey@google.com \
    --cc=cychiang@google.com \
    --cc=jsbarnes@google.com \
    --cc=liam.r.girdwood@intel.com \
    --cc=perex@perex.cz \
    --cc=pierre-louis.bossart@intel.com \
    --cc=tiwai@suse.de \
    /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 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.