Skip to content

Commit

Permalink
Try fixing test for KF6
Browse files Browse the repository at this point in the history
  • Loading branch information
alex1701c committed Oct 12, 2024
1 parent 9616c44 commit cccb43f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ jobs:
run: |
cd build
if [[ "${{ matrix.plasma_version }}" == "plasma6" ]]; then
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_QT6=ON
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_WITH_QT6=ON
else
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_QT6=OFF
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_WITH_QT6=OFF
fi
cmake --build .
cmake --install .
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ sudo apt install git cmake extra-cmake-modules build-essential libkf6runner-dev

Plasma5:
```bash install-opensuse-plasma5
sudo zypper install git cmake extra-cmake-modules ki18n-devel krunner-devel kcmutils-devel kio-devel kservice-devel kdbusaddons-tools
sudo zypper install git cmake extra-cmake-modules ki18n-devel krunner-devel kcmutils-devel kio-devel kservice-devel kdbusaddons-tools libQt5Test-devel
```
Plasma6:
```bash install-opensuse-plasma6
Expand Down
6 changes: 6 additions & 0 deletions autotests/jetbrainsrunnerintegrationtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <QDir>
#include <QStandardPaths>
#include <QTest>
#include <kservice_version.h>

using namespace KRunner;

Expand All @@ -15,6 +16,11 @@ private Q_SLOTS:
{
using QSP = QStandardPaths;
QSP::setTestModeEnabled(true);
#if KSERVICE_VERSION_MAJOR == 6
KSycoca::self()->setupTestMenu();
qWarning() << "Set up test menu";
#endif

const QString dataLocation = QSP::writableLocation(QStandardPaths::ApplicationsLocation);
QDir(dataLocation).removeRecursively();
const QString configLocation = QSP::writableLocation(QStandardPaths::GenericConfigLocation) + "/JetBrains/PhpStorm2022.2/options/";
Expand Down

0 comments on commit cccb43f

Please sign in to comment.