def setup(r):
        # avoid cleanup
        r.macros.sourcemacros = 'source-apply-macros'
        r.addSource('myfile', contents="%(sourcemacros)s %(destdir)s",
                                                        macros=True)
        r.macros.a = 'XXX'
        r.macros.b = 'YYY'
        r.macros.c = 'ZZZ'
        r.addSource('sourcefile', macros=True, mode=0676)