Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/opt/local/bin/python2.6
- import sys
- sys.path.insert(0, "_include_server/lib.macosx-10.6-x86_64-2.6")
- from include_server import ( basics, include_analyzer_memoizing_node, parse_command )
- import unittest
- import os
- #basics.opt_debug_pattern = 31
- class MPLBug(unittest.TestCase):
- def setUp(self):
- client_root_keeper = basics.ClientRootKeeper()
- self.include_analyzer = (
- include_analyzer_memoizing_node.IncludeAnalyzerMemoizingNode(
- client_root_keeper))
- def ProcessCompilationCommandLine(self, cmd, cwd):
- return (self.include_analyzer.ProcessCompilationCommand(
- cwd,
- parse_command.ParseCommandArgs(
- parse_command.ParseCommandLine(cmd),
- cwd,
- self.include_analyzer.includepath_map,
- self.include_analyzer.directory_map,
- self.include_analyzer.compiler_defaults)))
- def test_MPLBug(self):
- closure = self.ProcessCompilationCommandLine(
- "g++ -c -I /opt/local/include -o evalperf.o evalperf.cpp",
- os.getcwd())
- print [ self.include_analyzer.realpath_map.String(i) for i in closure.keys() ]
- print len(closure), "found"
- unittest.main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement