Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larsoft
bin
UpdateTestInfrastructure.py
Go to the documentation of this file.
1
#!/usr/bin/env python2
2
3
import
sys, re
4
5
import
SerialSubstitution
6
from
SerialSubstitution
import
AddProcessor, RunSubstitutor
7
8
9
################################################################################
10
if
__name__ ==
"__main__"
:
11
12
#############################################################################
13
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
14
# FHiCL configuration
15
#
16
#Subst = AddProcessor(SerialSubstitution.ProcessorClass("FHiCL"))
17
18
#Subst.AddFileType("fcl")
19
20
#Subst.AddSimplePattern("LArProperties:", "LArPropertiesService:")
21
22
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
23
# CMakeLists.txt
24
#
25
Subst =
AddProcessor
(
SerialSubstitution.ProcessorClass
(
"cmake"
))
26
27
Subst.AddFileNamePattern(
"CMakeLists.txt"
)
28
29
# the only serviceable part was NameSelector
30
Subst.AddWord (
"test_Geometry"
,
"larcore_CoreUtils"
)
31
#Subst.AddRegExRemoveLine(r"^\s*(LArProperties|DetectorProperties|DetectorClocks|TimeService)_service\s*(#.*)?$")
32
33
34
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
35
# art module source code
36
#
37
#Subst = AddProcessor(SerialSubstitution.ProcessorClass("modules"))
38
39
#Subst.AddFileNamePattern(".*_module\.cc")
40
41
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
42
# C++ source code
43
#
44
Subst =
AddProcessor
(
SerialSubstitution.ProcessorClass
(
"code"
))
45
46
Subst.AddFileType(
"h"
,
"cc"
,
"cpp"
,
"cxx"
)
47
48
# include files
49
Subst.AddWord (
"lardata/DetectorInfo/ProviderPack.h"
,
"larcore/CoreUtils/ProviderPack.h"
)
50
Subst.AddWord (
"lardata/DetectorInfo/ProviderUtil.h"
,
"larcore/CoreUtils/ProviderUtil.h"
)
51
Subst.AddWord (
"test/Geometry/unit_test_base.h"
,
"larcore/TestUtils/unit_test_base.h"
)
52
Subst.AddWord (
"test/Geometry/boost_unit_test_base.h"
,
"larcore/TestUtils/boost_unit_test_base.h"
)
53
Subst.AddWord (
"test/Geometry/NameSelector.h"
,
"larcore/TestUtils/NameSelector.h"
)
54
55
56
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
57
#############################################################################
58
59
sys.exit(
RunSubstitutor
())
60
#
SerialSubstitution.AddProcessor
def AddProcessor(processor)
Definition:
SerialSubstitution.py:489
SerialSubstitution.ProcessorClass
Definition:
SerialSubstitution.py:193
SerialSubstitution.RunSubstitutor
def RunSubstitutor()
Definition:
SerialSubstitution.py:503
Generated by
1.8.11