~raof/mir/prober-drm-device-probe

78.1.1 by Thomas Voß
Reorganized tests into a single top-level directory.
1
# Copyright © 2012 Canonical Ltd.
2
#
3
# This program is free software: you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License version 3 as
5
# published by the Free Software Foundation.
6
#
7
# This program is distributed in the hope that it will be useful,
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
# GNU General Public License for more details.
11
#
12
# You should have received a copy of the GNU General Public License
13
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14
#
15
# Authored by: Thomas Voss <thomas.voss@canonical.com>
16
264.3.3 by Thomas Voß
Merge trunk and add status messages indicating whether real input/graphics are used for the tests.
17
if(NOT DEFINED ENV{MIR_TESTS_USE_REAL_GRAPHICS})
18
  message(STATUS "Tests are NOT run with real graphics support.")
19
else()
20
  message(STATUS "Tests are run with real graphics.")
21
endif()
22
23
if(NOT DEFINED ENV{MIR_TESTS_USE_REAL_INPUT})
24
  message(STATUS "Tests are NOT run with real input.")
25
else()
26
  message(STATUS "Tests are run with real input.")
27
endif()
28
93.3.2 by Thomas Voß
Cleanup and renaming of chrono/all.h -> chrono/chrono.h
29
option(
30
  MIR_ENABLE_DEATH_TESTS
31
  "Option to control whether to run death tests"
32
  ON
33
)
34
35
if(MIR_ENABLE_DEATH_TESTS)
36
  add_definitions(-DMIR_DEATH_TESTS_ENABLED)
37
endif(MIR_ENABLE_DEATH_TESTS)
38
78.1.1 by Thomas Voß
Reorganized tests into a single top-level directory.
39
add_subdirectory(acceptance-tests/)
40
add_subdirectory(unit-tests/)
301.3.40 by Kevin DuBois
same with integration tests (get them to compile/run/pass) (all tests pass afaik)
41
add_subdirectory(integration-tests/)
249.2.5 by Alan Griffiths
fix naming style
42
add_subdirectory(mir-test-framework/)
249.2.6 by Alan Griffiths
Rename remaining "utils" to mir-test-doubles as it is a meaningful name
43
add_subdirectory(mir-test-doubles/)
298.2.21 by Kevin DuBois
move draw code from include/mir/draw and src/draw to include/mir_test/draw and tests/draw respectively
44
add_subdirectory(draw/)
148.2.4 by Alan Griffiths
Move the nasty, leaky "death tests" into separate executable
45
46
if(MIR_ENABLE_DEATH_TESTS)
264.3.3 by Thomas Voß
Merge trunk and add status messages indicating whether real input/graphics are used for the tests.
47
  add_subdirectory(death-tests/)
48
else()
49
  message(STATUS "Death tests are disabled and are not run.")
148.2.4 by Alan Griffiths
Move the nasty, leaky "death tests" into separate executable
50
endif(MIR_ENABLE_DEATH_TESTS)