Merge pull request #1283 from jp2images/svg-icons-c
Linux build and tests / Build and test (Qt 6, Debug) (push) Failing after 1m39s

Finish the SVG icons and fix the icon licenses in ico/copyright (#1063, #1269)
This commit is contained in:
ispyisail
2026-10-04 11:45:07 +13:00
committed by GitHub
103 changed files with 985 additions and 620 deletions
+5 -10
View File
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <QtTest>
#include <QDir>
#include <QFile>
#include <QJsonDocument>
#include <QJsonObject>
@@ -27,14 +26,6 @@ class tst_importcategory : public QObject
{
const QString path = m_dir.filePath(QStringLiteral("probe.js"));
const QString home = m_dir.filePath(QStringLiteral("home"));
QDir().mkpath(home + QStringLiteral("/config/QElectroTech"));
//The shipped collection, so common:// paths resolve; forward
//slashes, as Qt reads a backslash here as an escape.
QFile conf(home + QStringLiteral("/config/QElectroTech/QElectroTech.conf"));
if (!conf.open(QIODevice::WriteOnly)) return {};
conf.write("[elements-collections]\ncommon-collection-path="
QET_ELEMENTS_DIR "\n");
conf.close();
QFile f(path);
if (!f.open(QIODevice::WriteOnly)) return {};
f.write(script.toUtf8());
@@ -49,8 +40,12 @@ class tst_importcategory : public QObject
env.insert(QStringLiteral("TMPDIR"), m_dir.path());
QProcess proc;
proc.setProcessEnvironment(env);
//The shipped collection, so common:// paths resolve. Given
//on the command line: macOS does not read a settings file
//under XDG_CONFIG_HOME.
proc.start(QStringLiteral(QET_TEST_BINARY_PATH),
{QStringLiteral("--run"), path, project});
{QStringLiteral("--common-elements-dir=" QET_ELEMENTS_DIR "/"),
QStringLiteral("--run"), path, project});
if (!proc.waitForFinished(120000)) return {};
const QString out = QString::fromUtf8(proc.readAllStandardOutput()
+ proc.readAllStandardError());