[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] tests: test sort,shuf with rngtest

From: Assaf Gordon
Subject: [PATCH] tests: test sort,shuf with rngtest
Date: Fri, 08 Mar 2013 16:28:46 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4


Regarding comment:

Pádraig Brady wrote, On 03/07/2013 06:26 PM:
> On 03/07/2013 07:32 PM, Assaf Gordon wrote:
>> The second attached patch is experimental - it tries to assess the
>> randomness of 'shuf' output by running it 1,000 times and checking
>> if the output is (very roughly) uniformly distributed. 
> Cool, I was considering testing with rngtest or something, so it'll
> be good to have something independent.
( )

Using rngtest is probably much more reliable than the independent test - 
attached are tests for sort and shuf with rngtest.
They are marked 'expensive' as they require an external program and they run 
each test 10 times.


Attachment: 0001-tests-test-sort-shuf-with-rngtest.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]