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" 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. Dump acquired outputs and logs to the directory specified in the parameter 24 path_outputs. 255. 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_100', 37 path_outputs='/tmp/PrinterPpds_outputs') 38