]> granicus.if.org Git - graphviz/commitdiff
Added support for Apple imagepath testing.
authorDwight Perry <dperry@research.att.com>
Fri, 2 Mar 2012 22:41:19 +0000 (17:41 -0500)
committerDwight Perry <dperry@research.att.com>
Fri, 2 Mar 2012 22:41:19 +0000 (17:41 -0500)
22 files changed:
rtest/graphs/inv_inv.gv [new file with mode: 0644]
rtest/graphs/inv_nul.gv [new file with mode: 0644]
rtest/graphs/inv_val.gv [new file with mode: 0644]
rtest/graphs/nul_inv.gv [new file with mode: 0644]
rtest/graphs/nul_nul.gv [new file with mode: 0644]
rtest/graphs/nul_val.gv [new file with mode: 0644]
rtest/graphs/val_inv.gv [new file with mode: 0644]
rtest/graphs/val_nul.gv [new file with mode: 0644]
rtest/graphs/val_val.gv [new file with mode: 0644]
rtest/imagepath_test/gen_graph.sh
rtest/imagepath_test/imagepath_test.sh
rtest/nshare/ZapfChancery_dot.png
rtest/nshare/inv_inv_dot.png [new file with mode: 0644]
rtest/nshare/inv_nul_dot.png [new file with mode: 0644]
rtest/nshare/inv_val_dot.png [new file with mode: 0644]
rtest/nshare/nul_inv_dot.png [new file with mode: 0644]
rtest/nshare/nul_nul_dot.png [new file with mode: 0644]
rtest/nshare/nul_val_dot.png [new file with mode: 0644]
rtest/nshare/val_inv_dot.png [new file with mode: 0644]
rtest/nshare/val_nul_dot.png [new file with mode: 0644]
rtest/nshare/val_val_dot.png [new file with mode: 0644]
rtest/table_rules_test.txt [deleted file]

