This is an archive of the discontinued LLVM Phabricator instance.

[lit] Run unit tests as part of lit test suite
ClosedPublic

Authored by modocache on Oct 9 2016, 2:23 PM.

Details

Summary

The Python file utils/lit/lit/ShUtil.py contains:

  1. Logic used by lit itself
  2. A set of unit tests for that logic, which can be run by invoking python utils/lit/lit/ShUtil.py

Move these unit tests to a tests/unit subdirectory of lit, and run
the tests as part of lit's test suite. This ensures that, should the
lit test suite be included in LLVM's own regression test suite, these
unit tests will also be run.

(Instructions on how to run lit's test suite can be found in
utils/lit/README.txt.)

Event Timeline

modocache updated this revision to Diff 74082.Oct 9 2016, 2:23 PM
modocache retitled this revision from to [lit] Run unit tests as part of lit test suite.
modocache updated this object.
modocache added a subscriber: llvm-commits.
beanz accepted this revision.Oct 11 2016, 10:44 AM
beanz edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Oct 11 2016, 10:44 AM
modocache closed this revision.Oct 11 2016, 8:44 PM