This is an archive of the discontinued LLVM Phabricator instance.

[lit] Add callback support for modifying test script
AbandonedPublic

Authored by ddcc on Feb 7 2017, 2:09 PM.

Details

Summary

Adds a callback field to TestConfig, and a "ShTest" callback in TestRunner to allow direct manipulation of command-line arguments.

This mechanism is proposed to be used by the Clang static analyzer in D28952 for checking if an additional constraint solver backend is available, and
if so, executing each test automatically with each constraint solver backend, without adding additional lines to each testcase.