~chaffra/+junk/trilinos

« back to all changes in this revision

Viewing changes to cmake/ctest/experimental_build_test.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme, Johannes Ring
  • Date: 2009-12-13 12:53:22 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091213125322-in0nrdjc55deqsw9
Tags: 10.0.3.dfsg-1
[Christophe Prud'homme]
* New upstream release

[Johannes Ring]
* debian/patches/libname.patch: Add prefix 'libtrilinos_' to all
  libraries. 
* debian/patches/soname.patch: Add soversion to libraries.
* debian/watch: Update download URL.
* debian/control:
  - Remove python-numeric from Build-Depends (virtual package).
  - Remove automake and autotools from Build-Depends and add cmake to
    reflect switch to CMake.
  - Add python-support to Build-Depends.
* debian/rules: 
  - Cleanup and updates for switch to CMake.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# CTest script that is used to do an experimental build/test right from a
 
3
# developer's own build directory.
 
4
#
 
5
# NOTE: You need a recent (CVS) version of CMake/CTest for this to work.  You
 
6
# can't use CMake/CTest 2.6.x.  If you don't have the right version, it will
 
7
# tell you.
 
8
#
 
9
# To run this script:
 
10
#
 
11
# 1) First configure your directory without enabling any packages (to set the
 
12
# platform-specific and site-specific options).  The CMakeCache.txt file that
 
13
# is created will then be modified by the script as packages are enabled and
 
14
# disabled.  NOTE: For the safest results, start with an empty build directory
 
15
# (except for your configure script of course).  This seems to be needed when
 
16
# switching back and forth between an 'Experimental' and 'Nightly' build for
 
17
# instance.
 
18
#
 
19
# 2) Run the script (overriding any appropriate options) as:
 
20
#
 
21
#    env Trilinos_PACKAGES="<PACKAGES>" \
 
22
#      ctest -S $TRILINOS_HOME/cmake/ctest/experimental_build_test.cmake -VV
 
23
#
 
24
# where PACAKGES is the semi-colon-separated list of packages being tested
 
25
# (e.g. Trilinos_PACKAGES="Teuchos;Epetra;NOX") and TRILINOS_HOME points back
 
26
# to your home Trilinos directory.  You can take off the -VV argument if you
 
27
# don't want this to be too verbose.
 
28
#
 
29
# There are a number of other options that you can change as
 
30
# environment varibles.  See the macros SET_DEFAULT_AND_FROM_ENV(...)
 
31
# in the file TrilinosCTestDriverCore.cmake.  One option that you
 
32
# might want to overridde, for instance is CTEST_BUILD_NAME so that
 
33
# you can insert a special name into the dashboard.
 
34
#
 
35
# When this script finishes running, the last package listed in
 
36
# Trilinos_PACAKGES will be enabled in the CMakeCache.txt file.
 
37
#
 
38
# NOTE: It is better to use the CMake-built make target 'experimental' to run
 
39
# this script as it takes care of the details of manipulating the cache and
 
40
# restoring the package enables when it is done.
 
41
#
 
42
 
 
43
 
 
44
#
 
45
# General setup code:
 
46
#
 
47
# Do not modify any of this directly, use use environment variables instead!
 
48
#
 
49
 
 
50
#
 
51
# Include some CMake/CTest code files
 
52
#
 
53
 
 
54
SET( CMAKE_MODULE_PATH
 
55
  "${CTEST_SCRIPT_DIRECTORY}"
 
56
  "${CTEST_SCRIPT_DIRECTORY}/../utils"
 
57
  )
 
58
 
 
59
INCLUDE(TrilinosCTestDriverCore)
 
60
INCLUDE(GetLastDirName)
 
61
 
 
62
#
 
63
# Override some configuration variables
 
64
#
 
65
 
 
66
# All these can be changed by env vars
 
67
SET(CTEST_TEST_TYPE Experimental)
 
68
SET(CTEST_DO_UPDATES FALSE)
 
69
SET(CTEST_GENERATE_DEPS_XML_OUTPUT_FILE FALSE)
 
70
SET(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY FALSE)
 
71
SET(Trilinos_WARNINGS_AS_ERRORS_FLAGS "-Werror")
 
72
 
 
73
# Don't change this in env!
 
74
SET(CTEST_WIPE_CACHE FALSE)
 
75
 
 
76
SET(CTEST_SOURCE_DIRECTORY "${CTEST_SCRIPT_DIRECTORY}/../..")
 
77
GET_FILENAME_COMPONENT(PWD . REALPATH)
 
78
SET(CTEST_BINARY_DIRECTORY "${PWD}")
 
79
SET(CTEST_NOTES_FILES "${CTEST_BINARY_DIRECTORY}/do-configure")
 
80
 
 
81
GET_LAST_DIR_NAME("${CTEST_BINARY_DIRECTORY}" BUILD_DIR_NAME)
 
82
 
 
83
# Can be overridden by the environment
 
84
SET( CTEST_BUILD_NAME "${HOST_TYPE}-${BUILD_DIR_NAME}" )
 
85
 
 
86
#
 
87
# Run the build/test/submit driver
 
88
#
 
89
 
 
90
TRILINOS_CTEST_DRIVER()