diff --git a/rtest/graphs/inv_inv.gv b/rtest/graphs/inv_inv.gv
new file mode 100644 (file)
index 0000000..06c192a
--- /dev/null
@@ -0,0 +1,10 @@
+graph G { imagepath="/inv_dir/"
+
+a[shape=plaintext,label=<<TABLE CELLSPACING="2" CELLPADDING="2" BORDER="0" 
+CELLBORDER="0"><TR><TD><TABLE CELLSPACING="3" CELLPADDING="1" BORDER="0" 
+CELLBORDER="0">
+<TR><TD ALIGN="left"><FONT POINT-SIZE="30.0" FACE="Helvetica-Bold">image attribute (invalid absolute pathname)</FONT></TD></TR><TR><TD ALIGN="left"><FONT POINT-SIZE="30.0" FACE="Helvetica-Bold">imagepath attribute (invalid absolute pathname)</FONT></TD></TR>
+</TABLE></TD></TR></TABLE>>];
+b[shape=box,fontsize=30,fontname="Helvetica-Bold",label="no image should be displayed",image="/inv_dir/image.jpg",labelloc=b];
+}
+
diff --git a/rtest/graphs/inv_nul.gv b/rtest/graphs/inv_nul.gv
new file mode 100644 (file)
index 0000000..fca8603
--- /dev/null
@@ -0,0 +1,10 @@
+graph G { imagepath=""
+
+a[shape=plaintext,label=<<TABLE CELLSPACING="2" CELLPADDING="2" BORDER="0" 
+CELLBORDER="0"><TR><TD><TABLE CELLSPACING="3" CELLPADDING="1" BORDER="0" 
+CELLBORDER="0">
+<TR><TD ALIGN="left"><FONT POINT-SIZE="30.0" FACE="Helvetica-Bold">image attribute (invalid absolute pathname)</FONT></TD></TR><TR><TD ALIGN="left"><FONT POINT-SIZE="30.0" FACE="Helvetica-Bold">imagepath attribute (null)</FONT></TD></TR>
+</TABLE></TD></TR></TABLE>>];
+b[shape=box,fontsize=30,fontname="Helvetica-Bold",label="no image should be displayed",image="/inv_dir/image.jpg",labelloc=b];
+}
+
diff --git a/rtest/graphs/inv_val.gv b/rtest/graphs/inv_val.gv
new file mode 100644 (file)
index 0000000..5e87398
--- /dev/null
@@ -0,0 +1,10 @@
+graph G { imagepath="/home/dperry/work_related/graphviz_repos/graphviz/rtest/imagepath_test/imagepath_dir/"
+
+a[shape=plaintext,label=<<TABLE CELLSPACING="2" CELLPADDING="2" BORDER="0" 
+CELLBORDER="0"><TR><TD><TABLE CELLSPACING="3" CELLPADDING="1" BORDER="0" 
+CELLBORDER="0">
+<TR><TD ALIGN="left"><FONT POINT-SIZE="30.0" FACE="Helvetica-Bold">image attribute (invalid absolute pathname)</FONT></TD></TR><TR><TD ALIGN="left"><FONT POINT-SIZE="30.0" FACE="Helvetica-Bold">imagepath attribute (valid absolute pathname)</FONT></TD></TR>
+</TABLE></TD></TR></TABLE>>];
+b[shape=box,fontsize=30,fontname="Helvetica-Bold",label="no image should be displayed",image="/inv_dir/image.jpg",labelloc=b];
+}
+
diff --git a/rtest/graphs/nul_inv.gv b/rtest/graphs/nul_inv.gv
new file mode 100644 (file)
index 0000000..b6f37f0
--- /dev/null
@@ -0,0 +1,10 @@
+graph G { imagepath="/inv_dir/"
+
+a[shape=plaintext,label=<<TABLE CELLSPACING="2" CELLPADDING="2" BORDER="0" 
+CELLBORDER="0"><TR><TD><TABLE CELLSPACING="3" CELLPADDING="1" BORDER="0" 
+CELLBORDER="0">
+<TR><TD ALIGN="left"><FONT POINT-SIZE="30.0" FACE="Helvetica-Bold">image attribute (null)</FONT></TD></TR><TR><TD ALIGN="left"><FONT POINT-SIZE="30.0" FACE="Helvetica-Bold">imagepath attribute (invalid absolute pathname)</FONT></TD></TR>
+</TABLE></TD></TR></TABLE>>];
+b[shape=box,fontsize=30,fontname="Helvetica-Bold",label="no image for Graphviz.app, else image from working directory",image="image.jpg",labelloc=b];
+}
+
diff --git a/rtest/graphs/nul_nul.gv b/rtest/graphs/nul_nul.gv
new file mode 100644 (file)
index 0000000..f6f87e9
--- /dev/null
@@ -0,0 +1,10 @@
+graph G { imagepath=""
+
+a[shape=plaintext,label=<<TABLE CELLSPACING="2" CELLPADDING="2" BORDER="0" 
+CELLBORDER="0"><TR><TD><TABLE CELLSPACING="3" CELLPADDING="1" BORDER="0" 
+CELLBORDER="0">
+<TR><TD ALIGN="left"><FONT POINT-SIZE="30.0" FACE="Helvetica-Bold">image attribute (null)</FONT></TD></TR><TR><TD ALIGN="left"><FONT POINT-SIZE="30.0" FACE="Helvetica-Bold">imagepath attribute (null)</FONT></TD></TR>
+</TABLE></TD></TR></TABLE>>];
+b[shape=box,fontsize=30,fontname="Helvetica-Bold",label="image in working directory should be displayed",image="image.jpg",labelloc=b];
+}
+
diff --git a/rtest/graphs/nul_val.gv b/rtest/graphs/nul_val.gv
new file mode 100644 (file)
index 0000000..b14a818
--- /dev/null
@@ -0,0 +1,10 @@
+graph G { imagepath="/home/dperry/work_related/graphviz_repos/graphviz/rtest/imagepath_test/imagepath_dir/"
+
+a[shape=plaintext,label=<<TABLE CELLSPACING="2" CELLPADDING="2" BORDER="0" 
+CELLBORDER="0"><TR><TD><TABLE CELLSPACING="3" CELLPADDING="1" BORDER="0" 
+CELLBORDER="0">
+<TR><TD ALIGN="left"><FONT POINT-SIZE="30.0" FACE="Helvetica-Bold">image attribute (null)</FONT></TD></TR><TR><TD ALIGN="left"><FONT POINT-SIZE="30.0" FACE="Helvetica-Bold">imagepath attribute (valid absolute pathname)</FONT></TD></TR>
+</TABLE></TD></TR></TABLE>>];
+b[shape=box,fontsize=30,fontname="Helvetica-Bold",label="image from imagepath attribute directory or working directory should be displayed",image="image.jpg",labelloc=b];
+}
+
diff --git a/rtest/graphs/val_inv.gv b/rtest/graphs/val_inv.gv
new file mode 100644 (file)
index 0000000..0998ab2
--- /dev/null
@@ -0,0 +1,10 @@
+graph G { imagepath="/inv_dir/"
+
+a[shape=plaintext,label=<<TABLE CELLSPACING="2" CELLPADDING="2" BORDER="0" 
+CELLBORDER="0"><TR><TD><TABLE CELLSPACING="3" CELLPADDING="1" BORDER="0" 
+CELLBORDER="0">
+<TR><TD ALIGN="left"><FONT POINT-SIZE="30.0" FACE="Helvetica-Bold">image attribute (valid absolute pathname)</FONT></TD></TR><TR><TD ALIGN="left"><FONT POINT-SIZE="30.0" FACE="Helvetica-Bold">imagepath attribute (invalid absolute pathname)</FONT></TD></TR>
+</TABLE></TD></TR></TABLE>>];
+b[shape=box,fontsize=30,fontname="Helvetica-Bold",label="image from image attribute directory should be displayed",image="/home/dperry/work_related/graphviz_repos/graphviz/rtest/imagepath_test/image_dir/image.jpg",labelloc=b];
+}
+
diff --git a/rtest/graphs/val_nul.gv b/rtest/graphs/val_nul.gv
new file mode 100644 (file)
index 0000000..b34155f
--- /dev/null
@@ -0,0 +1,10 @@
+graph G { imagepath=""
+
+a[shape=plaintext,label=<<TABLE CELLSPACING="2" CELLPADDING="2" BORDER="0" 
+CELLBORDER="0"><TR><TD><TABLE CELLSPACING="3" CELLPADDING="1" BORDER="0" 
+CELLBORDER="0">
+<TR><TD ALIGN="left"><FONT POINT-SIZE="30.0" FACE="Helvetica-Bold">image attribute (valid absolute pathname)</FONT></TD></TR><TR><TD ALIGN="left"><FONT POINT-SIZE="30.0" FACE="Helvetica-Bold">imagepath attribute (null)</FONT></TD></TR>
+</TABLE></TD></TR></TABLE>>];
+b[shape=box,fontsize=30,fontname="Helvetica-Bold",label="image from image attribute directory should be displayed",image="/home/dperry/work_related/graphviz_repos/graphviz/rtest/imagepath_test/image_dir/image.jpg",labelloc=b];
+}
+
diff --git a/rtest/graphs/val_val.gv b/rtest/graphs/val_val.gv
new file mode 100644 (file)
index 0000000..66ac1fe
--- /dev/null
@@ -0,0 +1,10 @@
+graph G { imagepath="/home/dperry/work_related/graphviz_repos/graphviz/rtest/imagepath_test/imagepath_dir/"
+
+a[shape=plaintext,label=<<TABLE CELLSPACING="2" CELLPADDING="2" BORDER="0" 
+CELLBORDER="0"><TR><TD><TABLE CELLSPACING="3" CELLPADDING="1" BORDER="0" 
+CELLBORDER="0">
+<TR><TD ALIGN="left"><FONT POINT-SIZE="30.0" FACE="Helvetica-Bold">image attribute (valid absolute pathname)</FONT></TD></TR><TR><TD ALIGN="left"><FONT POINT-SIZE="30.0" FACE="Helvetica-Bold">imagepath attribute (valid absolute pathname)</FONT></TD></TR>
+</TABLE></TD></TR></TABLE>>];
+b[shape=box,fontsize=30,fontname="Helvetica-Bold",label="image from image attribute directory should be displayed",image="/home/dperry/work_related/graphviz_repos/graphviz/rtest/imagepath_test/image_dir/image.jpg",labelloc=b];
+}
+
index 4477d6bda517754ae691c5db13dfb7447626f55a..b38320884866e1e18c2faa0a45d96dcab864ba12 100755 (executable)
@@ -95,6 +95,6 @@ sed -e s/image_attr/image\=\"${image}image.jpg\",labelloc=b/ \
 -e s/imagepath_attr/imagepath\=\"${imagepath}\"/ base.gv | tr '^' ' ' > ../graphs/${outfile}.gv
 
 #place the image file into the nshare directory
