mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: Missing tests
Date: Tue, 20 May 2014 15:49:03 -0400	[thread overview]
Message-ID: <20140520194903.GZ507@brightrain.aerifal.cx> (raw)
In-Reply-To: <20140514143046.GU12324@port70.net>

On Wed, May 14, 2014 at 04:30:46PM +0200, Szabolcs Nagy wrote:
> > It might make sense to make a new tree separate from functional for
> > tests that don't really check the functionality of the interface but
> > just whether it's present and "doing something". Some existing tests
> > might be candidates for moving there too..?
> 
> the code organization is not optimal
> 
> we can add a directory for trivial tests
> 
> the difficult part is when the test needs special environment
> (eg syscall sanity checks or getaddrinfo): users/groups,
> root-priv, fs-access, /etc/ changes,...
> we can collect them in separate dirs and run only
> when in a completely isolated environment (eg qemu)

For getaddrinfo, I want a way to override the config via an
environment variable or similar, but I'm not sure what the right way
to do it would be. If we come up with a working solution, then the
tests could provide a fake DNS, and even do things like generate
malformed responses, to test the resolver.

Some of the others might be possible to test with user
namespaces/containers without needing root, but that would need to be
an option since it doesn't work on non-Linux or old-Linux systems.

> linux specific tests should be separate too

And musl-specific ones, if we have any (ones which test for behaviors
that musl documents but which are not required by the standards, like
AS-safety of snprintf, dprintf, etc.).

> another todo item is to improve cross compilation
> (running cross compiled tests does not really work
> now because it is done from make)
> (the dso tests are a bit broken too because they use
> relative path so only work when started from a specific
> dir, maybe such test should be started from an .sh script)

Yes, it would be nice if running the tests could be separated from
building them, but without sacrificing the declarative makefile which
is ideal for native testing.

Rich


      reply	other threads:[~2014-05-20 19:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-14 13:05 Rich Felker
2014-05-14 14:30 ` Szabolcs Nagy
2014-05-20 19:49   ` Rich Felker [this message]

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=20140520194903.GZ507@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).