File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
Test 1. Should print: 0 0 0 0 : 0
2
2
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
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# This script tests: ppmtopj pjtoppm
3
- # Also requires: pamseq pnmremap pamtopnm pamdepth ppmtopgm pgmtopbm
3
+ # Also requires: pamseq pnmremap pamtopnm pamdepth ppmtoppm
4
4
5
5
echo " Test 1. Should print: 0 0 0 0 : 0"
6
6
@@ -15,8 +15,12 @@ ppmtopj ${test8_ppm} | pjtoppm | pamdepth 1 | \
15
15
16
16
rm ${test8_ppm}
17
17
18
- echo " Test 2. Should print: 0 0 0 0 0 : 0"
18
+ echo " Test 2. Should print: 0 0 : 0"
19
19
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
22
24
echo ${PIPESTATUS[@]} " :" $?
25
+
26
+ rm ${testout_ppm}
You can’t perform that action at this time.
0 commit comments