Mir

Merge lp:~alan-griffiths/mir/rework-throwback-and-staging into lp:mir

Proposed by Alan Griffiths
Status: Merged
Approved by: Alan Griffiths
Approved revision: no longer in the source branch.
Merged at revision: 3926
Proposed branch: lp:~alan-griffiths/mir/rework-throwback-and-staging
Merge into: lp:mir
Prerequisite: lp:~alan-griffiths/mir/eliminate-throwback-from-acceptance-tests
Diff against target: 128 lines (+41/-37)
4 files modified
tests/acceptance-tests/CMakeLists.txt (+40/-4)
tests/acceptance-tests/staging/CMakeLists.txt (+0/-10)
tests/acceptance-tests/test_buffer_stream_arrangement1.cpp (+1/-1)
tests/acceptance-tests/throwback/CMakeLists.txt (+0/-22)
To merge this branch: bzr merge lp:~alan-griffiths/mir/rework-throwback-and-staging
Reviewer Review Type Date Requested Status
Kevin DuBois (community) Approve
Mir CI Bot continuous-integration Approve
Chris Halse Rogers Abstain
Review via email: mp+314351@code.launchpad.net

Commit message

Reorganize the acceptance tests to eliminate the "throwback" and "staging" subdirectories

Description of the change

Reorganize the acceptance tests to eliminate the "throwback" and "staging" subdirectories

This is really just an RFC to see if folks prefer this version.

To post a comment you must log in.
Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :

FAILED: Continuous integration, rev:3919
https://mir-jenkins.ubuntu.com/job/mir-ci/2586/
Executed test runs:
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-mir/3367/console
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-0-fetch/3434
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/3426
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/3426
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=zesty/3426
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=zesty/3396
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=zesty/3396/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial+overlay/3396
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial+overlay/3396/artifact/output/*zip*/output.zip
    FAILURE: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=zesty/3396/console
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=android,release=vivid+overlay/3396
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=android,release=vivid+overlay/3396/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=android,release=vivid+overlay/3396
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=android,release=vivid+overlay/3396/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial+overlay/3396
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial+overlay/3396/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://mir-jenkins.ubuntu.com/job/mir-ci/2586/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Chris Halse Rogers (raof) wrote :

(Somewhat surprisingly ☺) I have no strong feelings on this.

review: Abstain
Revision history for this message
Kevin DuBois (kdub) wrote :

sure, although typo here?
tests/acceptance-tests/test_buffer_stream_arrangement1.cpp

review: Needs Fixing
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

> sure, although typo here?
> tests/acceptance-tests/test_buffer_stream_arrangement1.cpp

The '1' avoids a collision with the existing tests/acceptance-tests/test_buffer_stream_arrangement.cpp

Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :

PASSED: Continuous integration, rev:3920
https://mir-jenkins.ubuntu.com/job/mir-ci/2642/
Executed test runs:
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-mir/3432
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-0-fetch/3499
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/3491
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/3491
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=zesty/3491
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=zesty/3461
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=zesty/3461/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial+overlay/3461
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial+overlay/3461/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=zesty/3461
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=zesty/3461/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=android,release=vivid+overlay/3461
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=android,release=vivid+overlay/3461/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=android,release=vivid+overlay/3461
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=android,release=vivid+overlay/3461/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial+overlay/3461
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial+overlay/3461/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://mir-jenkins.ubuntu.com/job/mir-ci/2642/rebuild

review: Approve (continuous-integration)
Revision history for this message
Kevin DuBois (kdub) wrote :

