diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-06-28 17:29:32 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-06-28 17:29:32 +0000 |
commit | 23ce26f64c34e30951ad9ade2151552ed77e7357 (patch) | |
tree | d73b31a0c2f7c7be4a69f8a8e84e00dd39c432b5 /test/pamexec-roundtrip.test | |
parent | 1b6e51a266008348ad93ed8b6ac9ec91b5024fea (diff) | |
download | netpbm-mirror-23ce26f64c34e30951ad9ade2151552ed77e7357.tar.gz netpbm-mirror-23ce26f64c34e30951ad9ade2151552ed77e7357.tar.xz netpbm-mirror-23ce26f64c34e30951ad9ade2151552ed77e7357.zip |
promote Advanced to Stable
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@4558 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pamexec-roundtrip.test')
-rwxr-xr-x | test/pamexec-roundtrip.test | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/pamexec-roundtrip.test b/test/pamexec-roundtrip.test new file mode 100755 index 00000000..fce7b6b5 --- /dev/null +++ b/test/pamexec-roundtrip.test @@ -0,0 +1,25 @@ +#! /bin/bash +# This script tests: pamexec +# Also requires: ppmpat ppmmake pamfile + +tmpdir=${tmpdir:-/tmp} +test_ppm=${tmpdir}/test_ppm + +echo "Test 1: should print stdin: PPM RAW 17 22 3 255 RGB six times" + +( ppmmake rgb:0/255/127 17 22 + ppmpat -g2 --color=rgb:143/188/143,rgb:161/161/161 17 22 + ppmpat -g3 --color=rgb:224/255/255,rgb:255/130/171,rgb:255/48/48 17 22 + ppmpat -madras --color=rgb:181/181/181,rgb:51/62/99,rgb:205/193/197 17 22 + ppmpat -tartan --color=rgb:238/233/191,rgb:84/84/84,rgb:255/160/122 17 22 + ppmpat -argyle2 --color=rgb:205/104/57,rgb:119/136/153,rgb:255/255/255 17 22 +) | tee ${test_ppm} | pamfile -all -machine + +echo "Test 2: should print '0 0 : 0' twice" + +pamexec "ppmtoppm " ${test_ppm} | cmp -s ${test_ppm} - + echo ${PIPESTATUS[@]} ":" $? +pamexec "cat " ${test_ppm} | cmp -s ${test_ppm} - + echo ${PIPESTATUS[@]} ":" $? + +rm ${test_ppm} |