• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2015 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 = "Mussa Kiroga"
6NAME = "video_GlitchDetection_collect_images_chameleon"
7PURPOSE = "Collect golden images to be used in video image comparison tests."
8CRITERIA = """ """
9TIME = "LONG"
10TEST_CATEGORY = "General"
11TEST_CLASS = "video"
12TEST_TYPE = "client"
13
14DOC = """
15To have a sense of the 'quality' of the video playing on a ChromeOS device,
16we use image comparison techniques. In it, we collect golden images ahead of
17time and during a test on a build we collect test images and compare them
18against the golden ones.
19
20What makes the golden images golden is the build they are collected on. Other
21the process of collecting these images is similar to what you would do to
22collect test images. So, we are resuing the same code but using this control
23file to only collect the images and perform no comparison.
24
25To collect golden images run a command in this format:
26
27test_that <ip> video_GlitchDetection_collect_images_chameleon --fast
28--args CHAMELEON_HOST=<chameleons_ip>,video_format=mp4,video_def=480p
29
30You need to supply Chameleon's IP address for the CHAMELEON_HOST argument. Also
31change the format and definition to your chosen values.
32
33After the test is completed, the images will be saved under
34/tmp/test/golden_images. Grab those using scp or otherwise.
35E.g scp root@DUT's_ip:/tmp/test/golden_images/* ~
36
37This will also grab the golden_checksum.txt file.
38
39You will need to upload this text file together with the images into google
40storage.
41
42The parent path to storage is:
43pantheon.corp.google.com/storage/browser/chromiumos-test-assets-public/
44video_tests/bigbuck/...
45
46When you get to the parent directory, navigate accordingly based on the format
47and the definition you selected.
48
49"""
50host = next(iter(job.hosts))
51
52job.run_test('video_GlitchDetection',
53              channel='dev',
54              video_name='bigbuck',
55              collect_only=True,
56              use_chameleon=True,
57              host=host,
58              args=args)
59