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 5 AUTHOR = "The Chromium OS Authors" 6 NAME = "platform_PrinterPpds.100_dump_debug" 7 TIME = "SHORT" 8 TEST_TYPE = "client" 9 CRITERIA = """ 10 The test fails in case of malfunctioning of CUPS printing stack (cupsd, 11 cupstestppd, cups filters) for at least one of tested PPD files. 12 """ 13 TEST_CATEGORY = "Functional" 14 TEST_CLASS = "platform" 15 JOB_RETRIES = 0 16 17 DOC = """ 18 This is a test that for chosen 100 PPD files (from ppds_100 directory) runs 19 the following procedure: 20 1. Add an Generic printer to CUPS server (user-provided ppd file). 21 2. Print test PDF documents (from docs directory). 22 3. Check CUPS logs for any errors. 23 4. Extract a printing pipeline from CUPS logs and rerun it as a shell script. 24 5. Dump acquired outputs and logs to the directory specified in the parameter 25 path_outputs. 26 6. Remove the printer. 27 When printing the PDF, the printing request sent to a printer is caught by 28 a fake printer. All output documents are saved on the device in the directory 29 specified in the parameter path_outputs. This test calculates also digests 30 files and saves them in the same directory. 31 See readme.txt for details. 32 """ 33 34 job.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