• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2018 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 = "The Chromium OS Authors"
6NAME = "platform_PrinterPpds.100_test_debug"
7TIME = "SHORT"
8TEST_TYPE = "client"
9CRITERIA = """
10The test fails in case of malfunctioning of CUPS printing stack (cupsd,
11cupstestppd, cups filters) for at least one of tested PPD files or when at least
12one of produced outputs differs from expected output (it is checked by comparing
13digests).
14"""
15TEST_CATEGORY = "Functional"
16TEST_CLASS = "platform"
17JOB_RETRIES = 0
18
19DOC = """
20This is a test that for chosen 100 PPD files (from ppds_100 directory) runs
21the following procedure:
221. Add an Generic printer to CUPS server (user-provided ppd file).
232. Print test PDF documents (from docs directory).
243. Check CUPS logs for any errors.
254. Extract a printing pipeline from CUPS logs and rerun it as a shell script.
265. Compare digests of obtained outputs with expected ones (from digests
27    directory).
286. Remove the printer.
29When printing the PDF, the printing request sent to a printer is caught by
30a fake printer. Intercepted output is verified when possible by comparing
31its digest with the expected one.
32See readme.txt for details.
33"""
34
35job.run_test(
36        'platform_PrinterPpds',
37        path_docs='docs',
38        path_ppds='ppds_100',
39        path_digests='digests',
40        debug_mode=True)
41