Commit 6aa33068 authored by Thibault Saunier's avatar Thibault Saunier 🌵
Browse files

validate: Add a json test definition file with a simple aspectratio test

parent 3ec12fbc
{
"aspectcropratio":
{
"pipeline": "videotestsrc ! aspectratiocrop name=cropper ! %(videosink)s",
"scenarios": [
{
"name": "set_aspect_ratio_in_paused",
"actions": [
"description, seek=true, handles-states=true",
"pause",
"set-property, playback-time=0.0, target-element-name=cropper, property-name=aspect-ratio, property-value=\"16/9\"",
"play",
"stop, playback-time=1.0"
]
}
]
}
}
\ No newline at end of file
......@@ -126,15 +126,22 @@ EXPECTED_ISSUES = {
def setup_tests(test_manager, options):
print("Setting up GstValidate default tests")
assets_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "medias", "defaults"))
testsuite_dir = os.path.realpath(os.path.join(os.path.dirname(__file__)))
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
options.add_paths(assets_dir)
options.set_http_server_dir(os.path.abspath(os.path.join(os.path.dirname(__file__),
"..", "medias")))
options.set_http_server_dir(os.path.join(testsuite_dir, os.path.pardir, "medias"))
test_manager.set_default_blacklist(BLACKLIST)
pipelines_tests = os.path.join(testsuite_dir, 'pipelines.json')
test_manager.add_generators(
test_manager.GstValidatePipelineTestsGenerator.from_json(test_manager, pipelines_tests)
)
test_manager.add_expected_issues(EXPECTED_ISSUES)
test_manager.register_defaults()
......
......@@ -467,6 +467,7 @@ validate.http.transcode.to_vorbis_and_vp8_in_webm.raw_video_mkv
validate.http.transcode.to_vorbis_and_vp8_in_webm.raw_video_mov
validate.http.transcode.to_vorbis_and_vp8_in_webm.vorbis_theora_1_ogg
validate.http.transcode.to_vorbis_and_vp8_in_webm.vorbis_vp8_1_webm
validate.launch_pipeline.aspectcropratio.set_aspect_ratio_in_paused
validate.pushfile.media_check.qtdemux-test-frag-basic_zero_dur_no_mehd_mp4
~validate.rtsp.playback.change_state_intensive.GH1_00094_1920x1280_MTS
~validate.rtsp.playback.change_state_intensive.bowlerhatdancer_sleepytom_SGP_mjpeg_avi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment