diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-06-28 17:52:14 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-06-28 17:52:14 +0000 |
commit | 1cd3ef0dd6c2236d0b329879bacd9360d01c88a1 (patch) | |
tree | a60016b5dd48fbf681ebfb43a6ca0d7e20a391d8 /test/pamexec-roundtrip.test | |
parent | cbbf595776cee6b8d8a24becf49ee6468eeba712 (diff) | |
download | netpbm-mirror-1cd3ef0dd6c2236d0b329879bacd9360d01c88a1.tar.gz netpbm-mirror-1cd3ef0dd6c2236d0b329879bacd9360d01c88a1.tar.xz netpbm-mirror-1cd3ef0dd6c2236d0b329879bacd9360d01c88a1.zip |
Promote Development to Advaanced - Release 10.91
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@3877 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} |