]> granicus.if.org Git - graphviz/commitdiff
add a test case for #2082
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Jun 2021 01:10:17 +0000 (18:10 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Jun 2021 16:13:08 +0000 (09:13 -0700)
rtest/2082.dot [new file with mode: 0644]
rtest/test_regression.py

diff --git a/rtest/2082.dot b/rtest/2082.dot
new file mode 100644 (file)
index 0000000..4a05900
--- /dev/null
@@ -0,0 +1,22 @@
+digraph "Grouped Workers" {
+       graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="Grouped Workers" nodesep=0.60 pad=2.0 rankdir=TB ranksep=0.75 splines=ortho]
+       node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4]
+       edge [color="#7B8894"]
+       e1fd845a83e841e98a47939a50a5649d [label=lb height=1.9 image="/Users/srajagopalan/.pyenv/versions/3.9.0/lib/python3.9/site-packages/resources/aws/network/elastic-load-balancing.png" shape=none]
+       "9ecc9661ac624e31b06a5bd0fdb1d896" [label=worker1 height=1.9 image="/Users/srajagopalan/.pyenv/versions/3.9.0/lib/python3.9/site-packages/resources/aws/compute/ec2.png" shape=none]
+       cfabeae2444d467eaf50711080f396f2 [label=worker2 height=1.9 image="/Users/srajagopalan/.pyenv/versions/3.9.0/lib/python3.9/site-packages/resources/aws/compute/ec2.png" shape=none]
+       "7c6d3e67b21c442397a6f22adf92bde3" [label=worker3 height=1.9 image="/Users/srajagopalan/.pyenv/versions/3.9.0/lib/python3.9/site-packages/resources/aws/compute/ec2.png" shape=none]
+       ebab3ee997594b25971b9c8cc5527035 [label=worker4 height=1.9 image="/Users/srajagopalan/.pyenv/versions/3.9.0/lib/python3.9/site-packages/resources/aws/compute/ec2.png" shape=none]
+       "02c4e90c3fc645e4b0e8f0e5bef12694" [label=worker5 height=1.9 image="/Users/srajagopalan/.pyenv/versions/3.9.0/lib/python3.9/site-packages/resources/aws/compute/ec2.png" shape=none]
+       e1fd845a83e841e98a47939a50a5649d -> "9ecc9661ac624e31b06a5bd0fdb1d896" [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13]
+       e1fd845a83e841e98a47939a50a5649d -> cfabeae2444d467eaf50711080f396f2 [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13]
+       e1fd845a83e841e98a47939a50a5649d -> "7c6d3e67b21c442397a6f22adf92bde3" [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13]
+       e1fd845a83e841e98a47939a50a5649d -> ebab3ee997594b25971b9c8cc5527035 [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13]
+       e1fd845a83e841e98a47939a50a5649d -> "02c4e90c3fc645e4b0e8f0e5bef12694" [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13]
+       "2fbd65667241455bb04da4ffb465db70" [label=events height=1.9 image="/Users/srajagopalan/.pyenv/versions/3.9.0/lib/python3.9/site-packages/resources/aws/database/rds.png" shape=none]
+       "9ecc9661ac624e31b06a5bd0fdb1d896" -> "2fbd65667241455bb04da4ffb465db70" [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13]
+       cfabeae2444d467eaf50711080f396f2 -> "2fbd65667241455bb04da4ffb465db70" [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13]
+       "7c6d3e67b21c442397a6f22adf92bde3" -> "2fbd65667241455bb04da4ffb465db70" [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13]
+       ebab3ee997594b25971b9c8cc5527035 -> "2fbd65667241455bb04da4ffb465db70" [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13]
+       "02c4e90c3fc645e4b0e8f0e5bef12694" -> "2fbd65667241455bb04da4ffb465db70" [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13]
+}
index 96849fab8687dd388050fc0d7225f20a4982cdff..5dc374d4a48e9f231924b0d741e51f0461de9ae0 100644 (file)
@@ -816,6 +816,21 @@ def test_2078():
 
   assert "subgraph" in stderr.lower(), "subgraph not mentioned in error message"
 
+@pytest.mark.xfail()
+def test_2082():
+  """
+  Check a bug in inside_polygon has not been reintroduced.
+  https://gitlab.com/graphviz/graphviz/-/issues/2082
+  """
+
+  # locate our associated test case in this directory
+  input = Path(__file__).parent / "2082.dot"
+  assert input.exists(), "unexpectedly missing test case"
+
+  # ask Graphviz to process it, which should generate an assertion failure if
+  # this bug has been reintroduced
+  subprocess.check_call(["dot", "-Tpng", "-o", os.devnull, input])
+
 def test_package_version():
   """
   The graphviz_version.h header should define a non-empty PACKAGE_VERSION