]> granicus.if.org Git - graphviz/commitdiff
Add installation test
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 15 Apr 2020 15:34:43 +0000 (17:34 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 22 Apr 2020 03:42:27 +0000 (05:42 +0200)
ci/test.sh
configure.ac
tests/regression_tests/Makefile.am
tests/regression_tests/installation/Makefile.am [new file with mode: 0644]
tests/regression_tests/installation/check_installation.sh [new file with mode: 0755]

index 51e1d7d520a1a41e8815d7322e78d1257e1ebe6e..c6c9b0e4719ef26b0e1a7d90eb78f4a36aa76f0f 100755 (executable)
@@ -31,6 +31,7 @@ else
 fi
 cd graphviz-${GV_VERSION}
 ./configure
+tests/regression_tests/installation/check_installation.sh
 ln -s /usr/bin/dot cmd/dot/dot_builtins
 ln -s /usr/bin/diffimg contrib/diffimg/diffimg
 make -C tests/regression_tests/shapes check
index 5e098aa2b595b806f5d7971f2c49ac5d1582ffe5..8775da43e17da4bfd85180c016b516b192704ebc 100644 (file)
@@ -3099,6 +3099,7 @@ AC_CONFIG_FILES(Makefile
        tests/unit_tests/lib/Makefile
        tests/unit_tests/lib/common/Makefile
        tests/regression_tests/Makefile
+       tests/regression_tests/installation/Makefile
        tests/regression_tests/shapes/Makefile
        tests/regression_tests/shapes/reference/Makefile
        tests/regression_tests/vuln/Makefile
index ea04cf01fca5c7fe27d181cd48e7ba56fb8d0934..41125d9f3151b5b83b38c7cc05749fa4145ea0c3 100644 (file)
@@ -1,3 +1,3 @@
-SUBDIRS = shapes vuln
+SUBDIRS = installation shapes vuln
 
 EXTRA_DIST = regression_test_helpers.py
diff --git a/tests/regression_tests/installation/Makefile.am b/tests/regression_tests/installation/Makefile.am
new file mode 100644 (file)
index 0000000..7fd819b
--- /dev/null
@@ -0,0 +1,4 @@
+check test rtest:
+       ./check_installation.sh
+
+EXTRA_DIST = check_installation.sh
diff --git a/tests/regression_tests/installation/check_installation.sh b/tests/regression_tests/installation/check_installation.sh
new file mode 100755 (executable)
index 0000000..33e34ba
--- /dev/null
@@ -0,0 +1 @@
+dot -V 2>&1 | grep "dot - graphviz version ${GV_VERSION}" || (dot -V && false)