Module Assign NameStore Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str ListLoad Str Str Str ListLoad Str Str Assign NameStore ListLoad Str Str Str Str Str Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str ClassDef bases body FunctionDef arguments args NameParam defaults kwarg body Assign AttributeStore NameLoad attr Dict Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults vararg body If UnaryOpNot NameLoad body Return AttributeLoad NameLoad attr orelse If CompareEq Call NameLoad NameLoad Num body Return SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Num orelse Return Call NameLoad Lambda arguments args NameParam NameParam defaults NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad Call AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore Call AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Delete SubscriptDel Call AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body TryExcept body If CompareEq SubscriptLoad NameLoad Index Num Str body Return SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Slice Num handlers ExceptHandler type NameLoad body Return Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body If CompareNotEq Call NameLoad NameLoad Call NameLoad ListLoad body Assign NameStore ListLoad NameLoad Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BoolOpOr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Num decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return CompareEq Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad Str NameLoad NameLoad Assert Call NameLoad NameLoad ListLoad Str Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword ListLoad Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad Str NameLoad NameLoad Assert Call NameLoad NameLoad ListLoad Str Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword ListLoad Call AttributeLoad NameLoad attr Str keyword ListLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad Str NameLoad NameLoad Assert CompareIs SubscriptLoad NameLoad Index Num NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword ListLoad Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad Str NameLoad NameLoad Assert CompareIs SubscriptLoad NameLoad Index Num NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Call NameLoad AttributeLoad NameLoad attr ListLoad Str Str Str keyword ListLoad Str Str Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad Str NameLoad NameLoad Assert Call NameLoad NameLoad ListLoad Str Str Str Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad Str NameLoad NameLoad Assert Call NameLoad NameLoad ListLoad Str Str Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Str body If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr Str orelse Return NameLoad decorator_list decorator_list Assign NameStore Call NameLoad keyword ListLoad Str keyword Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad Str NameLoad NameLoad Assert Call NameLoad NameLoad ListLoad Str Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str Str keyword ListLoad Str keyword ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad Str NameLoad NameLoad Assert Call NameLoad NameLoad ListLoad Str Str Str Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword ListLoad Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str Str keyword ListLoad Str keyword ListLoad Str keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad Str NameLoad NameLoad Assert Call NameLoad NameLoad ListLoad Str Str Str Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad keyword ListLoad Call AttributeLoad NameLoad attr Str keyword ListLoad NameLoad keyword ListLoad Str Str keyword ListLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad Str NameLoad NameLoad Assert CompareEq NameLoad ListLoad NameLoad NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad keyword ListLoad Call AttributeLoad NameLoad attr Str keyword ListLoad NameLoad ListLoad NameLoad keyword ListLoad Str Str keyword ListLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad Str NameLoad NameLoad Assert CompareEq NameLoad ListLoad NameLoad NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad If Call NameLoad NameLoad Str body Assign NameStore Str Exec NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num
N/A N/A __revision__ src/engine/SCons/Scanner/ProgTests.py 3897 2009/01/13 06:45:54 scons N/A os.path N/A string N/A sys N/A types N/A unittest N/A TestCmd N/A SCons.Node.FS N/A SCons.Scanner.Prog N/A test N/A N/A TestCmd TestCmd workdir N/A N/A N/A test subdir d1 N/A d1 d2 dir N/A dir sub N/A libs N/A l1.lib d1/l2.lib d1/d2/l3.lib dir/libfoo.a dir/sub/libbar.a dir/libxyz.other N/A h libs N/A N/A N/A N/A test write h DummyEnvironment N/A N/A __init__ N/A N/A self N/A kw N/A N/A N/A self _dict N/A LIBSUFFIXES .lib N/A N/A N/A N/A self _dict update kw N/A N/A self fs N/A N/A N/A N/A SCons Node FS FS N/A N/A test workpath N/A Dictionary N/A N/A self N/A args N/A N/A N/A args N/A N/A N/A self _dict N/A N/A N/A N/A len args 1 N/A N/A N/A N/A self _dict N/A N/A args N/A 0 N/A N/A N/A map N/A N/A N/A x s N/A self N/A N/A s _dict N/A x args N/A has_key N/A N/A self key N/A N/A N/A N/A N/A N/A N/A self Dictionary has_key key N/A __getitem__ N/A N/A self key N/A N/A N/A N/A N/A N/A self Dictionary N/A key N/A __setitem__ N/A N/A self key value N/A N/A N/A N/A N/A N/A self Dictionary N/A key value N/A __delitem__ N/A N/A self key N/A N/A N/A N/A N/A N/A self Dictionary N/A key N/A subst N/A N/A self s target source conv N/A None None None N/A N/A N/A N/A N/A N/A s N/A 0 $ N/A N/A N/A N/A self _dict N/A N/A s N/A 1 N/A N/A N/A IndexError N/A N/A N/A s N/A subst_path N/A N/A self path target source conv N/A None None None N/A N/A N/A N/A type path N/A type N/A N/A N/A path N/A path N/A N/A map N/A self subst path N/A get_factory N/A N/A self factory N/A N/A N/A N/A factory N/A N/A self fs File N/A Dir N/A N/A self filename N/A N/A N/A N/A N/A N/A self fs Dir N/A N/A test workpath filename N/A File N/A N/A self filename N/A N/A N/A N/A N/A N/A self fs File N/A N/A test workpath filename N/A N/A DummyNode N/A N/A __init__ N/A N/A self name N/A N/A N/A N/A self name name N/A rexists N/A N/A self N/A N/A N/A 1 N/A __str__ N/A N/A self N/A N/A N/A N/A self name N/A N/A deps_match N/A N/A deps libs N/A N/A N/A deps N/A map str deps N/A N/A N/A deps sort N/A N/A N/A libs sort N/A N/A N/A map N/A N/A os path normpath deps N/A map N/A N/A os path normpath libs N/A ProgramScannerTestCase1 N/A N/A unittest TestCase N/A runTest N/A N/A self N/A N/A N/A env N/A DummyEnvironment LIBPATH N/A N/A N/A test workpath LIBS N/A l1 l2 l3 N/A s N/A N/A N/A N/A SCons Scanner Prog ProgramScanner N/A path N/A N/A s path env N/A deps N/A s N/A DummyNode dummy env path N/A N/A deps_match deps N/A l1.lib N/A map str deps N/A env N/A DummyEnvironment LIBPATH N/A N/A N/A test workpath LIBS l1 N/A s N/A N/A N/A N/A SCons Scanner Prog ProgramScanner N/A path N/A N/A s path env N/A deps N/A s N/A DummyNode dummy env path N/A N/A deps_match deps N/A l1.lib N/A map str deps N/A f1 N/A N/A N/A env fs File N/A N/A test workpath f1 N/A env N/A DummyEnvironment LIBPATH N/A N/A N/A test workpath LIBS N/A f1 N/A s N/A N/A N/A N/A SCons Scanner Prog ProgramScanner N/A path N/A N/A s path env N/A deps N/A s N/A DummyNode dummy env path N/A N/A N/A deps N/A 0 f1 deps N/A f2 N/A N/A N/A env fs File N/A N/A test workpath f1 N/A env N/A DummyEnvironment LIBPATH N/A N/A N/A test workpath LIBS f2 N/A s N/A N/A N/A N/A SCons Scanner Prog ProgramScanner N/A path N/A N/A s path env N/A deps N/A s N/A DummyNode dummy env path N/A N/A N/A deps N/A 0 f2 deps N/A N/A ProgramScannerTestCase2 N/A N/A unittest TestCase N/A runTest N/A N/A self N/A N/A N/A env N/A DummyEnvironment LIBPATH N/A map N/A test workpath N/A d1 d1/d2 LIBS N/A l1 l2 l3 N/A s N/A N/A N/A N/A SCons Scanner Prog ProgramScanner N/A path N/A N/A s path env N/A deps N/A s N/A DummyNode dummy env path N/A N/A deps_match deps N/A l1.lib d1/l2.lib d1/d2/l3.lib N/A map str deps N/A N/A ProgramScannerTestCase3 N/A N/A unittest TestCase N/A runTest N/A N/A self N/A N/A N/A env N/A DummyEnvironment LIBPATH N/A N/A N/A test workpath d1/d2 N/A N/A test workpath d1 LIBS N/A N/A string split l2 l3 N/A s N/A N/A N/A N/A SCons Scanner Prog ProgramScanner N/A path N/A N/A s path env N/A deps N/A s N/A DummyNode dummy env path N/A N/A deps_match deps N/A d1/l2.lib d1/d2/l3.lib N/A map str deps N/A N/A ProgramScannerTestCase5 N/A N/A unittest TestCase N/A runTest N/A N/A self N/A N/A SubstEnvironment N/A DummyEnvironment N/A subst N/A N/A self arg target source conv path N/A None None None N/A N/A test workpath d1 N/A N/A N/A arg $blah N/A N/A N/A N/A test workpath d1 N/A N/A arg N/A N/A N/A env N/A SubstEnvironment LIBPATH N/A $blah LIBS N/A N/A string split l2 l3 N/A s N/A N/A N/A N/A SCons Scanner Prog ProgramScanner N/A path N/A N/A s path env N/A deps N/A s N/A DummyNode dummy env path N/A N/A deps_match deps N/A d1/l2.lib N/A map str deps N/A N/A ProgramScannerTestCase6 N/A N/A unittest TestCase N/A runTest N/A N/A self N/A N/A N/A env N/A DummyEnvironment LIBPATH N/A N/A N/A test workpath dir LIBS N/A foo sub/libbar xyz.other LIBPREFIXES N/A lib LIBSUFFIXES N/A .a N/A s N/A N/A N/A N/A SCons Scanner Prog ProgramScanner N/A path N/A N/A s path env N/A deps N/A s N/A DummyNode dummy env path N/A N/A deps_match deps N/A dir/libfoo.a dir/sub/libbar.a dir/libxyz.other N/A map str deps N/A N/A ProgramScannerTestCase7 N/A N/A unittest TestCase N/A runTest N/A N/A self N/A N/A N/A env N/A DummyEnvironment LIBPATH N/A N/A N/A test workpath dir LIBS N/A foo $LIBBAR $XYZ LIBPREFIXES N/A lib LIBSUFFIXES N/A .a LIBBAR sub/libbar XYZ xyz.other N/A s N/A N/A N/A N/A SCons Scanner Prog ProgramScanner N/A path N/A N/A s path env N/A deps N/A s N/A DummyNode dummy env path N/A N/A deps_match deps N/A dir/libfoo.a dir/sub/libbar.a dir/libxyz.other N/A map str deps N/A N/A ProgramScannerTestCase8 N/A N/A unittest TestCase N/A runTest N/A N/A self N/A N/A N/A n1 N/A DummyNode n1 N/A env N/A DummyEnvironment LIBPATH N/A N/A N/A test workpath dir LIBS N/A n1 LIBPREFIXES N/A p1- p2- LIBSUFFIXES N/A .1 2 N/A s N/A N/A N/A N/A SCons Scanner Prog ProgramScanner node_class DummyNode N/A path N/A N/A s path env N/A deps N/A s N/A DummyNode dummy env path N/A N/A deps N/A n1 deps N/A n2 N/A DummyNode n2 N/A env N/A DummyEnvironment LIBPATH N/A N/A N/A test workpath dir LIBS N/A n1 N/A n2 LIBPREFIXES N/A p1- p2- LIBSUFFIXES N/A .1 2 N/A s N/A N/A N/A N/A SCons Scanner Prog ProgramScanner node_class DummyNode N/A path N/A N/A s path env N/A deps N/A s N/A DummyNode dummy env path N/A N/A deps N/A n1 n2 deps N/A N/A suite N/A N/A N/A N/A N/A suite N/A N/A unittest TestSuite N/A N/A N/A suite addTest N/A ProgramScannerTestCase1 N/A N/A N/A suite addTest N/A ProgramScannerTestCase2 N/A N/A N/A suite addTest N/A ProgramScannerTestCase3 N/A N/A N/A suite addTest N/A ProgramScannerTestCase5 N/A N/A N/A suite addTest N/A ProgramScannerTestCase6 N/A N/A N/A suite addTest N/A ProgramScannerTestCase7 N/A N/A N/A suite addTest N/A ProgramScannerTestCase8 N/A N/A hasattr types UnicodeType N/A N/A code if 1:
            class ProgramScannerTestCase4(unittest.TestCase):
                def runTest(self):
                    env = DummyEnvironment(LIBPATH=[test.workpath("d1/d2"),
                                                    test.workpath("d1")],
                                           LIBS=string.split(u'l2 l3'))
                    s = SCons.Scanner.Prog.ProgramScanner()
                    path = s.path(env)
                    deps = s(DummyNode('dummy'), env, path)
                    assert deps_match(deps, ['d1/l2.lib', 'd1/d2/l3.lib']), map(str, deps)
            suite.addTest(ProgramScannerTestCase4())
            
 N/A code N/A suite N/A N/A N/A __name__ __main__ N/A N/A runner N/A N/A unittest TextTestRunner N/A result N/A N/A runner run N/A suite N/A N/A N/A N/A result wasSuccessful N/A N/A N/A N/A sys exit 1