From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/215 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: test framework Date: Fri, 29 Jul 2011 15:18:39 +0200 Message-ID: <20110729131839.GI29562@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1311945538 15862 80.91.229.12 (29 Jul 2011 13:18:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2011 13:18:58 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-299-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jul 29 15:18:52 2011 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Qmmxo-00056l-Gs for gllmg-musl@lo.gmane.org; Fri, 29 Jul 2011 15:18:52 +0200 Original-Received: (qmail 30256 invoked by uid 550); 29 Jul 2011 13:18:51 -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 30248 invoked from network); 29 Jul 2011 13:18:51 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Xref: news.gmane.org gmane.linux.lib.musl.general:215 Archived-At: now that cluts has many tests i was started to think how to put these into a framework so it's easy to add new tests imho it is a tiny bit more convenient than just writing functions which return nonzero on error i also added benchmarking support now (some tests and benchmarks were added from libc-testsuit and libc-bench) http://repo.or.cz/w/musl-test.git the idea of iterative benchmarking until elapsed time is large enough is from the go testing package, i'm not sure if this is the right approach (for the malloc benchmarks it is not) (makefile is uglier than it should be because i still haven't fixed my musl-gcc) finally: i added short int and int division benchmarks to verify a discussion on irc :) comments are welome