ah, didn't see the other file.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/acceptance-tests/CMakeLists.txt'
2--- tests/acceptance-tests/CMakeLists.txt 2017-01-11 10:08:41 +0000
3+++ tests/acceptance-tests/CMakeLists.txt 2017-01-11 10:08:42 +0000
4@@ -57,21 +57,57 @@
5 test_new_display_configuration.cpp
6 test_persistent_surface_store.cpp
7 test_client_extensions.cpp
8+ test_client_cursor_api.cpp
9+ test_client_library_errors.cpp
10+ test_shell_control_of_surface_configuration.cpp
11+ test_client_library.cpp
12+ test_presentation_chain.cpp
13+ test_render_surface.cpp
14+ test_buffer_stream_arrangement1.cpp
15 )
16
17 if (MIR_TEST_PLATFORM STREQUAL "mesa-kms" OR MIR_TEST_PLATFORM STREQUAL "mesa-x11")
18 list(APPEND SOURCES test_symbols_required_by_mesa.cpp)
19 endif()
20
21-add_subdirectory(throwback)
22-add_subdirectory(staging)
23+# BEGIN "throwbacks"
24+# The following tests use still files we have chosen not to support in the public API
25+# TODO update these "throwback" tests to rely only on the public APIs
26+
27+ # uses BasicWindowManager<>
28+ set_source_files_properties(test_client_cursor_api.cpp PROPERTIES COMPILE_FLAGS
29+ "${CMAKE_CXXFLAGS} -I ${PROJECT_SOURCE_DIR}/src/include/server")
30+
31+ # uses UsingClientPlatform
32+ set_source_files_properties(test_client_library_errors.cpp PROPERTIES COMPILE_FLAGS
33+ "${CMAKE_CXXFLAGS} -I ${CMAKE_SOURCE_DIR} -I ${PROJECT_SOURCE_DIR}/src/include/client -I ${PROJECT_SOURCE_DIR}/tests/include")
34+
35+ # uses CanonicalWindowManager
36+ set_source_files_properties(test_shell_control_of_surface_configuration.cpp PROPERTIES COMPILE_FLAGS
37+ "${CMAKE_CXXFLAGS} -I ${PROJECT_SOURCE_DIR}/src/include/server")
38+
39+ # uses src/include/common/mir/protobuf/protocol_version.h
40+ set_source_files_properties(test_client_library.cpp PROPERTIES COMPILE_FLAGS
41+ "${CMAKE_CXXFLAGS} -I ${CMAKE_SOURCE_DIR}")
42+# END "throwbacks"
43+
44+# BEGIN "staging"
45+# The following tests use files we do not yet to support in the public API
46+# TODO update the public APIs
47+ set_source_files_properties(test_presentation_chain.cpp PROPERTIES COMPILE_FLAGS
48+ "${CMAKE_CXXFLAGS} -I ${PROJECT_SOURCE_DIR}/src/include/client")
49+
50+ set_source_files_properties(test_render_surface.cpp PROPERTIES COMPILE_FLAGS
51+ "${CMAKE_CXXFLAGS} -I ${PROJECT_SOURCE_DIR}/src/include/client")
52+
53+ set_source_files_properties(test_buffer_stream_arrangement1.cpp PROPERTIES COMPILE_FLAGS
54+ "${CMAKE_CXXFLAGS} -I ${PROJECT_SOURCE_DIR}/src/include/client")
55+# END "staging"
56
57 mir_add_wrapped_executable(
58 mir_acceptance_tests
59
60 ${SOURCES}
61- $<TARGET_OBJECTS:acceptance-test-throwback>
62- $<TARGET_OBJECTS:acceptance-test-staging>
63 )
64
65 mir_precompiled_header(mir_acceptance_tests ${CMAKE_CURRENT_SOURCE_DIR}/precompiled.hpp)
66
67=== removed directory 'tests/acceptance-tests/staging'
68=== removed file 'tests/acceptance-tests/staging/CMakeLists.txt'
69--- tests/acceptance-tests/staging/CMakeLists.txt 2016-11-07 02:53:07 +0000
70+++ tests/acceptance-tests/staging/CMakeLists.txt 1970-01-01 00:00:00 +0000
71@@ -1,10 +0,0 @@
72-include_directories(
73- ${CMAKE_SOURCE_DIR}
74- ${PROJECT_SOURCE_DIR}/src/include/client
75-)
76-
77-add_library(acceptance-test-staging OBJECT
78- test_presentation_chain.cpp
79- test_render_surface.cpp
80- test_buffer_stream_arrangement.cpp
81-)
82
83=== renamed file 'tests/acceptance-tests/staging/test_buffer_stream_arrangement.cpp' => 'tests/acceptance-tests/test_buffer_stream_arrangement1.cpp'
84--- tests/acceptance-tests/staging/test_buffer_stream_arrangement.cpp 2017-01-09 06:48:47 +0000
85+++ tests/acceptance-tests/test_buffer_stream_arrangement1.cpp 2017-01-11 10:08:42 +0000
86@@ -16,7 +16,7 @@
87 * Authored by: Kevin DuBois <kevin.dubois@canonical.com>
88 */
89
90-#include "../buffer_stream_arrangement.h"
91+#include "buffer_stream_arrangement.h"
92 #include "mir_toolkit/mir_presentation_chain.h"
93 #include <gmock/gmock.h>
94
95
96=== renamed file 'tests/acceptance-tests/throwback/test_client_cursor_api.cpp' => 'tests/acceptance-tests/test_client_cursor_api.cpp'
97=== renamed file 'tests/acceptance-tests/throwback/test_client_library.cpp' => 'tests/acceptance-tests/test_client_library.cpp'
98=== renamed file 'tests/acceptance-tests/throwback/test_client_library_errors.cpp' => 'tests/acceptance-tests/test_client_library_errors.cpp'
99=== renamed file 'tests/acceptance-tests/staging/test_presentation_chain.cpp' => 'tests/acceptance-tests/test_presentation_chain.cpp'
100=== renamed file 'tests/acceptance-tests/staging/test_render_surface.cpp' => 'tests/acceptance-tests/test_render_surface.cpp'
101=== renamed file 'tests/acceptance-tests/throwback/test_shell_control_of_surface_configuration.cpp' => 'tests/acceptance-tests/test_shell_control_of_surface_configuration.cpp'
102=== removed directory 'tests/acceptance-tests/throwback'
103=== removed file 'tests/acceptance-tests/throwback/CMakeLists.txt'
104--- tests/acceptance-tests/throwback/CMakeLists.txt 2017-01-11 10:08:41 +0000
105+++ tests/acceptance-tests/throwback/CMakeLists.txt 1970-01-01 00:00:00 +0000
106@@ -1,22 +0,0 @@
107-add_library(acceptance-test-throwback OBJECT
108-
109- test_client_cursor_api.cpp
110- test_client_library_errors.cpp
111- test_shell_control_of_surface_configuration.cpp
112- test_client_library.cpp
113-)
114-
115-# uses BasicWindowManager<>
116-set_source_files_properties(test_client_cursor_api.cpp PROPERTIES COMPILE_FLAGS
117- "${CMAKE_CXXFLAGS} -I ${PROJECT_SOURCE_DIR}/src/include/server")
118-
119-# uses UsingClientPlatform
120-set_source_files_properties(test_client_library_errors.cpp PROPERTIES COMPILE_FLAGS
121- "${CMAKE_CXXFLAGS} -I ${CMAKE_SOURCE_DIR} -I ${PROJECT_SOURCE_DIR}/src/include/client -I ${PROJECT_SOURCE_DIR}/tests/include")
122-
123-# uses CanonicalWindowManager
124-set_source_files_properties(test_shell_control_of_surface_configuration.cpp PROPERTIES COMPILE_FLAGS
125- "${CMAKE_CXXFLAGS} -I ${PROJECT_SOURCE_DIR}/src/include/server")
126-
127-# uses src/include/common/mir/protobuf/protocol_version.h
128-set_source_files_properties(test_client_library.cpp PROPERTIES COMPILE_FLAGS "${CMAKE_CXXFLAGS} -I ${CMAKE_SOURCE_DIR}")

Subscribers

People subscribed via source and target branches