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