#! /bin/sh # This script tests: pamtosvg # Also requires: ppmmake ppmdraw tmpdir=${tmpdir:-/tmp} testline_svg=${tmpdir}/testline.svg testgrid_svg=${tmpdir}/testgrid.svg cat > ${testline_svg} << EOF EOF echo "Test 1. Should print match" ppmmake black 20 20 | ppmdraw -script="line 5 2 15 17" | pamtosvg |\ cmp -s ${testline_svg} - && echo "match" || echo "no match" rm ${testline_svg} cat > ${testgrid_svg} << EOF EOF echo "Test 2. Should print match" pamtosvg testgrid.pbm | tee /tmp/a2 |\ cmp -s ${testgrid_svg} - && echo "match" || echo "no match" rm ${testgrid_svg}