macOS CI / build-and-test (push) Skipped
- CupsParsers: lpstatDeviceURIs / lpoptionsMakeAndModel / detectAirPrint — the six docs/14 §10.2 rules (apple-airprint:// URI, *APAirPrint: True, Apple+AirPrint make-and-model, ipps://+PPD mention, ipp:// + _universal mDNS subtype, cupsFilter2→image/urf). - CupsService.listPrinters: one tolerated lpstat -v spawn feeds detection; lpoptions -p yields displayName + makeAndModel in a single spawn; Printer.isAirPrint populated per queue. - Printer.isAirPrint defaults false with a tolerant decoder. - Stage2View: live airPrintWarningBadge — "AirPrint queue — unmanaged colour cannot be guaranteed." - Fixtures: lpstat -v marks Mock_Canon_Pro via _universal subtype; lpoptions emits printer-make-and-model. - Tests: six rule fixtures + USB negative + a no-fallback-respawn listPrinters case; Milestone12AirPrintUITests tracks the badge across queue selection. Gate: full xcodebuild test green (515 unit + 70 UI).
27 lines
908 B
Bash
Executable File
27 lines
908 B
Bash
Executable File
#!/bin/sh
|
|
# Mock lpoptions for Milestone3UITests. `-p <q>` prints printer-info;
|
|
# `-p <q> -l` prints Key/Label listings incl. Epson bypass keys and the
|
|
# recorded XP-55 EPIJ_Qual line — the driver's own non-sorted order
|
|
# (308 sits between 303 and 304, #180).
|
|
queue=""
|
|
list=0
|
|
for arg in "$@"; do
|
|
case "$arg" in
|
|
-p) shift_flag=1 ;;
|
|
-l) list=1 ;;
|
|
-*) ;;
|
|
*) queue="$arg" ;;
|
|
esac
|
|
done
|
|
if [ "$list" = "1" ]; then
|
|
printf 'PageSize/Media Size: 4x6 5x7 *A4 Letter Legal\n'
|
|
printf 'InputSlot/Media Source: Auto *Main Rear\n'
|
|
printf 'MediaType/Media Type: *Stationery PhotographicGlossy PhotographicMatte\n'
|
|
printf 'EPIJ_Qual/Print Quality: 301 302 *303 308 304 305 307\n'
|
|
printf 'EPIJ_CMat/Color Adjust: *0 1 2 3\n'
|
|
printf 'ColorModel/Output Mode: *RGB Gray\n'
|
|
exit 0
|
|
fi
|
|
printf "printer-info='Mock %s' printer-make-and-model='EPSON XP-55 Series' printer-type=42\n" "$queue"
|
|
exit 0
|