[PATCH macros] Add a test suite

Dan Nicholson dbn.lists at gmail.com
Wed Apr 14 08:31:26 PDT 2010


On Tue, Apr 13, 2010 at 11:56 AM, Yaakov (Cygwin/X)
<yselkowitz at users.sourceforge.net> wrote:
> On 2010-04-13 13:46, Gaetan Nadon wrote:
>>
>> Have you had a look at Automake Test Suite support? (I haven't yet)
>>
>> http://www.gnu.org/software/automake/manual/automake.html#index-g_t_0040code_007bmkdir-_002dp_007d_002c-macro-check-325
>>
>> It looks like there could be some benefits from the pre-defined "check"
>> primary variable prefix.
>
> Do you mean:
>
> dist_check_SCRIPTS = test/runtest
> TESTS = $(dist_check_SCRIPTS)
>
> You still need two lines, one to run the test and one to dist the script.  I
> think TESTS and EXTRA_DIST is a slightly better combination, only because
> EXTRA_DIST may be used for other files in the future. Otherwise I see no
> difference.

The advantage of putting it under check_SCRIPTS is that it will
definitely get distributed as executable. I'm not sure if it will
otherwise.

--
Dan


More information about the xorg-devel mailing list