Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str TryExcept body Expr SubscriptLoad AttributeLoad NameLoad attr Index Str handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Expr Call NameLoad BinOpAdd NameLoad Str AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Str Assert Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpMod Str Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Expr Call NameLoad BinOpAdd NameLoad Str AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Str Assert Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Expr Call NameLoad BinOpAdd NameLoad Str AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Str Assert Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Str decorator_list decorator_list
N/A N/A os N/A tempfile N/A unittest conary_test rephelp conary.build macros conary.build.loadrecipe RecipeLoader conary.build.errors RecipeFileError CookError MacroTest N/A N/A unittest TestCase N/A test1 N/A N/A self N/A N/A N/A simple macro expansion N/A N/A self macros N/A N/A macros Macros N/A N/A N/A N/A self macros update N/A foo bar N/A N/A N/A self macros N/A foo bar1 %(foo)s N/A N/A N/A self assertEqual N/A N/A self macros N/A foo bar1 bar N/A test2 N/A N/A self N/A N/A N/A test setting a new value for a macro which references the old
        value N/A N/A self macros N/A N/A macros Macros N/A N/A N/A N/A self macros update N/A foo baz bar1 fred N/A N/A N/A self macros N/A foo bar2 %(baz)s %(foo)s N/A N/A N/A self assertEqual N/A N/A self macros N/A foo bar2 fred bar1 N/A N/A N/A N/A self macros update N/A baz %(baz)s asdf N/A N/A N/A self assertEqual N/A N/A self macros baz fred asdf N/A test3 N/A N/A self N/A N/A N/A test setting a new value for a macro, verify that only
        the macro being set is expanded, any other macros expanded
        later N/A N/A self macros N/A N/A macros Macros N/A N/A N/A N/A self macros update N/A foo baz bar1 fred N/A N/A N/A self macros N/A foo bar2 %(baz)s %(foo)s N/A N/A N/A self assertEqual N/A N/A self macros N/A foo bar2 fred bar1 N/A N/A N/A self macros N/A baz wilma N/A N/A N/A self assertEqual N/A N/A self macros N/A foo bar2 wilma bar1 N/A disabletest4 N/A N/A self N/A N/A N/A verify that a recursive macro results in a RuntimeError N/A N/A self macros N/A N/A macros Macros N/A N/A N/A N/A self macros update N/A foo baz bar1 %(foo)/fred N/A N/A N/A self macros N/A foo bar2 %(baz)s N/A N/A N/A N/A N/A self macros N/A baz N/A N/A N/A RuntimeError N/A exc N/A N/A N/A N/A str exc maximum recursion depth exceeded N/A N/A N/A N/A self fail expected maximum recursion RuntimeError when expanding macro loop N/A N/A N/A N/A self fail expected RuntimeError when expanding macro loop N/A N/A RecipeTest N/A N/A rephelp RepositoryHelper N/A testBadActionFormat N/A N/A self N/A N/A N/A verify that a recipe that includes an action with a bad format
        string will cause an exception before the build process begins
        (after setup) N/A recipestr 
class BadFormat(PackageRecipe):
    name = 'test'
    version = '0'
    clearBuildReqs()
    
    def setup(self):
        self.Install("%(foo)/bar", "baz")
 N/A N/A N/A N/A self logFilter add N/A N/A N/A self assertRaises CookError N/A self buildRecipe recipestr BadFormat prep True N/A N/A N/A N/A self logFilter remove N/A N/A N/A N/A self logFilter compare N/A error: invalid macro substitution in "%(foo)/bar", missing "s"? N/A testBadVersionNumber N/A N/A self N/A N/A N/A 
        Verify that version numbers with - in them are disallowed
         N/A recipestr1 
class BadVersion(PackageRecipe):
    name = 'test'
    version = '0-0'
    clearBuildReqs()
    
    def setup(r):
        pass
 N/A N/A N/A self assertRaises RecipeFileError N/A self buildRecipe recipestr1 BadVersion N/A testNoVersion N/A N/A self N/A N/A N/A 
        testNoVersion : Verify friendly error message when version is forgotten
         N/A recipestr1 
class NoVersion(PackageRecipe):
    name = 'test'
    clearBuildReqs()
    
    def setup(r):
        pass
 N/A d N/A N/A tempfile mkdtemp dir N/A self workDir N/A N/A N/A os chdir d N/A N/A N/A self writeFile test.recipe recipestr1 N/A N/A N/A N/A RecipeLoader N/A d /test.recipe N/A self cfg N/A N/A N/A RecipeFileError N/A m N/A N/A errstr Recipe in file/component 'test' did not contain both a name and a version attribute. N/A N/A N/A N/A N/A m args N/A 0 endswith errstr N/A testEmptyReleaseString N/A N/A self N/A N/A N/A recipe 
class Empty(PackageRecipe):
    name = 'empty'
    version = ''
 N/A repos N/A N/A self openRepository N/A origDir N/A N/A os getcwd N/A N/A N/A N/A N/A os chdir N/A self workDir N/A N/A N/A self newpkg empty N/A N/A N/A os chdir empty N/A N/A N/A self writeFile empty.recipe recipe N/A N/A N/A N/A self logFilter add N/A N/A N/A N/A N/A self cookItem repos N/A self cfg empty.recipe N/A N/A N/A self fail CookError not raised N/A N/A N/A CookError N/A e N/A N/A N/A N/A self assertEqual N/A str e N/A unable to load recipe file %s/empty.recipe:
empty release string N/A N/A os getcwd N/A N/A N/A N/A os chdir origDir N/A testBadNames N/A N/A self N/A N/A N/A 
        testBadNames : Verify error message if package name starts with a non-letter
         N/A recipestr1 
class BadName(PackageRecipe):
    name = '+test'
    version = '0'
    clearBuildReqs()

    def setup(r):
        pass
 N/A d N/A N/A tempfile mkdtemp dir N/A self workDir N/A N/A N/A os chdir d N/A N/A N/A self writeFile test.recipe recipestr1 N/A N/A N/A N/A RecipeLoader N/A d /test.recipe N/A self cfg N/A N/A N/A RecipeFileError N/A m N/A N/A errstr Error in recipe file "test.recipe": package name must start with an ascii letter or digit. N/A N/A N/A N/A N/A m args N/A 0 endswith errstr N/A testNoClass N/A N/A self N/A N/A N/A 
        testNoClass : Verify friendly error message when no class in file
         N/A recipestr1 N/A d N/A N/A tempfile mkdtemp dir N/A self workDir N/A N/A N/A os chdir d N/A N/A N/A self writeFile test.recipe recipestr1 N/A N/A N/A N/A RecipeLoader N/A d /test.recipe N/A self cfg N/A N/A N/A RecipeFileError N/A m N/A N/A errstr file/component 'test' did not contain a valid recipe N/A N/A N/A N/A N/A m args N/A 0 endswith errstr N/A testResume N/A N/A self N/A N/A N/A recipestr 
class Test1(PackageRecipe):
    name = "test1"
    version = "1.0"
    clearBuildReqs()

    def setup(r):
        r.Create("/usr/share/foo", contents="foo\n")
        r.Create("/usr/share/bar", contents="foo\n")
        r.Create("/usr/share/baz", contents="foo\n")
 N/A N/A N/A self buildRecipe recipestr Test1 prep True N/A N/A N/A self buildRecipe recipestr Test1 resume 7 N/A N/A