Ejemplo n.º 1
0
    def build_arguments(self):
        """Prepares the arguments for the executable used to run the test."""
        GstValidateTest.build_arguments(self)

        self.set_sample_paths()
        # Pass the path to the scenario file as a positional argument.
        self.add_arguments(self._scenario.path)
Ejemplo n.º 2
0
    def check_results(self):
        if self.result in [Result.PASSED, Result.NOT_RUN
                           ] and self.scenario is None:
            if self.process.returncode != 0:
                return super().check_results()

            res, msg = self.check_encoded_file()
            self.set_result(res, msg)
        else:
            if self.result == utils.Result.TIMEOUT:
                missing_eos = False
                try:
                    if utils.get_duration(
                            self.dest_file) == self.project.get_duration():
                        missing_eos = True
                except Exception as e:
                    pass

                if missing_eos is True:
                    self.set_result(
                        utils.Result.TIMEOUT,
                        "The rendered file had right duration, MISSING EOS?\n",
                        "failure")
            else:
                GstValidateTest.check_results(self)
Ejemplo n.º 3
0
 def build_arguments(self):
     GstValidateTest.build_arguments(self)
     self.add_arguments(self.pipeline_desc)
     if self.media_descriptor is not None and self.media_descriptor.get_path(
     ):
         self.add_arguments("--set-media-info",
                            '"' + self.media_descriptor.get_path() + '"')
Ejemplo n.º 4
0
    def check_results(self):
        if self.result in [Result.FAILED, Result.TIMEOUT] or self.process.returncode != 0:
            GstValidateTest.check_results(self)
            return

        res, msg = self.check_encoded_file()
        self.set_result(res, msg)
Ejemplo n.º 5
0
    def build_arguments(self):
        GstValidateTest.build_arguments(self)

        if self.options.mute:
            self.add_arguments("--mute")

        self.set_sample_paths()
        self.add_arguments("-l", self.project.get_uri())
Ejemplo n.º 6
0
    def check_results(self):
        if self.result in [Result.FAILED, Result.TIMEOUT] or \
                self.process.returncode != 0:
            GstValidateTest.check_results(self)
            return

        res, msg = self.check_encoded_file()
        self.set_result(res, msg)
Ejemplo n.º 7
0
    def build_arguments(self):
        GstValidateTest.build_arguments(self)

        if self.options.mute:
            self.add_arguments("--mute")

        self.set_sample_paths()
        self.add_arguments("-l", self.project.get_uri())
Ejemplo n.º 8
0
    def build_arguments(self):
        GstValidateTest.build_arguments(self)

        self.set_sink_args()
        self.set_sample_paths()

        if self.project:
            assert self.testfile is None
            if self.nested:
                self.add_arguments("+clip", self.project.get_uri())
            else:
                self.add_arguments("-l", self.project.get_uri())
        elif self.testfile:
            self.add_arguments("--set-test-file", self.testfile)
Ejemplo n.º 9
0
    def check_results(self):
        if self.result in [Result.PASSED, Result.NOT_RUN] and self.scenario is None:
            res, msg = self.check_encoded_file()
            self.set_result(res, msg)
        else:
            if self.result == utils.Result.TIMEOUT:
                missing_eos = False
                try:
                    if utils.get_duration(self.dest_file) == self.project.get_duration():
                        missing_eos = True
                except Exception as e:
                    pass

                if missing_eos is True:
                    self.set_result(utils.Result.TIMEOUT, "The rendered file add right duration, MISSING EOS?\n",
                                    "failure")
            else:
                GstValidateTest.check_results(self)
Ejemplo n.º 10
0
 def build_arguments(self):
     GstValidateTest.build_arguments(self)
     self.set_rendering_info()
     self.add_arguments(self.uri, self.dest_file)
Ejemplo n.º 11
0
 def build_arguments(self):
     GstValidateTest.build_arguments(self)
     self.set_rendering_info()
     self.add_arguments(self.uri, '"' + self.dest_file + '"')
Ejemplo n.º 12
0
 def build_arguments(self):
     GstValidateTest.build_arguments(self)
     self.add_arguments(self.pipeline_desc)
     if self.media_descriptor is not None and self.media_descriptor.get_path():
         self.add_arguments(
             "--set-media-info", '"' + self.media_descriptor.get_path() + '"')
Ejemplo n.º 13
0
 def check_results(self):
     self.check_encoded_file()
     return GstValidateTest.check_results(self)