[llvm] r289648 - [AVR] Add the very first on-target test

James Molloy via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 14 12:56:42 PST 2016


Hi Dylan,

> Do we have anything formal thing about this?

Yes. It's well understood that the only thing LIT tests are allowed to rely
on are tools built during the compilation process. That means no emulators,
so no execution tests. The ethos of the LIT tests are checking compilation,
textually, fast.

For on-target tests, we have the test-suite (see the UnitTests
subdirectory).

Cheers,

James

On Wed, 14 Dec 2016 at 20:48 Dylan McKay via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> > This test will fail as soon as anyone builds the AVR back-end without
> access to AVR hardware.
>
> I added a config file that ignored the tests if AVR was not built? On top
> of that, the tests were only supposed to run if 'AVRLIT_BOARD' and
> 'AVRLIT_PORT' is set. Clearly it didn't work properly (due to my
> inexperience with Python)
>
> If I were to fix that, it wouldn't stop the tests from breaking if AVR was
> made non-experimental?
>
> > do not add *any* execution tests to the LLVM tree
>
> Do we have anything formal thing about this? I'd like to have a
> conversation about it. I agree it isn't something we really do currently,
> but I believe there is real value in adding these tests in tree.
>
> > Reverted in r289651
>
> Thanks for that!
>
>
>
> On Thu, Dec 15, 2016 at 2:35 AM, Renato Golin <renato.golin at linaro.org>
> wrote:
>
> On 14 December 2016 at 13:32, Renato Golin <renato.golin at linaro.org>
> wrote:
> > Hi Dylan,
> >
> > This test will fail as soon as anyone builds the AVR back-end without
> > access to AVR hardware.
> >
> > It's also guaranteed to fail whenever the AVR back-end moves out of
> > experimental (when everyone will build it by default).
> >
> > Please, revert this patch and do not add *any* execution tests to the
> LLVM tree.
>
> Oh well, it seems I was being optimistic. It breaks now because no one
> else has the AVRLIT_PORT.
>
>
> http://lab.llvm.org:8011/builders/clang-cmake-aarch64-42vma/builds/2086/steps/ninja%20check%201/logs/stdio
>
> Reverted in r289651.
>
> cheers,
> --renato
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161214/be4fa511/attachment.html>


More information about the llvm-commits mailing list