Ejemplo n.º 1
0
    def test_build_rpm_from_srpm(self):
        specdep.build_rpm_from_srpm(self.spec)

        self.assertEqual(sys.stdout.getvalue(),
            "./RPMS/x86_64/ocaml-cohttp-0.9.8-1.el6.x86_64.rpm: "
                "./SRPMS/ocaml-cohttp-0.9.8-1.el6.src.rpm\n"
            "./RPMS/x86_64/ocaml-cohttp-devel-0.9.8-1.el6.x86_64.rpm: "
                "./SRPMS/ocaml-cohttp-0.9.8-1.el6.src.rpm\n")
Ejemplo n.º 2
0
    def test_build_rpm_from_srpm(self):
        specdep.build_rpm_from_srpm(self.spec)

        self.assertEqual(
            sys.stdout.getvalue(),
            "./RPMS/x86_64/ocaml-cohttp-0.9.8-1.el6.x86_64.rpm: "
            "./SRPMS/ocaml-cohttp-0.9.8-1.el6.src.rpm\n"
            "./RPMS/x86_64/ocaml-cohttp-devel-0.9.8-1.el6.x86_64.rpm: "
            "./SRPMS/ocaml-cohttp-0.9.8-1.el6.src.rpm\n")
Ejemplo n.º 3
0
    def test_build_rpm_from_srpm(self):
        specdep.build_rpm_from_srpm(self.spec)

        assert sys.stdout.getvalue() == \
"""./RPMS/x86_64/ocaml-cohttp-0.9.8-1.x86_64.rpm: ./SRPMS/ocaml-cohttp-0.9.8-1.src.rpm
Ejemplo n.º 4
0
    def test_build_rpm_from_srpm(self):
        specdep.build_rpm_from_srpm(self.spec)

        assert sys.stdout.getvalue() == \
"""./RPMS/x86_64/ocaml-cohttp-0.9.8-1.el6.x86_64.rpm: ./SRPMS/ocaml-cohttp-0.9.8-1.el6.src.rpm