From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5123 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Missing tests Date: Wed, 14 May 2014 16:30:46 +0200 Message-ID: <20140514143046.GU12324@port70.net> References: <20140514130530.GA6999@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1400077866 11231 80.91.229.3 (14 May 2014 14:31:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 May 2014 14:31:06 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5128-gllmg-musl=m.gmane.org@lists.openwall.com Wed May 14 16:31:01 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WkaCz-0004Yp-2k for gllmg-musl@plane.gmane.org; Wed, 14 May 2014 16:31:01 +0200 Original-Received: (qmail 13581 invoked by uid 550); 14 May 2014 14:30:59 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 13572 invoked from network); 14 May 2014 14:30:59 -0000 Content-Disposition: inline In-Reply-To: <20140514130530.GA6999@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:5123 Archived-At: * Rich Felker [2014-05-14 09:05:30 -0400]: > Here are some things that don't seem to be tested that would be nice > to get added to the test suite (http://nsz.repo.hu/git/?p=libc-test) > > - Interpretation of POSIX TZ strings > - Daylight time transition tests with zoneinfo and POSIX zones > - Lots of corner cases for strftime and strptime > - Regression test for recent pthread_once race (hard to catch) > - Sanity-checking ucontext_t layout via signal handlers > - Alternate signal stacks i have a (regression) test for sigaltstack > - Basic sanity checks for most syscalls this can be tricky > 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) linux specific tests should be separate too 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)