Compare commits

..

No commits in common. "f0c7f7d6bf04d3f6ba720cf48ccae8d6fda059c8" and "73f1617cbf03a63e6b68be27e27b197b35ede308" have entirely different histories.

7 changed files with 3 additions and 49 deletions

View File

@ -1,41 +0,0 @@
name: build & tests
on:
push:
branches: [ development, master ]
pull_request:
branches: [ development, master ]
env:
BUILD_TYPE: Release
jobs:
run-tests:
runs-on: ubuntu-latest
container:
image: archlinux:latest
volumes:
- ${{ github.workspace }}:/repo
options: -w /repo
steps:
- uses: actions/checkout@v3
- name: create build environment
run: pacman -Sy --noconfirm base-devel cmake extra-cmake-modules python util-linux-libs xorg-server-xvfb
- name: install dependencies
run: pacman -S --noconfirm plasma-workspace ksysguard
- name: configure cmake
run: cmake -B build -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_FUTURE=ON -DBUILD_TESTING=ON sources
- name: build
working-directory: /repo/build
run: make
- name: test
working-directory: /repo/build
run: xvfb-run -a make test

View File

@ -20,6 +20,7 @@
#include <KI18n/KLocalizedString>
#include <QDir>
#include <QSettings>
#include <QTextCodec>

View File

@ -303,9 +303,8 @@ DPAdds::DesktopWindowsInfo DPAdds::getInfoByDesktop(const int _desktop) const
// don't think it is possible to put desktop to desktop
info.desktopsData.append(data);
} else {
auto isHidden = model.data(TaskManager::AbstractTasksModel::IsHidden).toBool();
auto isMinimized = model.data(TaskManager::AbstractTasksModel::IsMinimized).toBool();
if (isHidden || isMinimized || !desktops.contains(desktop))
if (isMinimized || !desktops.contains(desktop))
continue;
info.windowsData.append(data);
}

View File

@ -73,7 +73,6 @@ foreach (TEST_MODULE ${TEST_MODULES})
endif (TEST_MODULE MATCHES "awbugreporter")
add_executable(${SUBPROJECT}-${TEST_MODULE} ${${TEST_MODULE}_HEADERS} ${${TEST_MODULE}_SOURCES})
target_link_libraries(${SUBPROJECT}-${TEST_MODULE} ${LIBRARY_TEST_SET})
set_target_properties(${SUBPROJECT}-${TEST_MODULE} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
if (NOT TEST_MODULE MATCHES "awbugreporter")
add_test(NAME ${TEST_MODULE} COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT}-${TEST_MODULE})
endif (NOT TEST_MODULE MATCHES "awbugreporter")

View File

@ -64,8 +64,6 @@ void TestAWTelemetryHandler::test_getLast()
void TestAWTelemetryHandler::test_uploadTelemetry()
{
QSKIP("Remote telemetry is disabled at the moment");
QSignalSpy spy(plugin, SIGNAL(replyReceived(const QString &)));
plugin->uploadTelemetry(telemetryValidGroup, telemetryData);

View File

@ -45,8 +45,6 @@ void TestDesktopSource::test_sources()
void TestDesktopSource::test_values()
{
QSKIP("Tests are failing with current api");
QVERIFY(source->data("desktop/current/name").toString().count() > 0);
QVERIFY(source->data("desktop/current/number").toInt() >= 0);
QVERIFY(source->data("desktop/total/name").toStringList().count() > 0);

View File

@ -47,4 +47,4 @@ private:
};
#endif /* TESTJSONFORMATTER_H */
#endif /* TESTJSONFORMATTER_Hl */