File: cli

package info (click to toggle)
scour 0.37-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,032 kB
  • sloc: python: 4,983; makefile: 42; perl: 35; sh: 7
file content (13 lines) | stat: -rw-r--r-- 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