File: dot

package info (click to toggle)
graphviz 14.1.1-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 139,440 kB
  • sloc: ansic: 142,129; cpp: 11,960; python: 7,770; makefile: 4,043; yacc: 3,030; xml: 2,972; tcl: 2,495; sh: 1,388; objc: 1,159; java: 560; lex: 423; perl: 243; awk: 156; pascal: 139; php: 58; ruby: 49; cs: 31; sed: 1
file content (16 lines) | stat: -rwxr-xr-x 336 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# smoke test for "dot"
# Author: Martin Pitt <martin.pitt@ubuntu.com>

set -eu

cat <<EOF > $AUTOPKGTEST_TMP/simple.dot
digraph {
        One -> Two
        Two -> Three
        Three -> One
}
EOF

dot -Tpng $AUTOPKGTEST_TMP/simple.dot > $AUTOPKGTEST_TMP/simple.png
file $AUTOPKGTEST_TMP/simple.png | grep -q "PNG image data"