From: msweet Date: Wed, 31 Jul 2013 18:06:15 +0000 (+0000) Subject: Add PPD test. X-Git-Tag: release-1.7.0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4972f4feeed975208d084795251530086c74494b;p=thirdparty%2Fcups.git Add PPD test. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11205 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/cups/testcups.c b/cups/testcups.c index 00a22965ac..b4b79569c0 100644 --- a/cups/testcups.c +++ b/cups/testcups.c @@ -171,10 +171,27 @@ main(int argc, /* I - Number of command-line arguments */ else puts("No password entered."); } + else if (!strcmp(argv[1], "ppd") && argc == 3) + { + /* + * ./testcups ppd printer + */ + + http_status_t http_status; /* Status */ + char buffer[1024]; /* PPD filename */ + time_t modtime = 0; /* Last modified */ + + if ((http_status = cupsGetPPD3(CUPS_HTTP_DEFAULT, argv[2], &modtime, + buffer, sizeof(buffer))) != HTTP_STATUS_OK) + printf("Unable to get PPD: %d (%s)\n", (int)http_status, + cupsLastErrorString()); + else + puts(buffer); + } else if (!strcmp(argv[1], "print") && argc == 5) { /* - * ./testcups printer file interval + * ./testcups print printer file interval */ int interval, /* Interval between writes */ @@ -246,6 +263,10 @@ main(int argc, /* I - Number of command-line arguments */ puts(""); puts(" ./testcups password"); puts(""); + puts("Get the PPD file:"); + puts(""); + puts(" ./testcups ppd printer"); + puts(""); puts("Print a file (interval controls delay between buffers in seconds):"); puts(""); puts(" ./testcups print printer file interval"); diff --git a/doc/help/man-cupsaddsmb.html b/doc/help/man-cupsaddsmb.html index 0bb0ddcd9a..cc4e46e6c9 100644 --- a/doc/help/man-cupsaddsmb.html +++ b/doc/help/man-cupsaddsmb.html @@ -162,8 +162,6 @@ Getting the full set of Windows driver files should be easier.

See Also

smbd(8), smb.conf(5), http://localhost:631/help -
-http://www.cups.org/windows/

Copyright

Copyright 2007-2013 by Apple Inc.