예제 #1
0
    def setUp(self):
        self.src_root = tempfile.mkdtemp()
        self.bld_root = self.src_root

        root = create_root_with_source_tree(self.src_root, self.bld_root)
        self.top_node = root.find_node(self.src_root)

        self.meta, self.sections, self.nodes = create_simple_build_manifest_args(self.top_node)
예제 #2
0
    def setUp(self):
        self.src_root = tempfile.mkdtemp()
        self.bld_root = self.src_root

        root = create_root_with_source_tree(self.src_root, self.bld_root)
        self.top_node = root.find_node(self.src_root)

        self.meta, self.sections, self.nodes = create_simple_build_manifest_args(self.top_node)
예제 #3
0
    def test_create_exe(self):
        # FIXME: do a real test here
        meta, sections, nodes = create_simple_build_manifest_args(self.top_node)
        build_manifest = BuildManifest(sections, meta, {})

        fid, arcname = tempfile.mkstemp(prefix="zip")
        try:
            f = tempfile.NamedTemporaryFile(suffix=".exe")
            try:
                create_exe(build_manifest, arcname, f.name)
            finally:
                f.close()
        finally:
            os.close(fid)
예제 #4
0
 def test_get_inidata_run(self):
     """Simply execute get_inidata."""
     # FIXME: do a real test here
     meta, sections, nodes = create_simple_build_manifest_args(self.top_node)
     build_manifest = BuildManifest(sections, meta, {})
     get_inidata(build_manifest)