-dot -Tpng -o nshare/${outfile}_dot.png ../graphs/${outfile}.gv
+dot -Tpng -o ../nshare/${outfile}_dot.png ../graphs/${outfile}.gv
 
 
index 4b9db1d1b9d024edf736f949a80c0aaab5290da8..9c3c768a5f14a39d93f775b7dd2f29fecb784e32 100755 (executable)
@@ -1,3 +1,4 @@
+#!/home/dperry/work_related/packages/arch/linux.i386-64/src/cmd/ksh93/ksh
 #! /bin/ksh
 
 let count=1
index b3f7e2f60ffafebfe3757b6380dc0793b1f75c69..e60600531736932c4d428424be26f944b56cf49a 100644 (file)
Binary files a/rtest/nshare/ZapfChancery_dot.png and b/rtest/nshare/ZapfChancery_dot.png differ
diff --git a/rtest/nshare/inv_inv_dot.png b/rtest/nshare/inv_inv_dot.png
new file mode 100644 (file)
index 0000000..1b4b67c
Binary files /dev/null and b/rtest/nshare/inv_inv_dot.png differ
diff --git a/rtest/nshare/inv_nul_dot.png b/rtest/nshare/inv_nul_dot.png
new file mode 100644 (file)
index 0000000..593ba36
Binary files /dev/null and b/rtest/nshare/inv_nul_dot.png differ
diff --git a/rtest/nshare/inv_val_dot.png b/rtest/nshare/inv_val_dot.png
new file mode 100644 (file)
index 0000000..75bc02d
Binary files /dev/null and b/rtest/nshare/inv_val_dot.png differ
diff --git a/rtest/nshare/nul_inv_dot.png b/rtest/nshare/nul_inv_dot.png
new file mode 100644 (file)
index 0000000..c6261d7
Binary files /dev/null and b/rtest/nshare/nul_inv_dot.png differ
diff --git a/rtest/nshare/nul_nul_dot.png b/rtest/nshare/nul_nul_dot.png
new file mode 100644 (file)
index 0000000..f99eeff
Binary files /dev/null and b/rtest/nshare/nul_nul_dot.png differ
diff --git a/rtest/nshare/nul_val_dot.png b/rtest/nshare/nul_val_dot.png
new file mode 100644 (file)
index 0000000..042adcd
Binary files /dev/null and b/rtest/nshare/nul_val_dot.png differ
diff --git a/rtest/nshare/val_inv_dot.png b/rtest/nshare/val_inv_dot.png
new file mode 100644 (file)
index 0000000..156c54d
Binary files /dev/null and b/rtest/nshare/val_inv_dot.png differ
diff --git a/rtest/nshare/val_nul_dot.png b/rtest/nshare/val_nul_dot.png
new file mode 100644 (file)
index 0000000..882c5ca
Binary files /dev/null and b/rtest/nshare/val_nul_dot.png differ
diff --git a/rtest/nshare/val_val_dot.png b/rtest/nshare/val_val_dot.png
new file mode 100644 (file)
index 0000000..db6e265
Binary files /dev/null and b/rtest/nshare/val_val_dot.png differ
diff --git a/rtest/table_rules_test.txt b/rtest/table_rules_test.txt
deleted file mode 100644 (file)
index 8bc050b..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-# Graphviz test suite
-# Tests are separated by blank or comment lines.
-# Tests have the following syntax:
-#  testname
-#  Test input (one-line graph or 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.
-
-rd_tbl_basic
-=
-dot png
-
-rd_tbl_border
-=
-dot png
-
-rd_tbl_all
-=
-dot png
-
-sq_tbl_basic
-=
-dot png
-
-sq_tbl_border
-=
-dot png
-
-sq_tbl_all
-=
-dot png
-
-
-
-