mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Move docstring check from fatal-onstart-hack to unit test run by CI
This commit is contained in:
@@ -66,6 +66,35 @@ int main(int argc, char *argv[])
|
||||
|
||||
qInstallMessageHandler(sharedLogOutput);
|
||||
|
||||
#if !defined(RELEASE)
|
||||
for(int i = 0; i < argc; i++)
|
||||
{
|
||||
if(!QString::compare(QString::fromUtf8(argv[i]), lit("--unittest"), Qt::CaseInsensitive))
|
||||
{
|
||||
QCoreApplication app(argc, argv);
|
||||
PythonContext::GlobalInit();
|
||||
|
||||
bool errors = false;
|
||||
|
||||
qInfo() << "Checking python binding docstrings.";
|
||||
|
||||
{
|
||||
PythonContextHandle py;
|
||||
errors = py.ctx().CheckDocstrings();
|
||||
}
|
||||
|
||||
if(errors)
|
||||
{
|
||||
qCritical() << "Found errors in python binding docstrings. Please fix!";
|
||||
return 1;
|
||||
}
|
||||
|
||||
qInfo() << "Python binding docstrings are consistent.";
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
qInfo() << "QRenderDoc initialising.";
|
||||
|
||||
QString filename;
|
||||
|
||||
Reference in New Issue
Block a user