• 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.ext_dump"
7TIME = "LENGTHY"
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.
12"""
13TEST_CATEGORY = "Functional"
14TEST_CLASS = "platform"
15JOB_RETRIES = 0
16
17DOC = """
18This test runs the following procedure for PPD files from ppds_ext directory:
191. Add an Generic printer to CUPS server (user-provided ppd file).
202. Print test PDF documents (from docs directory).
213. Check CUPS logs for any errors.
224. Dump acquired outputs and logs to the directory specified in the parameter
23    path_outputs.
245. Remove the printer.
25When printing the PDF, the printing request sent to a printer is caught by
26a fake printer. All output documents are saved on the device in the directory
27specified in the parameter path_outputs. This test calculates also digests
28files and saves them in the same directory.
29See readme.txt for details.
30"""
31
32job.run_test(
33        'platform_PrinterPpds',
34        path_docs='docs',
35        path_ppds='ppds_ext',
36        path_outputs='/tmp/PrinterPpds_outputs')
37