Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1020>
extends: '.test fedora x86_64'
parallel: 4
variables:
- EXTRA_VALIDATE_ARGS: "--timeout-factor=2 --retry-on-failures --check-bugs --parts=${CI_NODE_TOTAL} --part-index=${CI_NODE_INDEX}"
+ EXTRA_VALIDATE_ARGS: "--timeout-factor=2 --retry-on-failures --check-bugs --parts=${CI_NODE_TOTAL} --part-index=${CI_NODE_INDEX} --sync"
TEST_SUITE: "validate ges"
# gstreamer-full:
if options.remote_assets_url and options.sync and not os.path.exists(options.clone_dir):
if not download_assets(options):
return False, None, None
-
- for d in options.testsuites_dirs:
- path = pathlib.Path(d).resolve()
- if not path.as_posix().endswith('subprojects/gst-integration-testsuites/testsuites'):
- continue
-
- # Ensure we have gst-integration-testsuites media files.
- subprocess.check_call(['git', 'submodule', 'update', '--init'],
- cwd=utils.DEFAULT_GST_QA_ASSETS)
- subprocess.check_call(['git', 'lfs', 'pull', '--exclude='],
- cwd=pathlib.Path(utils.DEFAULT_GST_QA_ASSETS) / 'medias')
# Ensure that the scenario manager singleton is ready to be used
ScenarioManager().config = options
if not tests_launcher.set_settings(options, []):
The GES GstValidate default testsuite
"""
import os
+import pathlib
+import subprocess
+from launcher import utils
from testsuiteutils import update_assets
from ges_known_issues import KNOWN_ISSUES
TEST_MANAGER = "ges"
+
def setup_tests(test_manager, options):
- assets_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "medias", "defaults"))
+ assets_dir = os.path.abspath(os.path.join(
+ os.path.dirname(__file__), "..", "medias", "defaults"))
if options.sync:
- if not update_assets(options, assets_dir):
- return False
+ if not utils.USING_SUBPROJECT:
+ if not update_assets(options, assets_dir):
+ return False
+ else:
+ print("Syncing gst-integration-testsuites media files")
+ subprocess.check_call(['git', 'submodule', 'update', '--init'],
+ cwd=utils.DEFAULT_GST_QA_ASSETS)
+ subprocess.check_call(['git', 'lfs', 'pull', '--exclude='],
+ cwd=pathlib.Path(utils.DEFAULT_GST_QA_ASSETS) / 'medias')
options.add_paths(os.path.abspath(os.path.join(os.path.dirname(__file__),
"..", "medias", "defaults")))
projects_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "ges",
"ges-projects"))
scenarios_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "ges",
- "scenarios"))
+ "scenarios"))
test_manager.add_expected_issues(KNOWN_ISSUES)
test_manager.register_defaults(projects_path, scenarios_path)
return True
import os
import glob
+import pathlib
import re
+import subprocess
from testsuiteutils import update_assets
+from launcher import utils
from launcher.baseclasses import MediaFormatCombination
from launcher.apps.gstvalidate import GstValidateSimpleTestsGenerator
from validate_known_issues import KNOWN_ISSUES
assets_dir = os.path.realpath(os.path.join(testsuite_dir, os.path.pardir, "medias", "defaults"))
if options.sync:
- if not update_assets(options, assets_dir):
- return False
+ if not utils.USING_SUBPROJECT:
+ if not update_assets(options, assets_dir):
+ return False
+ else:
+ print("Syncing gst-integration-testsuites media files")
+ subprocess.check_call(['git', 'submodule', 'update', '--init'],
+ cwd=utils.DEFAULT_GST_QA_ASSETS)
+ subprocess.check_call(['git', 'lfs', 'pull', '--exclude='],
+ cwd=pathlib.Path(utils.DEFAULT_GST_QA_ASSETS) / 'medias')
options.add_paths(assets_dir)
options.set_http_server_dir(media_dir)