~ubuntu-branches/ubuntu/lucid/cmake/lucid

« back to all changes in this revision

Viewing changes to Tests/CTestTestFailedSubmits/test.cmake.in

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2009-12-16 11:11:54 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091216111154-6accvv6yq86h2hkc
Tags: 2.8.0-5ubuntu1
* Merge from debian testing (LP: #497349). Remaining changes:
  - Keep the Replaces: on cmake-data to cover the Kubuntu version from
    Jaunty in case someone decides to do an (unsupported) Jaunty->Lucid
    upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
 
2
 
 
3
# CTestConfig.cmake settings:
 
4
set(CTEST_PROJECT_NAME "SmallAndFast")
 
5
 
 
6
# Intentionally leave out other upload-related CTestConfig.cmake settings
 
7
# so that the ctest_submit call below fails with an error message...
 
8
#
 
9
set(CTEST_DROP_METHOD "@drop_method@")
 
10
 
 
11
# Settings:
 
12
SET(CTEST_USE_LAUNCHERS 1)
 
13
 
 
14
# Emit these compiler warnings:
 
15
set(ENV{CXXFLAGS} "$ENV{CXXFLAGS} -Wall")
 
16
 
 
17
SET(CTEST_SITE                          "@SITE@")
 
18
SET(CTEST_BUILD_NAME                    "CTestTestLaunchers-@drop_method@")
 
19
 
 
20
SET(CTEST_SOURCE_DIRECTORY              "@source@")
 
21
SET(CTEST_BINARY_DIRECTORY              "@build@")
 
22
SET(CTEST_CVS_COMMAND                   "@CVSCOMMAND@")
 
23
SET(CTEST_CMAKE_GENERATOR               "@CMAKE_GENERATOR@")
 
24
SET(CTEST_BUILD_CONFIGURATION           "$ENV{CMAKE_CONFIG_TYPE}")
 
25
SET(CTEST_MEMORYCHECK_COMMAND           "@MEMORYCHECK_COMMAND@")
 
26
SET(CTEST_MEMORYCHECK_SUPPRESSIONS_FILE "@MEMORYCHECK_SUPPRESSIONS_FILE@")
 
27
SET(CTEST_MEMORYCHECK_COMMAND_OPTIONS   "@MEMORYCHECK_COMMAND_OPTIONS@")
 
28
SET(CTEST_COVERAGE_COMMAND              "@COVERAGE_COMMAND@")
 
29
SET(CTEST_NOTES_FILES                   "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
 
30
 
 
31
CTEST_EMPTY_BINARY_DIRECTORY(${CTEST_BINARY_DIRECTORY})
 
32
 
 
33
CTEST_START(Experimental)
 
34
 
 
35
# explicitly do not use CTEST_UPDATE - avoid network activity
 
36
 
 
37
CTEST_CONFIGURE(BUILD "${CTEST_BINARY_DIRECTORY}"
 
38
  OPTIONS "-DCTEST_USE_LAUNCHERS:BOOL=${CTEST_USE_LAUNCHERS};-DSAF_INTENTIONAL_COMPILE_ERROR:BOOL=ON;-DSAF_INTENTIONAL_COMPILE_WARNING:BOOL=ON"
 
39
  RETURN_VALUE res)
 
40
CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
 
41
CTEST_TEST(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
 
42
CTEST_MEMCHECK(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
 
43
CTEST_COVERAGE(BUILD "${CTEST_BINARY_DIRECTORY}" @ctest_coverage_labels_args@ RETURN_VALUE res)
 
44
 
 
45
# ok to call ctest_submit - still avoids network activity because there is
 
46
# not a valid drop location given above...
 
47
CTEST_SUBMIT(RETURN_VALUE res)