tst_selftests: add a way to run a subset of all subprograms
This functionality was lost when we switched to Catch2. Change-Id: I2b24e1d3cad44897906efffd177fb4cff641546f Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>bb10
parent
f1ba2b9f44
commit
763592b238
|
|
@ -1191,6 +1191,8 @@ TEST_CASE("All loggers can be enabled at the same time")
|
|||
SCENARIO("Test output of the loggers is as expected")
|
||||
{
|
||||
static QStringList tests = QString(QT_STRINGIFY(SUBPROGRAMS)).split(' ');
|
||||
if (QString override = qEnvironmentVariable("TST_SELFTEST_SUBPROGRAMS"); !override.isEmpty())
|
||||
tests = override.split(' ', Qt::SkipEmptyParts);
|
||||
|
||||
auto logger = GENERATE(filter(isGenericCommandLineLogger, enums<QTestLog::LogMode>()));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue