Actually, if you compile with CREATE_DISTRIBS defined, it does define a
main() function and create sample distributions.
> -----Original Message-----
> From: pgsql-hackers-owner@postgresql.org [mailto:pgsql-hackers-
> owner@postgresql.org] On Behalf Of Dann Corbit
> Sent: Thursday, March 16, 2006 1:28 PM
> To: Tom Lane; Jonah H. Harris
> Cc: pgsql-hackers@postgresql.org; Jerry Sievers
> Subject: Re: [HACKERS] qsort, once again
>
> [snip]
> > So at least on randomized data, the swap_cnt thing is a serious
loser.
> > Need to run some tests on special-case inputs though. Anyone have a
> > test suite they like?
> >
> > regards, tom lane
>
> Here is a distribution maker that will create some torture tests for
> sorting programs.
>
> Lacks a main() function.