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.all_dump_debug"
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 is a test that for all available PPD files runs the following procedure:
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. Extract a printing pipeline from CUPS logs and rerun it as a shell script.
235. Dump acquired outputs and logs to the directory specified in the parameter
24    path_outputs.
256. Remove the printer.
26When printing the PDF, the printing request sent to a printer is caught by
27a fake printer. All output documents are saved on the device in the directory
28specified in the parameter path_outputs. This test calculates also digests
29files and saves them in the same directory.
30See readme.txt for details.
31"""
32
33job.run_test(
34        'platform_PrinterPpds',
35        path_docs='docs',
36        path_ppds='ppds_all',
37        path_outputs='/tmp/PrinterPpds_outputs',
38        debug_mode=True)
39