# Graphviz test suite
# Tests are separated by blank or comment lines.
# Tests have the following syntax:
#  testname
#  Test input (name of .gv file or =)
#    In the last case, the input file is taken as testname.gv
#  One or more subtests of the form:
#     layout_alg output_format additional_flags
#
# For example, the test
#   Shapes
#   shapes.gv
#   dot ps
#   neato png "-Gsize=3,3 -Ncolor=red"
# specifies the "shapes" test, using shapes.gv as input, and
# run "dot -Tps" and "neato -Tpng -Gsize=3,3 -Ncolor=red" on the input.

shapes
shapes.gv
dot gv
dot ps

crazy
crazy.gv
dot png
dot ps

arrows
arrows.gv
dot gv
dot ps

arrowsize
arrowsize.gv
dot png

center
center.gv
dot ps
dot png -Gmargin=1

# color encodings
# multiple edge colors
color
color.gv
dot png
dot png -Gbgcolor=lightblue

decorate
decorate.gv
dot png

record
record.gv
dot gv
dot ps

html
html.gv
dot gv
dot ps

html2
html2.gv
dot gv
dot ps
dot svg

pslib
pslib.gv
dot ps -lgraphs/sdl.ps

user_shapes
user_shapes.gv
dot ps
dot png:gd
#dot png - doesn't work: Warning: No loadimage plugin for "gif:cairo"

# bug - the epsf version has problems
ps_user_shapes
ps_user_shapes.gv
dot ps -Nshapefile=graphs/dice.ps
#dot ps -Nshape=epsf -Nshapefile=graphs/dice.ps

colorscheme
colorscheme.gv
dot ps
dot png

compound
compound.gv
dot gv

dir
dir.gv
dot ps

clusters
clusters.gv
dot ps
dot png

clustlabel
clustlabel.gv
dot ps -Glabelloc=t -Glabeljust=r
dot ps -Glabelloc=b -Glabeljust=r
dot ps -Glabelloc=t -Glabeljust=l
dot ps -Glabelloc=b -Glabeljust=l
dot ps -Glabelloc=t -Glabeljust=c
dot ps -Glabelloc=b -Glabeljust=c
dot ps -Glabelloc=t
dot ps -Glabelloc=b

rootlabel
rootlabel.gv
dot ps -Glabelloc=t -Glabeljust=r
dot ps -Glabelloc=b -Glabeljust=r
dot ps -Glabelloc=t -Glabeljust=l
dot ps -Glabelloc=b -Glabeljust=l
dot ps -Glabelloc=t -Glabeljust=c
dot ps -Glabelloc=b -Glabeljust=c
dot ps -Glabelloc=t
dot ps -Glabelloc=b

layers
layers.gv
dot ps

# check mode=hier
mode
mode.gv
neato ps -Gmode=KK
neato ps -Gmode=hier
neato ps -Gmode=hier -Glevelsgap=1

model
mode.gv
neato ps -Gmodel=circuit
neato ps -Goverlap=false -Gmodel=subset

# cairo versions have problems
nojustify
nojustify.gv
dot png
dot png:gd
dot ps
dot ps:cairo

# bug
ordering
ordering.gv
dot gv -Gordering=in
dot gv -Gordering=out

overlap
overlap.gv
neato gv -Goverlap=false
neato gv -Goverlap=scale

pack
pack.gv
neato gv
neato gv -Gpack=20
neato gv -Gpackmode=graph

page
mode.gv
neato ps -Gpage=8.5,11
neato ps -Gpage=8.5,11 -Gpagedir=TL
neato ps -Gpage=8.5,11 -Gpagedir=TR

# pencolor, fontcolor, fillcolor
colors
colors.gv
dot ps

polypoly
polypoly.gv
dot ps
dot png

ports
ports.gv
dot gv

rotate
crazy.gv
dot png -Glandscape
dot ps -Glandscape
dot png -Grotate=90
dot ps -Grotate=90

rankdir
crazy.gv
dot gv -Grankdir=LR
dot gv -Grankdir=BT
dot gv -Grankdir=RL

url
url.gv
dot ps2
dot svg -Gstylesheet=stylesheet
dot imap
dot cmapx
dot imap_np
dot cmapx_np

viewport
viewport.gv
neato png -Gviewport=300,300 -n2
neato ps -Gviewport=300,300 -n2
neato png -Gviewport=300,300,1,200,620 -n2
neato ps -Gviewport=300,300,1,200,620 -n2
neato png -Gviewport=300,300,2,200,620 -n2
neato ps -Gviewport=300,300,2,200,620 -n2

rowcolsep
rowcolsep.gv
dot gv -Gnodesep=0.5
dot gv -Granksep=1.5

size
mode.gv
neato ps -Gsize=5,5
neato png -Gsize=5,5

# size with !
size_ex
root.gv
dot ps -Gsize=6,6!
dot png -Gsize=6,6!

dotsplines
size.gv
dot gv -Gsplines=line
dot gv -Gsplines=polyline
#dot gv -Gsplines=ortho

neatosplines
overlap.gv
neato gv -Goverlap=false -Gsplines
neato gv -Goverlap=false -Gsplines=polyline
#neato gv -Goverlap=false -Gsplines=ortho

style
style.gv
dot ps
dot png

# edge clipping
edgeclip
edgeclip.gv
dot gv

# edge weight
weight
weight.gv
dot gv

root
root.gv
twopi gv

cairo
cairo.gv
dot ps:cairo
dot png:cairo
dot svg:cairo

flatedge
flatedge.gv
dot gv

nestedclust
nestedclust
dot gv

rd_rules
rd_rules.gv
dot png

sq_rules
sq_rules.gv
dot png

# FIXME: Re-enable when https://gitlab.com/graphviz/graphviz/-/issues/1690 is fixed
#fdp_clus
#fdp.gv
#fdp png

japanese
japanese.gv
dot png

russian
russian.gv
dot png

AvantGarde
AvantGarde.gv
dot png
dot ps

Bookman
Bookman.gv
dot png
dot ps

Helvetica
Helvetica.gv
dot png
dot ps

NewCenturySchlbk
NewCenturySchlbk.gv
dot png
dot ps

Palatino
Palatino.gv
dot png
dot ps

Times
Times.gv
dot png
dot ps

ZapfChancery
ZapfChancery.gv
dot png
dot ps

ZapfDingbats
ZapfDingbats.gv
dot png
dot ps

xlabels
xlabels.gv
dot png
neato png

sides
sides.gv
dot ps

