コード例 #1
0
    def __init__(self, name, test_manager, pipeline_template=None,
                 pipelines_descriptions=None, valid_scenarios=None):
        """
        @name: The name of the generator
        @pipeline_template: A template pipeline to be used to generate actual pipelines
        @pipelines_descriptions: A list of tuple of the form:
                                 (test_name, pipeline_description, extra_data)
                                 extra_data being a dictionnary with the follwing keys:
                                    'scenarios': ["the", "valide", "scenarios", "names"]
                                    'duration': the_duration # in seconds
                                    'timeout': a_timeout # in seconds
                                    'hard_timeout': a_hard_timeout # in seconds

        @valid_scenarios: A list of scenario name that can be used with that generator
        """
        valid_scenarios = valid_scenarios or []
        GstValidateTestsGenerator.__init__(self, name, test_manager)
        self._pipeline_template = pipeline_template
        self._pipelines_descriptions = []
        for description in pipelines_descriptions or []:
            if not isinstance(description, dict):
                desc_dict = {"name": description[0],
                     "pipeline": description[1]}
                if len(description) >= 3:
                    desc_dict["extra_data"] = description[2]
                self._pipelines_descriptions.append(desc_dict)
            else:
                self._pipelines_descriptions.append(description)
        self._valid_scenarios = valid_scenarios
コード例 #2
0
 def __init__(self, name, test_manager, pipeline_template=None,
              pipelines_descriptions=None, valid_scenarios=[]):
     """
     @name: The name of the generator
     @pipeline_template: A template pipeline to be used to generate actual pipelines
     @pipelines_descriptions: A list of tuple of the form:
                              (test_name, pipeline_description)
     @valid_scenarios: A list of scenario name that can be used with that generator
     """
     GstValidateTestsGenerator.__init__(self, name, test_manager)
     self._pipeline_template = pipeline_template
     self._pipelines_descriptions = pipelines_descriptions
     self._valid_scenarios = valid_scenarios
コード例 #3
0
ファイル: gstvalidate.py プロジェクト: jabiers/livecoding.tv
    def __init__(self, name, test_manager, pipeline_template=None, pipelines_descriptions=None, valid_scenarios=[]):
        """
        @name: The name of the generator
        @pipeline_template: A template pipeline to be used to generate actual pipelines
        @pipelines_descriptions: A list of tuple of the form:
                                 (test_name, pipeline_description, extra_data)
                                 extra_data being a dictionnary with the follwing keys:
                                    'scenarios': ["the", "valide", "scenarios", "names"]
                                    'duration': the_duration # in seconds
                                    'timeout': a_timeout # in seconds
                                    'hard_timeout': a_hard_timeout # in seconds

        @valid_scenarios: A list of scenario name that can be used with that generator
        """
        GstValidateTestsGenerator.__init__(self, name, test_manager)
        self._pipeline_template = pipeline_template
        self._pipelines_descriptions = pipelines_descriptions
        self._valid_scenarios = valid_scenarios
コード例 #4
0
ファイル: gstvalidate.py プロジェクト: ystreet/gst-devtools
    def __init__(self, name, test_manager, pipeline_template=None,
                 pipelines_descriptions=None, valid_scenarios=[]):
        """
        @name: The name of the generator
        @pipeline_template: A template pipeline to be used to generate actual pipelines
        @pipelines_descriptions: A list of tuple of the form:
                                 (test_name, pipeline_description, extra_data)
                                 extra_data being a dictionnary with the follwing keys:
                                    'scenarios': ["the", "valide", "scenarios", "names"]
                                    'duration': the_duration # in seconds
                                    'timeout': a_timeout # in seconds
                                    'hard_timeout': a_hard_timeout # in seconds

        @valid_scenarios: A list of scenario name that can be used with that generator
        """
        GstValidateTestsGenerator.__init__(self, name, test_manager)
        self._pipeline_template = pipeline_template
        self._pipelines_descriptions = pipelines_descriptions
        self._valid_scenarios = valid_scenarios
コード例 #5
0
ファイル: gstvalidate.py プロジェクト: ensonic/gst-devtools
 def __init__(self, test_manager):
     GstValidateTestsGenerator.__init__(self, "transcode", test_manager)
コード例 #6
0
ファイル: gstvalidate.py プロジェクト: ensonic/gst-devtools
 def __init__(self, test_manager):
     GstValidateTestsGenerator.__init__(self, "media_check", test_manager)
コード例 #7
0
ファイル: gstvalidate.py プロジェクト: wmanley/gst-combined
 def __init__(self, test_manager):
     GstValidateTestsGenerator.__init__(self, "transcode", test_manager)
コード例 #8
0
ファイル: gstvalidate.py プロジェクト: wmanley/gst-combined
 def __init__(self, test_manager):
     GstValidateTestsGenerator.__init__(self, "media_check", test_manager)