Skip to content

Commit

Permalink
CI: Test with ubuntu-latest and newer Qt 5.15
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Aug 23, 2023
1 parent aaf8c08 commit 2018b5a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
compiler_package: g++
with_qt6: false

- os: ubuntu-20.04
- os: ubuntu-latest
buildname: Linux-Clang
build_type: Debug
compiler: clang++
Expand Down
8 changes: 8 additions & 0 deletions src/tests/test_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ const int waitMsSetClipboard = 250;
/// Interval to wait (in ms) for pasting clipboard.
const int waitMsPasteClipboard = 1000;

/// Interval before calling show after hide (some window managers may fail to
/// show the window immediately after hiding).
#ifdef COPYQ_WS_X11
const int waitMsShowHide = 500;
#else
const int waitMsShowHide = 0;
#endif

/// Interval to wait (in ms) for client process.
const int waitClientRun = 30000;

Expand Down
3 changes: 3 additions & 0 deletions src/tests/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,7 @@ void Tests::commandShow()
RUN("hide", "");
WAIT_ON_OUTPUT("visible", "false\n");

waitFor(waitMsShowHide);
RUN("show", "");
WAIT_ON_OUTPUT("visible", "true\n");
}
Expand All @@ -1068,6 +1069,7 @@ void Tests::commandShowAt()
RUN("hide", "");
WAIT_ON_OUTPUT("visible", "false\n");

waitFor(waitMsShowHide);
RUN("showAt", "");
WAIT_ON_OUTPUT("visible", "true\n");
}
Expand Down Expand Up @@ -3190,6 +3192,7 @@ void Tests::pasteFromMainWindow()

RUN("add" << "TEST", "");
RUN("hide", "");
waitFor(waitMsShowHide);
runMultiple(
[&]() { RUN(WITH_TIMEOUT "dialog('text')", "TEST\n"); },
[&]() {
Expand Down
2 changes: 0 additions & 2 deletions utils/github/install-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ if [[ $WITH_QT6 == true ]]; then
)
else
qt_packages=(
qt5-default

qtbase5-private-dev
qtdeclarative5-dev
qttools5-dev
Expand Down

0 comments on commit 2018b5a

Please sign in to comment.