Exemple #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")
Exemple #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")
    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
    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