-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
C++ tests from Qt6.5 branch, modified for Qt5
- Loading branch information
1 parent
bd944af
commit a6b0054
Showing
55 changed files
with
2,297 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
export CAMCOPS_QT6_BASE_DIR=${RUNNER_WORKSPACE} | ||
cd ${CAMCOPS_QT6_BASE_DIR} | ||
mkdir -p eigen | ||
cd eigen | ||
EIGEN_VERSION=3.3.3 | ||
wget --retry-on-http-error=429 --waitretry=300 --tries=20 https://gitlab.com/libeigen/eigen/-/archive/${EIGEN_VERSION}/eigen-${EIGEN_VERSION}.tar.gz | ||
tar xzf eigen-${EIGEN_VERSION}.tar.gz | ||
cd ${GITHUB_WORKSPACE} | ||
mkdir build-qt5-tests | ||
cd build-qt5-tests | ||
qmake ../tablet_qt/tests | ||
make | ||
export QT_DEBUG_PLUGINS=1 | ||
|
||
find . -path '*/bin/*' -type f -exec {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
# yamllint disable rule:line-length | ||
name: C++ tests | ||
# yamllint disable-line rule:truthy | ||
on: | ||
push: | ||
paths: | ||
- '**.cpp' | ||
- '**.h' | ||
- .github/scripts/add_apt_sources.sh | ||
- .github/scripts/change_apt_mirror.sh | ||
- .github/scripts/cpp_tests.sh | ||
- .github/workflows/cpp-tests.yml | ||
jobs: | ||
cpp-tests: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v3 | ||
with: | ||
version: 6.5.1 | ||
arch: gcc_64 | ||
modules: qtmultimedia | ||
- name: Ubuntu prerequisites | ||
run: | | ||
set -eux -o pipefail | ||
${GITHUB_WORKSPACE}/.github/scripts/change_apt_mirror.sh | ||
${GITHUB_WORKSPACE}/.github/scripts/add_apt_sources.sh | ||
sudo apt-get -y install libxcb-icccm4 libxcb-xkb1 libxcb-icccm4 libxcb-image0 libxcb-render-util0 libxcb-randr0 libxcb-keysyms1 libxcb-xinerama0 libxcb-xinput-dev libxcb-cursor0 | ||
sudo apt-get -y install xvfb x11-xserver-utils | ||
- name: C++ tests | ||
run: | | ||
set -eux -o pipefail | ||
xvfb-run --auto-servernum ${GITHUB_WORKSPACE}/.github/scripts/cpp_tests.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.. docs/source/autodoc/tablet_qt/tests/auto/auto.pro.rst | ||
.. THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. | ||
.. Copyright (C) 2012, University of Cambridge, Department of Psychiatry. | ||
Created by Rudolf Cardinal (rnc1001@cam.ac.uk). | ||
. | ||
This file is part of CamCOPS. | ||
. | ||
CamCOPS is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
. | ||
CamCOPS is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
. | ||
You should have received a copy of the GNU General Public License | ||
along with CamCOPS. If not, see <https://www.gnu.org/licenses/>. | ||
tablet_qt/tests/auto/auto.pro | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../../../../tablet_qt/tests/auto/auto.pro | ||
:language: none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.. docs/source/autodoc/tablet_qt/tests/auto/db/db.pro.rst | ||
.. THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. | ||
.. Copyright (C) 2012, University of Cambridge, Department of Psychiatry. | ||
Created by Rudolf Cardinal (rnc1001@cam.ac.uk). | ||
. | ||
This file is part of CamCOPS. | ||
. | ||
CamCOPS is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
. | ||
CamCOPS is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
. | ||
You should have received a copy of the GNU General Public License | ||
along with CamCOPS. If not, see <https://www.gnu.org/licenses/>. | ||
tablet_qt/tests/auto/db/db.pro | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../../../../../tablet_qt/tests/auto/db/db.pro | ||
:language: none |
29 changes: 29 additions & 0 deletions
29
docs/source/autodoc/tablet_qt/tests/auto/db/field/field.pro.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.. docs/source/autodoc/tablet_qt/tests/auto/db/field/field.pro.rst | ||
.. THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. | ||
.. Copyright (C) 2012, University of Cambridge, Department of Psychiatry. | ||
Created by Rudolf Cardinal (rnc1001@cam.ac.uk). | ||
. | ||
This file is part of CamCOPS. | ||
. | ||
CamCOPS is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
. | ||
CamCOPS is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
. | ||
You should have received a copy of the GNU General Public License | ||
along with CamCOPS. If not, see <https://www.gnu.org/licenses/>. | ||
tablet_qt/tests/auto/db/field/field.pro | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../../../../../../tablet_qt/tests/auto/db/field/field.pro | ||
:language: none |
29 changes: 29 additions & 0 deletions
29
docs/source/autodoc/tablet_qt/tests/auto/db/field/testfield.cpp.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.. docs/source/autodoc/tablet_qt/tests/auto/db/field/testfield.cpp.rst | ||
.. THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. | ||
.. Copyright (C) 2012, University of Cambridge, Department of Psychiatry. | ||
Created by Rudolf Cardinal (rnc1001@cam.ac.uk). | ||
. | ||
This file is part of CamCOPS. | ||
. | ||
CamCOPS is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
. | ||
CamCOPS is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
. | ||
You should have received a copy of the GNU General Public License | ||
along with CamCOPS. If not, see <https://www.gnu.org/licenses/>. | ||
tablet_qt/tests/auto/db/field/testfield.cpp | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../../../../../../tablet_qt/tests/auto/db/field/testfield.cpp | ||
:language: C++ |
29 changes: 29 additions & 0 deletions
29
docs/source/autodoc/tablet_qt/tests/auto/graphics/graphics.pro.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.. docs/source/autodoc/tablet_qt/tests/auto/graphics/graphics.pro.rst | ||
.. THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. | ||
.. Copyright (C) 2012, University of Cambridge, Department of Psychiatry. | ||
Created by Rudolf Cardinal (rnc1001@cam.ac.uk). | ||
. | ||
This file is part of CamCOPS. | ||
. | ||
CamCOPS is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
. | ||
CamCOPS is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
. | ||
You should have received a copy of the GNU General Public License | ||
along with CamCOPS. If not, see <https://www.gnu.org/licenses/>. | ||
tablet_qt/tests/auto/graphics/graphics.pro | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../../../../../tablet_qt/tests/auto/graphics/graphics.pro | ||
:language: none |
29 changes: 29 additions & 0 deletions
29
.../source/autodoc/tablet_qt/tests/auto/graphics/graphicsfunc/graphicsfunc.pro.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.. docs/source/autodoc/tablet_qt/tests/auto/graphics/graphicsfunc/graphicsfunc.pro.rst | ||
.. THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. | ||
.. Copyright (C) 2012, University of Cambridge, Department of Psychiatry. | ||
Created by Rudolf Cardinal (rnc1001@cam.ac.uk). | ||
. | ||
This file is part of CamCOPS. | ||
. | ||
CamCOPS is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
. | ||
CamCOPS is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
. | ||
You should have received a copy of the GNU General Public License | ||
along with CamCOPS. If not, see <https://www.gnu.org/licenses/>. | ||
tablet_qt/tests/auto/graphics/graphicsfunc/graphicsfunc.pro | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../../../../../../tablet_qt/tests/auto/graphics/graphicsfunc/graphicsfunc.pro | ||
:language: none |
29 changes: 29 additions & 0 deletions
29
...rce/autodoc/tablet_qt/tests/auto/graphics/graphicsfunc/testgraphicsfunc.cpp.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.. docs/source/autodoc/tablet_qt/tests/auto/graphics/graphicsfunc/testgraphicsfunc.cpp.rst | ||
.. THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. | ||
.. Copyright (C) 2012, University of Cambridge, Department of Psychiatry. | ||
Created by Rudolf Cardinal (rnc1001@cam.ac.uk). | ||
. | ||
This file is part of CamCOPS. | ||
. | ||
CamCOPS is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
. | ||
CamCOPS is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
. | ||
You should have received a copy of the GNU General Public License | ||
along with CamCOPS. If not, see <https://www.gnu.org/licenses/>. | ||
tablet_qt/tests/auto/graphics/graphicsfunc/testgraphicsfunc.cpp | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../../../../../../tablet_qt/tests/auto/graphics/graphicsfunc/testgraphicsfunc.cpp | ||
:language: C++ |
29 changes: 29 additions & 0 deletions
29
...source/autodoc/tablet_qt/tests/auto/layouts/flowlayouthfw/flowlayouthfw.pro.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.. docs/source/autodoc/tablet_qt/tests/auto/layouts/flowlayouthfw/flowlayouthfw.pro.rst | ||
.. THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. | ||
.. Copyright (C) 2012, University of Cambridge, Department of Psychiatry. | ||
Created by Rudolf Cardinal (rnc1001@cam.ac.uk). | ||
. | ||
This file is part of CamCOPS. | ||
. | ||
CamCOPS is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
. | ||
CamCOPS is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
. | ||
You should have received a copy of the GNU General Public License | ||
along with CamCOPS. If not, see <https://www.gnu.org/licenses/>. | ||
tablet_qt/tests/auto/layouts/flowlayouthfw/flowlayouthfw.pro | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../../../../../../tablet_qt/tests/auto/layouts/flowlayouthfw/flowlayouthfw.pro | ||
:language: none |
29 changes: 29 additions & 0 deletions
29
...ce/autodoc/tablet_qt/tests/auto/layouts/flowlayouthfw/testflowlayouthfw.cpp.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.. docs/source/autodoc/tablet_qt/tests/auto/layouts/flowlayouthfw/testflowlayouthfw.cpp.rst | ||
.. THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. | ||
.. Copyright (C) 2012, University of Cambridge, Department of Psychiatry. | ||
Created by Rudolf Cardinal (rnc1001@cam.ac.uk). | ||
. | ||
This file is part of CamCOPS. | ||
. | ||
CamCOPS is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
. | ||
CamCOPS is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
. | ||
You should have received a copy of the GNU General Public License | ||
along with CamCOPS. If not, see <https://www.gnu.org/licenses/>. | ||
tablet_qt/tests/auto/layouts/flowlayouthfw/testflowlayouthfw.cpp | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../../../../../../tablet_qt/tests/auto/layouts/flowlayouthfw/testflowlayouthfw.cpp | ||
:language: C++ |
29 changes: 29 additions & 0 deletions
29
docs/source/autodoc/tablet_qt/tests/auto/layouts/layouts.pro.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.. docs/source/autodoc/tablet_qt/tests/auto/layouts/layouts.pro.rst | ||
.. THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. | ||
.. Copyright (C) 2012, University of Cambridge, Department of Psychiatry. | ||
Created by Rudolf Cardinal (rnc1001@cam.ac.uk). | ||
. | ||
This file is part of CamCOPS. | ||
. | ||
CamCOPS is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
. | ||
CamCOPS is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
. | ||
You should have received a copy of the GNU General Public License | ||
along with CamCOPS. If not, see <https://www.gnu.org/licenses/>. | ||
tablet_qt/tests/auto/layouts/layouts.pro | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../../../../../tablet_qt/tests/auto/layouts/layouts.pro | ||
:language: none |
Oops, something went wrong.