The merge from story/release-validation-scope only carried files that existed at the common base or on that branch. In-scope files added on story/release-2-cleanup after the base (per-module unit-test dirs, the Release 2 driver and rpmbuild script) were missing, breaking ADD_SUBDIRECTORY(unit-test) references. - Restore the 33 missing in-scope files from story/release-2-cleanup. - Lts/Common/CMakeLists.txt and LtsUtilsGui/CMakeLists.txt: take the story/release-2-cleanup versions (the validation versions still reference out-of-scope subdirectories: httq, LtsRestClient, LtsWebSocket, ConnectDialog, StyleManager).
32 lines
666 B
C++
32 lines
666 B
C++
/**
|
|
* @RDE_HEADER@
|
|
* Helper probe for the LtsCommandLineParser unit test: runs init() with the
|
|
* real command line (QTest's main cannot forward CLI options) and reports
|
|
* the resulting domain id.
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#include <QtCore/QCoreApplication>
|
|
|
|
#include <LtsCommandLineParser/LtsCommandLineParser.h>
|
|
|
|
#include <cstdio>
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
QCoreApplication app(argc, argv);
|
|
|
|
LtsCommandLineParser::LtsCommandLineParser parser;
|
|
parser.setUnitModuleTestMode(true);
|
|
if (!parser.init(false))
|
|
{
|
|
std::printf("INIT_FAIL\n");
|
|
return 1;
|
|
}
|
|
|
|
std::printf("DOMAINID=%d\n", parser.domainId());
|
|
return 0;
|
|
}
|