diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2015-12-28 13:33:57 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2015-12-28 13:33:57 +0000 |
commit | 5220b85007fbd61c7925bafba0bf06551e965e98 (patch) | |
tree | 1795f8c739df9cd1722550e728d0cf8d9cf427e5 /Build/source/libs/libpng/libpng-src/tests | |
parent | 74c0c4d1d90ea4f85a3de0304bcd009cb29acf9d (diff) |
libpng-1.6.20
git-svn-id: svn://tug.org/texlive/trunk@39214 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/libpng/libpng-src/tests')
33 files changed, 116 insertions, 0 deletions
diff --git a/Build/source/libs/libpng/libpng-src/tests/pngimage-full b/Build/source/libs/libpng/libpng-src/tests/pngimage-full new file mode 100644 index 00000000000..1198ed05c08 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngimage-full @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngimage --exhaustive --list-combos --log "${srcdir}/contrib/pngsuite/"*.png diff --git a/Build/source/libs/libpng/libpng-src/tests/pngimage-quick b/Build/source/libs/libpng/libpng-src/tests/pngimage-quick new file mode 100644 index 00000000000..328dc27b5d5 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngimage-quick @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngimage --list-combos --log "${srcdir}/contrib/pngsuite/"*.png diff --git a/Build/source/libs/libpng/libpng-src/tests/pngstest b/Build/source/libs/libpng/libpng-src/tests/pngstest new file mode 100644 index 00000000000..255ed098f17 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngstest @@ -0,0 +1,52 @@ +#!/bin/sh +# +# Usage: +# +# tests/pngstest gamma alpha +# +# Run ./pngstest on the PNG files in $srcdir/contrib/testpngs which have the +# given gamma and opacity: +# +# gamma: one of; linear, 1.8, sRGB, none. +# alpha: one of; opaque, tRNS, alpha, none. 'none' is equivalent to !alpha +# +# NOTE: the temporary files pngstest generates have the base name gamma-alpha to +# avoid issues with make -j +# +gamma="$1" +shift +alpha="$1" +shift +exec ./pngstest --tmpfile "${gamma}-${alpha}-" --log ${1+"$@"} $( + for f in "${srcdir}/contrib/testpngs/"*.png + do + g= + case "$f" in + *-linear[.-]*) + test "$gamma" = "linear" && g="$f";; + + *-sRGB[.-]*) + test "$gamma" = "sRGB" && g="$f";; + + *-1.8[.-]*) + test "$gamma" = "1.8" && g="$f";; + + *) + test "$gamma" = "none" && g="$f";; + esac + + case "$g" in + "") + :;; + + *-alpha[-.]*) + test "$alpha" = "alpha" && echo "$g";; + + *-tRNS[-.]*) + test "$alpha" = "tRNS" -o "$alpha" = "none" && echo "$g";; + + *) + test "$alpha" = "opaque" -o "$alpha" = "none" && echo "$g";; + esac + done +) diff --git a/Build/source/libs/libpng/libpng-src/tests/pngstest-1.8 b/Build/source/libs/libpng/libpng-src/tests/pngstest-1.8 new file mode 100644 index 00000000000..b2ec21bf64b --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngstest-1.8 @@ -0,0 +1,2 @@ +#!/bin/sh +exec "${srcdir}/tests/pngstest" 1.8 none diff --git a/Build/source/libs/libpng/libpng-src/tests/pngstest-1.8-alpha b/Build/source/libs/libpng/libpng-src/tests/pngstest-1.8-alpha new file mode 100644 index 00000000000..d00596d5582 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngstest-1.8-alpha @@ -0,0 +1,2 @@ +#!/bin/sh +exec "${srcdir}/tests/pngstest" 1.8 alpha diff --git a/Build/source/libs/libpng/libpng-src/tests/pngstest-linear b/Build/source/libs/libpng/libpng-src/tests/pngstest-linear new file mode 100644 index 00000000000..4a5b3fe8c31 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngstest-linear @@ -0,0 +1,2 @@ +#!/bin/sh +exec "${srcdir}/tests/pngstest" linear none diff --git a/Build/source/libs/libpng/libpng-src/tests/pngstest-linear-alpha b/Build/source/libs/libpng/libpng-src/tests/pngstest-linear-alpha new file mode 100644 index 00000000000..4114210363d --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngstest-linear-alpha @@ -0,0 +1,2 @@ +#!/bin/sh +exec "${srcdir}/tests/pngstest" linear alpha diff --git a/Build/source/libs/libpng/libpng-src/tests/pngstest-none b/Build/source/libs/libpng/libpng-src/tests/pngstest-none new file mode 100644 index 00000000000..09ad740b582 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngstest-none @@ -0,0 +1,2 @@ +#!/bin/sh +exec "${srcdir}/tests/pngstest" none none diff --git a/Build/source/libs/libpng/libpng-src/tests/pngstest-none-alpha b/Build/source/libs/libpng/libpng-src/tests/pngstest-none-alpha new file mode 100644 index 00000000000..af6083ff839 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngstest-none-alpha @@ -0,0 +1,2 @@ +#!/bin/sh +exec "${srcdir}/tests/pngstest" none alpha diff --git a/Build/source/libs/libpng/libpng-src/tests/pngstest-sRGB b/Build/source/libs/libpng/libpng-src/tests/pngstest-sRGB new file mode 100644 index 00000000000..d8460812c2b --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngstest-sRGB @@ -0,0 +1,2 @@ +#!/bin/sh +exec "${srcdir}/tests/pngstest" sRGB none diff --git a/Build/source/libs/libpng/libpng-src/tests/pngstest-sRGB-alpha b/Build/source/libs/libpng/libpng-src/tests/pngstest-sRGB-alpha new file mode 100644 index 00000000000..f1e57d339cc --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngstest-sRGB-alpha @@ -0,0 +1,2 @@ +#!/bin/sh +exec "${srcdir}/tests/pngstest" sRGB alpha diff --git a/Build/source/libs/libpng/libpng-src/tests/pngtest b/Build/source/libs/libpng/libpng-src/tests/pngtest new file mode 100644 index 00000000000..813973b23ed --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngtest @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngtest --strict ${srcdir}/pngtest.png diff --git a/Build/source/libs/libpng/libpng-src/tests/pngunknown-IDAT b/Build/source/libs/libpng/libpng-src/tests/pngunknown-IDAT new file mode 100644 index 00000000000..8e7281aa84a --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngunknown-IDAT @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngunknown --strict default=discard IDAT=save "${srcdir}/pngtest.png" diff --git a/Build/source/libs/libpng/libpng-src/tests/pngunknown-discard b/Build/source/libs/libpng/libpng-src/tests/pngunknown-discard new file mode 100644 index 00000000000..c96dab370c3 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngunknown-discard @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngunknown --strict default=discard "${srcdir}/pngtest.png" diff --git a/Build/source/libs/libpng/libpng-src/tests/pngunknown-if-safe b/Build/source/libs/libpng/libpng-src/tests/pngunknown-if-safe new file mode 100644 index 00000000000..31a4954fbb4 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngunknown-if-safe @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngunknown --strict default=if-safe "${srcdir}/pngtest.png" diff --git a/Build/source/libs/libpng/libpng-src/tests/pngunknown-sAPI b/Build/source/libs/libpng/libpng-src/tests/pngunknown-sAPI new file mode 100644 index 00000000000..4317b1847d0 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngunknown-sAPI @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngunknown --strict bKGD=save cHRM=save gAMA=save all=discard iCCP=save sBIT=save sRGB=save "${srcdir}/pngtest.png" diff --git a/Build/source/libs/libpng/libpng-src/tests/pngunknown-sTER b/Build/source/libs/libpng/libpng-src/tests/pngunknown-sTER new file mode 100644 index 00000000000..59c5ecd54fe --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngunknown-sTER @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngunknown --strict sTER=if-safe "${srcdir}/pngtest.png" diff --git a/Build/source/libs/libpng/libpng-src/tests/pngunknown-save b/Build/source/libs/libpng/libpng-src/tests/pngunknown-save new file mode 100644 index 00000000000..21412c42a65 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngunknown-save @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngunknown --strict default=save "${srcdir}/pngtest.png" diff --git a/Build/source/libs/libpng/libpng-src/tests/pngunknown-vpAg b/Build/source/libs/libpng/libpng-src/tests/pngunknown-vpAg new file mode 100644 index 00000000000..04f07b69a32 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngunknown-vpAg @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngunknown --strict vpAg=if-safe "${srcdir}/pngtest.png" diff --git a/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-16-to-8 b/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-16-to-8 new file mode 100644 index 00000000000..074945d3103 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-16-to-8 @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngvalid --strict --gamma-16-to-8 diff --git a/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-alpha-mode b/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-alpha-mode new file mode 100644 index 00000000000..b16e8abc4e3 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-alpha-mode @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngvalid --strict --gamma-alpha-mode diff --git a/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-background b/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-background new file mode 100644 index 00000000000..3dbf58d8a05 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-background @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngvalid --strict --gamma-background diff --git a/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-expand16-alpha-mode b/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-expand16-alpha-mode new file mode 100644 index 00000000000..4fa10bde27e --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-expand16-alpha-mode @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngvalid --strict --gamma-alpha-mode --expand16 diff --git a/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-expand16-background b/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-expand16-background new file mode 100644 index 00000000000..ad9a91762ba --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-expand16-background @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngvalid --strict --gamma-background --expand16 diff --git a/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-expand16-transform b/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-expand16-transform new file mode 100644 index 00000000000..5fd1f280baf --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-expand16-transform @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngvalid --strict --gamma-transform --expand16 diff --git a/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-sbit b/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-sbit new file mode 100644 index 00000000000..6ca08e9e348 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-sbit @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngvalid --strict --gamma-sbit diff --git a/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-threshold b/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-threshold new file mode 100644 index 00000000000..3fe4edf77a9 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-threshold @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngvalid --strict --gamma-threshold diff --git a/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-transform b/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-transform new file mode 100644 index 00000000000..3fa62c688ac --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngvalid-gamma-transform @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngvalid --strict --gamma-transform diff --git a/Build/source/libs/libpng/libpng-src/tests/pngvalid-progressive-interlace-standard b/Build/source/libs/libpng/libpng-src/tests/pngvalid-progressive-interlace-standard new file mode 100644 index 00000000000..a8cdf9e1a38 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngvalid-progressive-interlace-standard @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngvalid --strict --standard --progressive-read --interlace diff --git a/Build/source/libs/libpng/libpng-src/tests/pngvalid-progressive-size b/Build/source/libs/libpng/libpng-src/tests/pngvalid-progressive-size new file mode 100644 index 00000000000..868d6dcc324 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngvalid-progressive-size @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngvalid --strict --size --progressive-read diff --git a/Build/source/libs/libpng/libpng-src/tests/pngvalid-progressive-standard b/Build/source/libs/libpng/libpng-src/tests/pngvalid-progressive-standard new file mode 100644 index 00000000000..bf7e5c1c2c0 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngvalid-progressive-standard @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngvalid --strict --standard --progressive-read diff --git a/Build/source/libs/libpng/libpng-src/tests/pngvalid-standard b/Build/source/libs/libpng/libpng-src/tests/pngvalid-standard new file mode 100644 index 00000000000..a89b884245d --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngvalid-standard @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngvalid --strict --standard diff --git a/Build/source/libs/libpng/libpng-src/tests/pngvalid-transform b/Build/source/libs/libpng/libpng-src/tests/pngvalid-transform new file mode 100644 index 00000000000..c7536aeb897 --- /dev/null +++ b/Build/source/libs/libpng/libpng-src/tests/pngvalid-transform @@ -0,0 +1,2 @@ +#!/bin/sh +exec ./pngvalid --strict --transform |