Merge pull request #14930 from NissimHadar/fixCMake

Case 21241: Fix CMake problem for ubuntu build of nitpick
This commit is contained in:
Sam Gateau 2019-02-15 11:23:58 -08:00 committed by GitHub
commit 5e9eeccb95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 23 additions and 7 deletions

View file

@ -20,7 +20,7 @@ endfunction()
if (BUILD_TOOLS)
# Allow different tools for stable builds
if (STABLE_BUILD)
if (RELEASE_TYPE STREQUAL "PRODUCTION")
set(ALL_TOOLS
udt-test
vhacd-util

View file

@ -40,7 +40,11 @@ Nitpick::Nitpick(QWidget* parent) : QMainWindow(parent) {
_ui.plainTextEdit->setReadOnly(true);
setWindowTitle("Nitpick - v2.1.2");
setWindowTitle("Nitpick - v3.0.0");
clientProfiles << "VR-High" << "Desktop-High" << "Desktop-Low" << "Mobile-Touch" << "VR-Standalone";
_ui.clientProfileComboBox->insertItems(0, clientProfiles);
}
Nitpick::~Nitpick() {
@ -157,7 +161,7 @@ void Nitpick::on_createAllRecursiveScriptsPushbutton_clicked() {
}
void Nitpick::on_createTestsPushbutton_clicked() {
_test->createTests();
_test->createTests(_ui.clientProfileComboBox->currentText());
}
void Nitpick::on_createMDFilePushbutton_clicked() {

View file

@ -126,6 +126,8 @@ private:
bool _isRunningFromCommandline{ false };
void* _caller;
QStringList clientProfiles;
};
#endif // hifi_Nitpick_h

View file

@ -391,7 +391,7 @@ void Test::includeTest(QTextStream& textStream, const QString& testPathname) {
textStream << "Script.include(testsRootPath + \"" << partialPathWithoutTests + "\");" << endl;
}
void Test::createTests() {
void Test::createTests(const QString& clientProfile) {
// Rename files sequentially, as ExpectedResult_00000.png, ExpectedResult_00001.png and so on
// Any existing expected result images will be deleted
QString previousSelection = _snapshotDirectory;

View file

@ -52,7 +52,7 @@ public:
void finishTestsEvaluation();
void createTests();
void createTests(const QString& clientProfile);
void createTestsOutline();

View file

@ -52,8 +52,8 @@
<widget class="QPushButton" name="createTestsPushbutton">
<property name="geometry">
<rect>
<x>210</x>
<y>60</y>
<x>70</x>
<y>40</y>
<width>220</width>
<height>40</height>
</rect>
@ -153,6 +153,16 @@
<string>Create all testAuto scripts</string>
</property>
</widget>
<widget class="QComboBox" name="clientProfileComboBox">
<property name="geometry">
<rect>
<x>320</x>
<y>40</y>
<width>120</width>
<height>40</height>
</rect>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_4">
<attribute name="title">