]> granicus.if.org Git - graphviz/commitdiff
Add test_installation.py
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 19 Apr 2020 16:43:55 +0000 (18:43 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 22 Apr 2020 04:33:41 +0000 (06:33 +0200)
tests/regression_tests/installation/Makefile.am
tests/regression_tests/installation/test_installation.py [new file with mode: 0644]

index 7fd819bdfba97c6e0fa5b44fba43e1fa6269f59b..1fe871c88d4d486fda3fa8edc8fb6da09208341d 100644 (file)
@@ -1,4 +1,6 @@
 check test rtest:
        ./check_installation.sh
 
-EXTRA_DIST = check_installation.sh
+EXTRA_DIST = \
+       check_installation.sh \
+       test_installation.py
diff --git a/tests/regression_tests/installation/test_installation.py b/tests/regression_tests/installation/test_installation.py
new file mode 100644 (file)
index 0000000..daf43b3
--- /dev/null
@@ -0,0 +1,9 @@
+import subprocess
+import os
+
+def test_installation():
+    os.chdir(os.path.dirname(os.path.realpath(__file__)))
+    result = subprocess.Popen(['bash', './check_installation.sh'])
+    text = result.communicate()[0]
+    print(text)
+    assert result.returncode == 0