Esempio n. 1
0
 def test_simple(self):
     build_manifest = BuildManifest(self.sections, self.meta, {})
     sections = build_manifest.resolve_paths(self.top_node)
     res = sorted([(kind, source.abspath(), target.abspath()) \
                   for kind, source, target in iter_files(sections)])
     target_dir = build_manifest.resolve_path(os.path.join("$prefix", "target"))
     ref = [("pythonfiles", os.path.join(self.top_node.abspath(), "source", "scripts", "bar.py"),
                            os.path.join(target_dir, "scripts", "bar.py")),
            ("pythonfiles", os.path.join(self.top_node.abspath(), "source", "scripts", "foo.py"),
                            os.path.join(target_dir, "scripts", "foo.py"))]
     self.assertEqual(res, ref)
Esempio n. 2
0
 def test_simple(self):
     build_manifest = BuildManifest(self.sections, self.meta, {})
     sections = build_manifest.resolve_paths(self.top_node)
     res = sorted([(kind, source.abspath(), target.abspath()) \
                   for kind, source, target in iter_files(sections)])
     target_dir = build_manifest.resolve_path(os.path.join("$prefix", "target"))
     ref = [("pythonfiles", os.path.join(self.top_node.abspath(), "source", "scripts", "bar.py"),
                            os.path.join(target_dir, "scripts", "bar.py")),
            ("pythonfiles", os.path.join(self.top_node.abspath(), "source", "scripts", "foo.py"),
                            os.path.join(target_dir, "scripts", "foo.py"))]
     self.assertEqual(res, ref)