tests: Remove outdated qt4 manual test and rename qt5 automated test

qt5 framework test now also tests qt4, and will test qt6 if/when it
comes out.
pull/1010/head
Nirbheek Chauhan 8 years ago
parent 19a06d9033
commit 14c5e17b0a
  1. 20
      manual tests/6 qt4/main.cpp
  2. 41
      manual tests/6 qt4/meson.build
  3. 10
      manual tests/6 qt4/q4core.cpp
  4. 7
      manual tests/6 qt4/stuff.qrc
  5. 0
      test cases/frameworks/4 qt/main.cpp
  6. 0
      test cases/frameworks/4 qt/mainWindow.cpp
  7. 0
      test cases/frameworks/4 qt/mainWindow.h
  8. 0
      test cases/frameworks/4 qt/mainWindow.ui
  9. 0
      test cases/frameworks/4 qt/manualinclude.cpp
  10. 0
      test cases/frameworks/4 qt/manualinclude.h
  11. 0
      test cases/frameworks/4 qt/meson.build
  12. 0
      test cases/frameworks/4 qt/q5core.cpp
  13. 0
      test cases/frameworks/4 qt/stuff.qrc
  14. 0
      test cases/frameworks/4 qt/stuff2.qrc
  15. 0
      test cases/frameworks/4 qt/thing.png
  16. 0
      test cases/frameworks/4 qt/thing2.png
  17. 8
      test cases/frameworks/4 qt5/mainWindow.cpp
  18. 20
      test cases/frameworks/4 qt5/mainWindow.h
  19. 34
      test cases/frameworks/4 qt5/mainWindow.ui
  20. 20
      test cases/frameworks/4 qt5/manualinclude.cpp
  21. 16
      test cases/frameworks/4 qt5/manualinclude.h
  22. BIN
      test cases/frameworks/4 qt5/thing.png
  23. BIN
      test cases/frameworks/4 qt5/thing2.png

@ -1,20 +0,0 @@
#include <QApplication>
#include "mainWindow.h"
int main(int argc, char **argv) {
QApplication app(argc, argv);
MainWindow *win = new MainWindow();
QImage qi(":/thing.png");
if(qi.width() != 640) {
return 1;
}
QImage qi2(":/thing2.png");
if(qi2.width() != 640) {
return 1;
}
win->setWindowTitle("Meson Qt4 build test");
win->show();
return app.exec();
return 0;
}

@ -1,41 +0,0 @@
project('qt4 build test', 'cpp')
# This is a manual test rather than an automatic one
# because during Debian package builds only Qt4 or Qt5
# can be active.
qt4 = import('qt4')
qt4dep = dependency('qt4', modules : 'Gui')
prep = qt4.preprocess(moc_headers : ['mainWindow.h'], # These need to be fed through the moc tool before use.
ui_files : 'mainWindow.ui', # XML files that need to be compiled with the uic tol.
qresources : 'stuff.qrc', # Resource file for rcc compiler.
)
q5exe = executable('qt4app',
sources : ['main.cpp', 'mainWindow.cpp', # Sources that don't need preprocessing.
prep],
dependencies : qt4dep)
# We need a console test application because some test environments
# do not have an X server.
qt4core = dependency('qt4', modules : 'Core')
qt4coreapp = executable('q4core', 'q4core.cpp',
dependencies : qt4core)
test('qt4test', qt4coreapp)
# The build system needs to include the cpp files from
# headers but the user must manually include moc
# files from sources.
manpreprocessed = qt4.preprocess(
moc_sources : 'manualinclude.cpp',
moc_headers : 'manualinclude.h')
q4maninclude = executable('q4maninclude',
sources : ['manualinclude.cpp', manpreprocessed],
dependencies : qt4core)
test('q4maninclude', q4maninclude)

@ -1,10 +0,0 @@
#include <QCoreApplication>
int main(int argc, char **argv) {
QCoreApplication app(argc, argv);
// Don't actually start the main loop so this
// can be run as a unit test.
//return app.exec();
return 0;
}

@ -1,7 +0,0 @@
<!DOCTYPE RCC>
<RCC version="1.0">
<qresource>
<file>thing.png</file>
<file>thing2.png</file>
</qresource>
</RCC>

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

@ -1,8 +0,0 @@
#include "mainWindow.h"
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) {
setupUi(this);
}
MainWindow::~MainWindow() {
}

@ -1,20 +0,0 @@
#ifndef MES_MAINWINDOW
#define MES_MAINWINDOW
#include <QObject>
#include <QMainWindow>
#include "ui_mainWindow.h"
class NotificationModel;
class MainWindow : public QMainWindow, private Ui_MainWindow {
Q_OBJECT
public:
explicit MainWindow(QWidget *parent=0);
~MainWindow();
private:
};
#endif

@ -1,34 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>270</width>
<height>115</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>241</width>
<height>91</height>
</rect>
</property>
<property name="text">
<string>I am a button</string>
</property>
</widget>
</widget>
</widget>
<resources/>
<connections/>
</ui>

@ -1,20 +0,0 @@
#include"manualinclude.h"
#include<QCoreApplication>
#include<QObject>
ManualInclude::ManualInclude() {
}
class MocClass : public QObject {
Q_OBJECT
};
int main(int argc, char **argv) {
ManualInclude mi;
MocClass mc;
return 0;
}
#include"manualinclude.moc"

@ -1,16 +0,0 @@
#ifndef MANUALINCLUDE_H_
#define MANUALINCLUDE_H_
#include<QObject>
class ManualInclude : public QObject {
Q_OBJECT
public:
ManualInclude();
signals:
int mysignal();
};
#endif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Loading…
Cancel
Save