/*
- * "$Id: testppd.c 181 2006-06-22 20:01:18Z jlovell $"
+ * "$Id: testppd.c 5484 2006-05-02 20:38:12Z mike $"
*
* PPD test program for the Common UNIX Printing System (CUPS).
*
"%%BeginFeature: *InputSlot Tray\n"
"InputSlot=Tray\n"
"%%EndFeature\n"
- "} stopped cleartomark\n"
- "[{\n"
- "%%BeginFeature: *IntOption None\n"
- "%%EndFeature\n"
- "} stopped cleartomark\n"
- "[{\n"
- "%%BeginFeature: *StringOption None\n"
- "%%EndFeature\n"
- "} stopped cleartomark\n";
-
-static const char *custom_code =
- "[{\n"
- "%%BeginFeature: *CustomPageSize True\n"
- "500\n"
- "400\n"
- "0\n"
- "0\n"
- "0\n"
- "PageSize=Custom\n"
- "%%EndFeature\n"
- "} stopped cleartomark\n"
- "[{\n"
- "%%BeginFeature: *InputSlot Tray\n"
- "InputSlot=Tray\n"
- "%%EndFeature\n"
- "} stopped cleartomark\n"
- "[{\n"
- "%%BeginFeature: *IntOption None\n"
- "%%EndFeature\n"
- "} stopped cleartomark\n"
- "[{\n"
- "%%BeginFeature: *StringOption None\n"
- "%%EndFeature\n"
"} stopped cleartomark\n";
printf("FAIL (%d conflicts)\n", conflicts);
}
- fputs("ppdEmitString (defaults): ", stdout);
+ fputs("ppdEmitString: ", stdout);
if ((s = ppdEmitString(ppd, PPD_ORDER_ANY, 0.0)) != NULL &&
!strcmp(s, default_code))
puts("PASS");
puts(s);
}
- if (s)
- free(s);
-
- fputs("ppdEmitString (custom size): ", stdout);
- ppdMarkOption(ppd, "PageSize", "Custom.400x500");
-
- if ((s = ppdEmitString(ppd, PPD_ORDER_ANY, 0.0)) != NULL &&
- !strcmp(s, custom_code))
- puts("PASS");
- else
- {
- printf("FAIL (%d bytes instead of %d)\n", s ? (int)strlen(s) : 0,
- (int)strlen(custom_code));
-
- if (s)
- puts(s);
- }
-
if (s)
free(s);
/*
- * End of "$Id: testppd.c 181 2006-06-22 20:01:18Z jlovell $".
+ * End of "$Id: testppd.c 5484 2006-05-02 20:38:12Z mike $".
*/