[PATCH] Search for gcc in the gcc-cross directory.

Dmitri Gribenko gribozavr at gmail.com
Sun May 19 13:07:19 PDT 2013


On Sun, May 19, 2013 at 10:58 PM, Stephen Kelly <steveire at gmail.com> 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 <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list