UpdateUnitTestsBoost1.61.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  # C++ source code
14  #
16 
17  Subst.AddFileType("h", "cc", "cpp", "cxx")
18 
19  # deprecated test macros
20  Subst.AddWord ("BOOST_MESSAGE", "BOOST_TEST_MESSAGE" )
21  Subst.AddWord ("BOOST_CHECKPOINT", "BOOST_TEST_CHECKPOINT" )
22  Subst.AddWord ("BOOST_BITWISE_EQUAL", "BOOST_CHECK_BITWISE_EQUAL")
23 
24  # BOOST_GLOBAL_FIXTURE macro became statement-like
25  # (the first pattern is a special case of the second, where the line ends
26  # after the pattern; the second pattern would replace the end-line with ';'
27  # effectively killing one line)
28  Subst.AddRegExPattern(r"(BOOST_GLOBAL_FIXTURE\((.*)\)[::space::]*)$", r"\1;")
29  Subst.AddRegExPattern(r"(BOOST_GLOBAL_FIXTURE\((.*)\)[::space::]*)[^;]", r"\1;")
30 
31  # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
32  #############################################################################
33 
34  sys.exit(RunSubstitutor())
35 #
def AddProcessor(processor)