1 # Copyright 2013 The Chromium OS Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 AUTHOR = 'Chrome OS Team, chromeos-video (a] google.com' 6 NAME = 'video_VDAStress.vp8.private.9' 7 ATTRIBUTES = 'suite:video' 8 TIME = 'LENGTHY' 9 TEST_CATEGORY = 'Stress' 10 TEST_CLASS = 'video' 11 TEST_TYPE = 'server' 12 DEPENDENCIES = 'hw_video_acc_vp8' 13 14 DOC = """ 15 VDA stress test to download and run with vp8 test videos from cloud storage. 16 """ 17 18 import shutil 19 import tempfile 20 21 # Download the test videos from the gs bucket to the server. 22 server_videos_dir = tempfile.mkdtemp(dir=job.tmpdir) 23 videos = [] 24 job.run_test( 25 'video_VDAStressSetup', 26 gs_bucket='gs://chromeos-test-assets-private/VDA/vp8/', 27 server_videos_dir=server_videos_dir, 28 videos=videos, 29 shard_number=9, 30 shard_count=10) 31 32 33 def run(machine): 34 job.run_test('video_VDAStress', 35 machine=machine, 36 server_videos_dir=server_videos_dir, 37 videos=videos) 38 39 40 job.parallel_on_machines(run, machines) 41 shutil.rmtree(server_videos_dir)