Subject: | t/81_scanimage-perl.t may fail |
t/81_scanimage-perl.t is successful on most of my Linux smoker systems (Debian jessie, Debian stretch, CentOS 7). It just fails on my Ubuntu 16.04 smoker (test log see below). It seems that on this smoker system scanimage is not installed. libsane-dev is installed, but the scanimage binary is located in the package sane-utils.
Maybe the installation instructions should be updated, or t/81_scanimage-perl.t should skip tests if scanimage is not available.
...
sh: 1: scanimage: not found
identify: improper image header `out.pnm' @ error/pnm.c/ReadPNMImage/282.
# Failed test '--device=test > out.pnm; identify -format '%m %G %g %z-bit %r' out*.pnm; rm out*.pnm'
# at t/81_scanimage-perl.t line 32.
# got: 'PGM 157x196 157x196+0+0 8-bit DirectClass Gray '
# expected: ''
# Failed test '--device=test --test 2>&1'
# at t/81_scanimage-perl.t line 32.
# got: 'scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame, 8 bits/sample
# scanimage: reading one scanline, 157 bytes... PASS
# scanimage: reading one byte... PASS
# scanimage: stepped read, 2 bytes... PASS
# scanimage: stepped read, 4 bytes... PASS
# scanimage: stepped read, 8 bytes... PASS
# scanimage: stepped read, 16 bytes... PASS
# scanimage: stepped read, 32 bytes... PASS
# scanimage: stepped read, 64 bytes... PASS
# scanimage: stepped read, 128 bytes... PASS
# scanimage: stepped read, 256 bytes... PASS
# scanimage: stepped read, 255 bytes... PASS
# scanimage: stepped read, 127 bytes... PASS
# scanimage: stepped read, 63 bytes... PASS
# scanimage: stepped read, 31 bytes... PASS
# scanimage: stepped read, 15 bytes... PASS
# scanimage: stepped read, 7 bytes... PASS
# scanimage: stepped read, 3 bytes... PASS
# '
# expected: undef
# Failed test '--device=test --depth 1 --test 2>&1'
# at t/81_scanimage-perl.t line 32.
# got: 'scanimage: scanning image of size 157x196 pixels at 1 bits/pixel
# scanimage: acquiring gray frame, 1 bits/sample
# scanimage: reading one scanline, 20 bytes... PASS
# scanimage: reading one byte... PASS
# scanimage: stepped read, 2 bytes... PASS
# scanimage: stepped read, 4 bytes... PASS
# scanimage: stepped read, 8 bytes... PASS
# scanimage: stepped read, 16 bytes... PASS
# scanimage: stepped read, 32 bytes... PASS
# scanimage: stepped read, 31 bytes... PASS
# scanimage: stepped read, 15 bytes... PASS
# scanimage: stepped read, 7 bytes... PASS
# scanimage: stepped read, 3 bytes... PASS
# '
# expected: undef
identify: unable to open image `out*.pnm': No such file or directory @ error/blob.c/OpenBlob/2712.
rm: cannot remove 'out*.pnm': No such file or directory
# Failed test '--device=test --batch-count=2 2>&1; identify -format '%m %G %g %z-bit %r' out*.pnm; rm out*.pnm'
# at t/81_scanimage-perl.t line 32.
# got: 'Scanning 2 pages, incrementing by 1, numbering from 1
# Scanning page 1
# Scanned page 1. (scanner status = 5)
# Scanning page 2
# Scanned page 2. (scanner status = 5)
# PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray '
# expected: 'sh: 1: scanimage: not found
# '
identify: unable to open image `out*.pnm': No such file or directory @ error/blob.c/OpenBlob/2712.
rm: cannot remove 'out*.pnm': No such file or directory
# Failed test '--verbose --device=test --batch-count=2 2>&1; identify -format '%m %G %g %z-bit %r' out*.pnm; rm out*.pnm'
# at t/81_scanimage-perl.t line 32.
# got: 'Scanning 2 pages, incrementing by 1, numbering from 1
# Scanning page 1
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 1. (scanner status = 5)
# Scanning page 2
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 2. (scanner status = 5)
# PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray '
# expected: 'sh: 1: scanimage: not found
# '
identify: unable to open image `out*.pnm': No such file or directory @ error/blob.c/OpenBlob/2712.
rm: cannot remove 'out*.pnm': No such file or directory
# Failed test '--verbose --device=test --source="Automatic Document Feeder" --batch 2>&1; identify -format '%m %G %g %z-bit %r' out*.pnm; rm out*.pnm'
# at t/81_scanimage-perl.t line 32.
# got: 'Scanning -1 pages, incrementing by 1, numbering from 1
# Scanning page 1
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 1. (scanner status = 5)
# Scanning page 2
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 2. (scanner status = 5)
# Scanning page 3
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 3. (scanner status = 5)
# Scanning page 4
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 4. (scanner status = 5)
# Scanning page 5
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 5. (scanner status = 5)
# Scanning page 6
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 6. (scanner status = 5)
# Scanning page 7
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 7. (scanner status = 5)
# Scanning page 8
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 8. (scanner status = 5)
# Scanning page 9
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 9. (scanner status = 5)
# Scanning page 10
# scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame
# scanimage: min/max graylevel value = 255/0
# scanimage: read 30772 bytes in total
# Scanned page 10. (scanner status = 5)
# Scanning page 11
# scanimage: sane_start: Document feeder out of documents
# PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray '
# expected: 'sh: 1: scanimage: not found
# '
# Looks like you failed 6 tests of 6.
t/81_scanimage-perl.t ..
Dubious, test returned 6 (wstat 1536, 0x600)
Failed 6/6 subtests
...