예제 #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)
예제 #2
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())
예제 #3
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())
예제 #4
0
    def check_results(self):
        if self.result in [Result.FAILED, Result.TIMEOUT]:
            GstValidateTest.check_results(self)
            return

        if self.scenario:
            orig_duration = min(long(self.scenario.get_duration()),
                                long(self.media_descriptor.get_duration()))
        else:
            orig_duration = long(self.media_descriptor.get_duration())
        res, msg = compare_rendered_with_original(orig_duration, self.dest_file)
        self.set_result(res, msg)
예제 #5
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)
예제 #6
0
    def check_results(self):
        if self.result is Result.PASSED and self.scenario is None:
            res, msg = utils.compare_rendered_with_original(self.duration, self.dest_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.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", e)
            else:
                GstValidateTest.check_results(self)
예제 #7
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)
예제 #8
0
    def build_arguments(self):
        GstValidateTest.build_arguments(self)

        self.set_sample_paths()
        self.add_arguments(self._scenario.path)
예제 #9
0
    def build_arguments(self):
        GstValidateTest.build_arguments(self)

        self.set_sample_paths()
        self.add_arguments(self._scenario.path)
예제 #10
0
 def build_arguments(self):
     GstValidateTest.build_arguments(self)
     self.set_rendering_info()
     self.add_arguments(self.uri, self.dest_file)
예제 #11
0
 def build_arguments(self):
     GstValidateTest.build_arguments(self)
     self.add_arguments(self.pipeline_desc)