diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2016-11-27 22:06:27 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2016-11-27 22:06:27 +0000 |
commit | c267823f944001e096f0e316588a56a4011435a9 (patch) | |
tree | 257599c13a7a0f338ce474ef3209ced0fb49ad3e /test/legacy-names.test | |
parent | 82a14e1f3dde2ec2283b6f841d2c5e6287c06d8c (diff) | |
download | netpbm-mirror-c267823f944001e096f0e316588a56a4011435a9.tar.gz netpbm-mirror-c267823f944001e096f0e316588a56a4011435a9.tar.xz netpbm-mirror-c267823f944001e096f0e316588a56a4011435a9.zip |
More skipping of tests of not-built components
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2839 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/legacy-names.test')
-rwxr-xr-x | test/legacy-names.test | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/legacy-names.test b/test/legacy-names.test index 30509d20..8dbd97b4 100755 --- a/test/legacy-names.test +++ b/test/legacy-names.test @@ -94,8 +94,30 @@ ordinary_testprogs="\ ppmtouil \ " +enabled_testprog() { + case $1 in + ppmtojpeg) + [ "${JPEGLIB}" = "NONE" ] && return 1 ;; + + pamrgbatopng|\ + pngtopnm) + [ "${PNGLIB}" = "NONE" ] && return 1 ;; + + pnmtotiff) + [ "${TIFFLIB}" = "NONE" ] && return 1 ;; + esac + + return 0 +} + for i in $ordinary_testprogs do + # Stub out programs that aren't built. + if ! enabled_testprog "$i"; then + echo "$i: ok" + continue + fi + $i --version 2>&1 | \ egrep -v \ "(Using libnetpbm|Compiled|(BSD|SYSV|MSDOS|AMIGA) defined|RGB_?ENV=)" \ |