File: cli

package info (click to toggle)
scour 0.38.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 1,408 kB
  • sloc: python: 5,152; makefile: 49; perl: 35; sh: 17
file content (13 lines) | stat: -rwxr-xr-x 373 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
set -e

scour --help | grep Usage

DEST="$AUTOPKGTEST_TMP/out.svg"
scour -i unittests/polygon.svg -o "$DEST" 2>&1
# should not be identical
! cmp unittests/polygon.svg "$DEST"
# but almost
/usr/share/scour/cmpsvg unittests/polygon.svg "$DEST"
# two different SVGs should compare unequal
! /usr/share/scour/cmpsvg unittests/polygon.svg unittests/sodipodi.svg 2>&1