Exemplo n.º 1
0
    def test_fullRun(self):
        target_repo, source1_repo, source2_repo = \
            testhelper.standard_simple_config(num_stable_sources=2)

        # Set up a merge
        package = testhelper.build_and_import_simple_package(
            'foo', '1.0-1', source1_repo)

        forked = copy(package)
        forked.changelog_entry(version='1.0-1mom1')
        open(forked.pkg_path + '/debian/new.file', 'w').write('hello')
        forked.build()
        target_repo.importPackage(forked)

        package.changelog_entry(version='1.2-1')
        package.create_orig()
        package.build()
        source2_repo.importPackage(package)

        # Set up a conflict
        package = testhelper.build_and_import_simple_package(
            'bar', '2.0-1', source1_repo)

        forked = copy(package)
        forked.changelog_entry(version='2.0-1mom1')
        open(forked.pkg_path + '/debian/new.file', 'w').write('hello')
        forked.build()
        target_repo.importPackage(forked)

        package.changelog_entry(version='2.2-1')
        open(package.pkg_path + '/debian/new.file', 'w').write('conflicts')
        package.create_orig()
        package.build()
        source2_repo.importPackage(package)

        # Set up a sync
        package = testhelper.build_and_import_simple_package(
            'eek', '3.0-1', target_repo)

        updated = copy(package)
        updated.changelog_entry(version='3.1-1')
        updated.create_orig()
        updated.build()
        source1_repo.importPackage(updated)

        # Run the program
        parser = get_option_parser()
        main.options(parser)
        options, args = parser.parse_args()
        main.main(options, [])
Exemplo n.º 2
0
 def setUp(self):
     self.target_repo, self.source1_repo, self.source2_repo = \
       testhelper.standard_simple_config(num_stable_sources=2)
Exemplo n.º 3
0
 def setUp(self):
   self.target_repo, self.source_repo = testhelper.standard_simple_config()
Exemplo n.º 4
0
 def setUp(self):
     self.target_repo, self.stable_source_repo, \
         self.unstable1_source_repo, self.unstable2_source_repo = \
         th.standard_simple_config(num_unstable_sources=2)
Exemplo n.º 5
0
 def setUp(self):
     self.target_repo, self.stable_source_repo, self.unstable_source_repo = \
       testhelper.standard_simple_config(num_unstable_sources=1)