On Sun, May 19, 2013 at 10:58 PM, Stephen Kelly <[email protected]> wrote:
> Dmitri Gribenko wrote:
>
>> Please take a look at how test/Driver/linux-header-search.cpp uses
>> test/Driver/Inputs/ubuntu_13.04_multiarch_tree.
>>
>
> Thanks, I made some guesses at how the testsuite works, but I didn't (find
> out how to) run it.
These regression tests (testsuite is a different thing in LLVM/Clang)
can be run by 'make check-all' from the build dir.
> I did compare the output and try to match it to the test though. I guess the
> test will fail unless the test machines have the right package installed. Is
> there some way the test should be made conditional on that?
Regression tests should be independent of the machine and OS. That's
why we have mocks for sysroots to test driver logic -- for example,
test/Driver/Inputs/ubuntu_13.04_multiarch_tree.
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <[email protected]>*/
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits