diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2017-06-30 03:27:10 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2017-06-30 03:27:10 +0000 |
commit | 08d938dc6fc6b30e5da6733b52c97169c0d24f8a (patch) | |
tree | 92673cd6a5755fc209078cc6b6a42602defc0212 /test/legacy-names.test | |
parent | e21f4e95d897c93a4779bf78c71f1341d164a222 (diff) | |
download | netpbm-mirror-08d938dc6fc6b30e5da6733b52c97169c0d24f8a.tar.gz netpbm-mirror-08d938dc6fc6b30e5da6733b52c97169c0d24f8a.tar.xz netpbm-mirror-08d938dc6fc6b30e5da6733b52c97169c0d24f8a.zip |
Copy Development as new Advanced
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@3018 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/legacy-names.test')
-rwxr-xr-x | test/legacy-names.test | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/test/legacy-names.test b/test/legacy-names.test index 46bc9ee4..5a65615f 100755 --- a/test/legacy-names.test +++ b/test/legacy-names.test @@ -94,6 +94,13 @@ ordinary_testprogs="\ ppmtouil \ " +# Switch to control output from "program --version" +# See comments in all-in-place.test + +if [ ${CHECK_TYPE} = "install" ] + then grepOption[1]="" ; # Output --version message + else grepOption[0]="-v" ; # Suppress output +fi for i in $ordinary_testprogs do @@ -105,11 +112,15 @@ for i in $ordinary_testprogs continue fi - $i --version 2>&1 | \ - egrep -v \ - "(Using libnetpbm|Compiled|(BSD|SYSV|MSDOS|AMIGA) defined|RGB_?ENV=)" \ - 1>&2; - testExitStatus $i 0 ${PIPESTATUS[0]} + $i --version < /dev/null 2>&1 | \ + egrep -v -e "fiascotopnm" -e \ + ": ((BSD|SYSV|MSDOS|AMIGA) defined|RGB_?ENV=)" | \ + egrep ${grepOption[$grepSwitch]} -e \ + ": (Using lib(net)?pbm|(Built (by|at)|Compiled ))" 1>&2; + # See showVersion() in lib/libpm.c for the above regular expressions. + + exitStatus=${PIPESTATUS[0]} + testExitStatus $i 0 ${exitStatus} done |