[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 |
Hello,
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.
( http://lists.gnu.org/archive/html/coreutils/2013-03/msg00030.html )
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.
-gordon
0001-tests-test-sort-shuf-with-rngtest.patch
Description: Text Data
- [PATCH] tests: test sort,shuf with rngtest,
Assaf Gordon <=