forked from llvm/llvm-test-suite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
litsupport: Rework test module support
- Moved modules to litsupport.modules - Import all modules on startup - Only apply modules in config.test_modules to a benchmark. This allows to modify the module list per-directory in `lit.local.cfg`. llvm-svn: 314239
- Loading branch information
Showing
15 changed files
with
57 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import importlib | ||
import logging | ||
import pkgutil | ||
|
||
# Load all modules | ||
modules = dict() | ||
for importer, modname, ispkg in pkgutil.walk_packages(path=__path__, | ||
prefix=__name__+'.'): | ||
module = importlib.import_module(modname) | ||
if not hasattr(module, 'mutatePlan'): | ||
logging.error('Skipping %s: No mutatePlan function' % modname) | ||
continue | ||
assert modname.startswith('litsupport.modules.') | ||
shortname = modname[len('litsupport.modules.'):] | ||
modules[shortname] = module | ||
logging.info("Loaded test module %s" % module.__file__) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters