Browse code

tests: Import Graphviz tests.

Jose Fonseca authored on 13/02/2016 23:53:31
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,21 @@
1
+/*
2
+The command line is
3
+
4
+  dot -Tps -Grankdir=LR states.gv > states.ps
5
+
6
+and the file is:
7
+*/
8
+digraph states {
9
+    size="3,2";
10
+	rankdir=LR;
11
+    node [shape=ellipse];
12
+    empty [label = "Empty"];
13
+    stolen [label = "Stolen"];
14
+    waiting [label = "Waiting"];
15
+    full [label = "Full"];
16
+    empty -> full [label = "return"]
17
+    empty -> stolen [label = "dispatch", wt=28]
18
+    stolen -> full [label = "return"];
19
+    stolen -> waiting [label = "touch"];
20
+    waiting -> full [label = "return"];
21
+  }