• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.0'
7ATTRIBUTES = 'suite:video'
8TIME = 'LENGTHY'
9TEST_CATEGORY = 'Stress'
10TEST_CLASS = 'video'
11TEST_TYPE = 'server'
12DEPENDENCIES = 'hw_video_acc_vp8'
13
14DOC = """
15VDA stress test to download and run with vp8 test videos from cloud storage.
16"""
17
18import shutil
19import tempfile
20
21# Download the test videos from the gs bucket to the server.
22server_videos_dir = tempfile.mkdtemp(dir=job.tmpdir)
23videos = []
24job.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=0,
30    shard_count=10)
31
32
33def run(machine):
34    job.run_test('video_VDAStress',
35                 machine=machine,
36                 server_videos_dir=server_videos_dir,
37                 videos=videos)
38
39
40job.parallel_on_machines(run, machines)
41shutil.rmtree(server_videos_dir)