• 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.h264.private.6'
7ATTRIBUTES = 'suite:video'
8SUITE = 'video'
9TIME = 'LENGTHY'
10TEST_CATEGORY = 'Stress'
11TEST_CLASS = 'video'
12TEST_TYPE = 'server'
13DEPENDENCIES = 'hw_video_acc_h264'
14
15DOC = """
16VDA stress test to download and run with h264 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/h264/',
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)