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_test" 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 or when at least 12one of produced outputs differs from expected output (it is checked by comparing 13digests). 14""" 15TEST_CATEGORY = "Functional" 16TEST_CLASS = "platform" 17ATTRIBUTES = "suite:cups_weekly" 18JOB_RETRIES = 0 19 20DOC = """ 21This is a test that for all available PPD files runs the following procedure: 221. Add an Generic printer to CUPS server (user-provided ppd file). 232. Print test PDF documents (from docs directory). 243. Check CUPS logs for any errors. 254. Compare digests of obtained outputs with expected ones (from digests 26 directory). 275. Remove the printer. 28When printing the PDF, the printing request sent to a printer is caught by 29a fake printer. Intercepted output is verified when possible by comparing 30its digest with the expected one. 31See readme.txt for details. 32""" 33 34job.run_test( 35 'platform_PrinterPpds', 36 path_docs='docs', 37 path_ppds='ppds_all', 38 path_digests='digests') 39