| 1 |
# Graphviz test suite |
| 2 |
# Tests are separated by blank or comment lines. |
| 3 |
# Tests have the following syntax: |
| 4 |
# testname |
| 5 |
# Test input (name of .gv file) |
| 6 |
# One or more subtests of the form: |
| 7 |
# layout_alg output_format additional_flags |
| 8 |
# |
| 9 |
# For example, the test |
| 10 |
# Shapes |
| 11 |
# shapes.gv |
| 12 |
# dot ps |
| 13 |
# neato png "-Gsize=3,3 -Ncolor=red" |
| 14 |
# specifies the "shapes" test, using shapes.gv as input, and |
| 15 |
# run "dot -Tps" and "neato -Tpng -Gsize=3,3 -Ncolor=red" on the input. |
| 16 |
# |
| 17 |
#Test graph names indicate the image attribute and the imagepath attribute |
| 18 |
#being tested. For instance val_val.gv, is a graph that has the image |
| 19 |
#attribute directory set to a valid directory name and the imagepath attribute |
| 20 |
#directory set to a valid directory name. Likewise inv_inv.gv has both |
| 21 |
#attribute directories set to an invalid directory name and nul_nul.gv has |
| 22 |
#no setting for the image attribute and the imagepath attribute directories. |
| 23 |
#Graphs named with combinations of val, inv and nul have |
| 24 |
#image and imagepath attributes set correspondingly. |
| 25 |
|
| 26 |
#Since this test relies on absolute pathnames, it is necessary to run a |
| 27 |
#shell script to generate the test graphs. |
| 28 |
#Run imagepath_test.sh from within the imagepath_test directory before running |
| 29 |
#rtest on this test suite. This script creates the input graphs and output png |
| 30 |
#files and stores them in the graphs and imagepath_test/nshare directories. |
| 31 |
#The png files may be copied into the nshare directory by running |
| 32 |
#imagepath_test/save_png_files.sh when it is appropriate to update the expected |
| 33 |
#test output. |
| 34 |
|
| 35 |
#The graphs in this test suite should also be tested using the mac os user |
| 36 |
#interface. Copy rtest/imagepath_test/image.jpg to the directory graphviz is run |
| 37 |
#from. Select each of the test graphs from the graphviz application and visually |
| 38 |
#determine whether the tests complete successfully. The image that is displayed |
| 39 |
#during the test should correspond to the expected result message that appears |
| 40 |
#below it. |
| 41 |
|
| 42 |
val_val |
| 43 |
val_val.gv |
| 44 |
dot png |
| 45 |
|
| 46 |
val_inv |
| 47 |
val_inv.gv |
| 48 |
dot png |
| 49 |
|
| 50 |
val_nul |
| 51 |
val_nul.gv |
| 52 |
dot png |
| 53 |
|
| 54 |
inv_val |
| 55 |
inv_val.gv |
| 56 |
dot png |
| 57 |
|
| 58 |
inv_inv |
| 59 |
inv_inv.gv |
| 60 |
dot png |
| 61 |
|
| 62 |
inv_nul |
| 63 |
inv_nul.gv |
| 64 |
dot png |
| 65 |
|
| 66 |
nul_val |
| 67 |
nul_val.gv |
| 68 |
dot png |
| 69 |
|
| 70 |
nul_inv |
| 71 |
nul_inv.gv |
| 72 |
dot png |
| 73 |
|
| 74 |
nul_nul |
| 75 |
nul_nul.gv |
| 76 |
dot png |
| 77 |
|