[LLVMdev] [Patch] Adding unit tests to LLVM

Talin viridia at gmail.com
Mon Dec 29 14:13:19 PST 2008


OK, sounds good. I'll start work on that.
On Mon, Dec 29, 2008 at 1:57 PM, Misha Brukman <brukman at gmail.com> wrote:

> 2008/12/29 Talin <viridia at gmail.com>
>
>> Do the existing tests use a wildcard rule to gather all test sources? We
>> would need to insure that the wildcard rule for the unit tests and the large
>> tests are mutually exclusive.
>>
>
> By "large tests", I assume you mean the .ll tests?  Those are
> one-file-per-test.  Also, if you use Chris' suggestion on directories, it
> will separate the unit tests from the large tests.
>
>
>> Also, will the unit tests be one executable or many? They will probably
>> compile/run faster if there is a smaller number of executables.
>>
>
> Yes, I agree, they'll link faster if we have fewer tests.  I would not want
> a single massive test for all of LLVM -- how about 1 test binary per major
> directory in llvm/lib, unless it's really necessary to split them up, e.g.
> target-dependent unittests, but each .cpp file would ideally have its own
> _test.cpp file, so it's easier to keep the tests for different modules
> separate.
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>


-- 
-- Talin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081229/08045edc/attachment.html>


More information about the llvm-dev mailing list