Ejemplo n.º 1
0
    def test(self):
        self._check_target_options(
            ["in-cache-dir", "out-cache-dir", "pdf-file"])

        cmd_run(["convert", "-version"],
                fail_msg=_COMMAND_NOT_FOUND_MSG.format(command="convert",
                                                       package="ImageMagick"))
        cmd_run(["gs", "--version"],
                fail_msg=_COMMAND_NOT_FOUND_MSG.format(command="gs",
                                                       package="GhostScript"))
Ejemplo n.º 2
0
    def test(self):
        self._check_target_options(["in-cache-dir",
                                    "out-cache-dir",
                                    "djvu-file"])

        cmd_try_run("c44", fail_msg=_COMMAND_NOT_FOUND_MSG.format(
            command="c44",
            package="DjVuLibre"))
        cmd_try_run("djvm", fail_msg=_COMMAND_NOT_FOUND_MSG.format(
            command="djvm",
            package="DjVuLibre"))
Ejemplo n.º 3
0
    def test(self):
        self._check_target_options(["in-cache-dir",
                                    "out-cache-dir",
                                    "pdf-file"])

        cmd_run(["convert", "-version"], fail_msg=_COMMAND_NOT_FOUND_MSG.format(
            command="convert",
            package="ImageMagick"))
        cmd_run(["gs", "--version"], fail_msg=_COMMAND_NOT_FOUND_MSG.format(
            command="gs",
            package="GhostScript"))
Ejemplo n.º 4
0
 def test(self):
     self._check_target_options(
         ["pages-dir", "input-dir", "transform-file"])
     # Check for presence of ImageMagick
     cmd_run(["convert", "-version"],
             fail_msg=_COMMAND_NOT_FOUND_MSG.format(command="convert",
                                                    package="ImageMagick"))
Ejemplo n.º 5
0
    def test(self):
        self._check_target_options(
            ["toc-file", "tmp-file", "pdf-file", "pdf-tmp-file"])

        cmd_run(["gs", "--version"],
                fail_msg=_COMMAND_NOT_FOUND_MSG.format(command="gs",
                                                       package="GhostScript"))
Ejemplo n.º 6
0
 def test(self):
     self._check_target_options(["pages-dir",
                                 "input-dir",
                                 "transform-file"])
     # Check for presence of ImageMagick
     cmd_run(["convert", "-version"], fail_msg=_COMMAND_NOT_FOUND_MSG.format(
         command="convert",
         package="ImageMagick"))
Ejemplo n.º 7
0
    def test(self):
        self._check_target_options(["toc-file",
                                    "tmp-file",
                                    "pdf-file",
                                    "pdf-tmp-file"])

        cmd_run(["gs", "--version"], fail_msg=_COMMAND_NOT_FOUND_MSG.format(
            command="gs",
            package="GhostScript"))
Ejemplo n.º 8
0
    def test(self):
        self._check_target_options(["toc-file", "tmp-file", "djvu-file"])

        cmd_try_run("djvused",
                    fail_msg=_COMMAND_NOT_FOUND_MSG.format(
                        command="djvused", package="DjVuLibre"))