This is an archive of the discontinued LLVM Phabricator instance.

lit: allow glob patterns as path arguments
AbandonedPublic

Authored by arichardson on May 17 2017, 3:37 AM.

Details

Summary

This means ./bin/llvm-lit tools/clang/test/CodeGen/*attr* will now
run all the tests inside clang/test/CodeGen that contain attr in the name
instead of lit returning with an error

Event Timeline

arichardson created this revision.May 17 2017, 3:37 AM

It looks good, but I wonder if you weren't satisfied with "bin/llvm-lit path/to/src/clang/test/*attr* ... (I usually use it)

The last time I tried using a glob on the source directory it did not work for me for some reason. It works now so maybe I was using llvm-lit from the wrong build directory.
However, I still think this patch is useful because it means I don't have to type the full path to the source directory.

ddunbar edited edge metadata.Oct 12 2017, 8:29 AM

What is the motivation for using this, over using the --filter option? I have found --filter to be substantially more general and it is easier for us to support, so my preference would be to move it to be the standard way of solving this problem.

arichardson abandoned this revision.Oct 1 2020, 2:53 AM

Not particularly useful.

Herald added a project: Restricted Project. · View Herald TranscriptOct 1 2020, 2:53 AM
Herald added a subscriber: delcypher. · View Herald Transcript