From: Magnus Jacobsson Date: Wed, 15 Apr 2020 15:34:43 +0000 (+0200) Subject: Add installation test X-Git-Tag: 2.44.1~77^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45930f23f9b9d8b0537ce8aa29c7a2a2781fd9d1;p=graphviz Add installation test --- diff --git a/ci/test.sh b/ci/test.sh index 51e1d7d52..c6c9b0e47 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -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 diff --git a/configure.ac b/configure.ac index 5e098aa2b..8775da43e 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/tests/regression_tests/Makefile.am b/tests/regression_tests/Makefile.am index ea04cf01f..41125d9f3 100644 --- a/tests/regression_tests/Makefile.am +++ b/tests/regression_tests/Makefile.am @@ -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 index 000000000..7fd819bdf --- /dev/null +++ b/tests/regression_tests/installation/Makefile.am @@ -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 index 000000000..33e34ba9a --- /dev/null +++ b/tests/regression_tests/installation/check_installation.sh @@ -0,0 +1 @@ +dot -V 2>&1 | grep "dot - graphviz version ${GV_VERSION}" || (dot -V && false)