Add integration tests

Tests if repository json files conform to the json schema.
If all resources (images/icons/website URLs) they mention actually
exists.

And can also test writing images and the FAT modification code.
This commit is contained in:
Floris Bos 2022-11-19 23:49:43 +01:00
parent fce80b2a67
commit 05f1c4dbb5
11 changed files with 319 additions and 8 deletions

View file

@ -74,6 +74,9 @@ public:
/* Set custom repository */
Q_INVOKABLE void setCustomOsListUrl(const QUrl &url);
/* Set custom cache file */
void setCustomCacheFile(const QString &cacheFile, const QByteArray &sha256);
/* Utility function to open OS file dialog */
Q_INVOKABLE void openFileDialog();
@ -168,6 +171,7 @@ protected:
bool _verifyEnabled, _multipleFilesInZip, _cachingEnabled, _embeddedMode, _online;
QSettings _settings;
QMap<QString,QString> _translations;
bool _customCacheFile;
QTranslator *_trans;
#ifdef Q_OS_WIN
QWinTaskbarButton *_taskbarButton;