~chaffra/+junk/trilinos

« back to all changes in this revision

Viewing changes to cmake/python/checkin-test.py

  • 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
#!/usr/bin/env python
 
2
 
 
3
"""
 
4
Script for doing checkin testing of Trilinos.  Please run checkin-test.py -h
 
5
for details
 
6
"""
 
7
 
 
8
 
 
9
#
 
10
# Import commands
 
11
#
 
12
 
 
13
 
 
14
import sys
 
15
import os
 
16
import traceback
 
17
 
 
18
from GeneralScriptSupport import *
 
19
 
 
20
#
 
21
# Read in the commandline arguments
 
22
#
 
23
 
 
24
#print "sys.argv:", sys.argv
 
25
 
 
26
# Create a deep copy of the commandline arguments
 
27
cmndLineArgs = []
 
28
cmndLineArgs.extend(sys.argv)
 
29
 
 
30
# See if the help option is set or not
 
31
helpOpt = len( set(cmndLineArgs) & set(("--help", "-h")) ) > 0
 
32
 
 
33
# See if --show-defaults was set or not
 
34
showDefaultsOpt = len( set(cmndLineArgs) & set(("--show-defaults", "dummy")) ) > 0
 
35
 
 
36
#
 
37
# Forward the options but tee the output
 
38
#
 
39
 
 
40
scriptsDir = getScriptBaseDir()
 
41
 
 
42
if (not helpOpt) and (not showDefaultsOpt):
 
43
  logFileName = "checkin-test.out"
 
44
else:
 
45
  logFileName = ""
 
46
 
 
47
cmnd = scriptsDir+"/checkin-test-impl.py " + requoteCmndLineArgs(sys.argv[1:])
 
48
 
 
49
if logFileName:
 
50
  cmnd = cmnd + " 2>&1 | tee "+logFileName
 
51
 
 
52
rtnVal = echoRunSysCmnd(cmnd, throwExcept=False)
 
53
 
 
54
sys.exit(rtnVal)