This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer] Run libFuzzer unit tests only on host architecture.
ClosedPublic

Authored by george.karpenkov on May 23 2018, 2:55 PM.

Details

Summary

LIT tests are used to test other cross-compiled architectures,

unit tests are only run on the host.
NFC now as currently only a single architecture is supported.

Diff Detail

Event Timeline

What happens without this change? Do we get failing tests on other architectures, or does the build fail?

vitalybuka accepted this revision.May 24 2018, 2:18 PM
This revision is now accepted and ready to land.May 24 2018, 2:18 PM

What happens without this change?

IIRC that's how it is for all sanitizers.
I'm not sure about the "hard" reason, but I can see a few soft ones:

  • There's no supporting machinery for running those on devices
  • Unit tests are allowed to have dependencies which do not necessarily compile on the device
  • Integration tests are more suitable for testing multi-arch support

IIRC that's how it is for all sanitizers.

I've meant that unit tests run only on the host for all sanitizers.

morehouse accepted this revision.May 24 2018, 3:08 PM
This revision was automatically updated to reflect the committed changes.
Herald added subscribers: Restricted Project, llvm-commits. · View Herald TranscriptMay 24 2018, 5:00 PM