Skip to content

Commit 1958c49

Browse files
author
giraffedata
committed
Do roundtrip from PPM instead of PBM
git-svn-id: https://svn.code.sf.net/p/netpbm/code/trunk@3888 9d0c8265-081b-0410-96cb-a4ca84ce46f8
1 parent 8eeaea9 commit 1958c49

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

test/pj-roundtrip.ok

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Test 1. Should print: 0 0 0 0 : 0
22
0 0 0 0 : 0
3-
Test 2. Should print: 0 0 0 0 0 : 0
4-
0 0 0 0 0 : 0
3+
Test 2. Should print: 0 0 : 0
4+
0 0 : 0

test/pj-roundtrip.test

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/bash
22
# This script tests: ppmtopj pjtoppm
3-
# Also requires: pamseq pnmremap pamtopnm pamdepth ppmtopgm pgmtopbm
3+
# Also requires: pamseq pnmremap pamtopnm pamdepth ppmtoppm
44

55
echo "Test 1. Should print: 0 0 0 0 : 0"
66

@@ -15,8 +15,12 @@ ppmtopj ${test8_ppm} | pjtoppm | pamdepth 1 | \
1515

1616
rm ${test8_ppm}
1717

18-
echo "Test 2. Should print: 0 0 0 0 0 : 0"
18+
echo "Test 2. Should print: 0 0 : 0"
1919

20-
ppmtopj testgrid.pbm | pjtoppm | ppmtopgm | pgmtopbm | \
21-
cmp -s - testgrid.pbm > /dev/null
20+
testout_ppm=${tmpdir}/testout.ppm
21+
22+
ppmtopj testgrid.pbm | pjtoppm > ${testout_ppm}
23+
ppmtoppm < testgrid.pbm | cmp -s - ${testout_ppm} > /dev/null
2224
echo ${PIPESTATUS[@]} ":" $?
25+
26+
rm ${testout_ppm}

0 commit comments

Comments
 (0)