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 5AUTHOR = 'Chrome OS Team, chromeos-video@google.com' 6NAME = 'video_VDAStress.vp8.private.6' 7ATTRIBUTES = 'suite:video' 8SUITE = 'video' 9TIME = 'LENGTHY' 10TEST_CATEGORY = 'Stress' 11TEST_CLASS = 'video' 12TEST_TYPE = 'server' 13DEPENDENCIES = 'hw_video_acc_vp8' 14 15DOC = """ 16VDA stress test to download and run with vp8 test videos from cloud storage. 17""" 18 19import shutil 20import tempfile 21 22# Download the test videos from the gs bucket to the server. 23server_videos_dir = tempfile.mkdtemp(dir=job.tmpdir) 24videos = [] 25job.run_test( 26 'video_VDAStressSetup', 27 gs_bucket='gs://chromeos-test-assets-private/VDA/vp8/', 28 server_videos_dir=server_videos_dir, 29 videos=videos, 30 shard_number=6, 31 shard_count=10) 32 33 34def run(machine): 35 job.run_test('video_VDAStress', 36 machine=machine, 37 server_videos_dir=server_videos_dir, 38 videos=videos) 39 40 41job.parallel_on_machines(run, machines) 42shutil.rmtree(server_videos_dir)