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_dump_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. 12""" 13TEST_CATEGORY = "Functional" 14TEST_CLASS = "platform" 15JOB_RETRIES = 0 16 17DOC = """ 18This is a test that for chosen 100 PPD files (from ppds_100 directory) runs 19the following procedure: 201. Add an Generic printer to CUPS server (user-provided ppd file). 212. Print test PDF documents (from docs directory). 223. Check CUPS logs for any errors. 234. Extract a printing pipeline from CUPS logs and rerun it as a shell script. 245. Dump acquired outputs and logs to the directory specified in the parameter 25 path_outputs. 266. Remove the printer. 27When printing the PDF, the printing request sent to a printer is caught by 28a fake printer. All output documents are saved on the device in the directory 29specified in the parameter path_outputs. This test calculates also digests 30files and saves them in the same directory. 31See readme.txt for details. 32""" 33 34job.run_test( 35 'platform_PrinterPpds', 36 path_docs='docs', 37 path_ppds='ppds_100', 38 path_outputs='/tmp/PrinterPpds_outputs', 39 debug_mode=True) 40