From 7782cfccf86aafa93ca5adfe9a004c949a94778f Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sun, 19 Apr 2020 18:43:55 +0200 Subject: [PATCH] Add test_installation.py --- tests/regression_tests/installation/Makefile.am | 4 +++- tests/regression_tests/installation/test_installation.py | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 tests/regression_tests/installation/test_installation.py diff --git a/tests/regression_tests/installation/Makefile.am b/tests/regression_tests/installation/Makefile.am index 7fd819bdf..1fe871c88 100644 --- a/tests/regression_tests/installation/Makefile.am +++ b/tests/regression_tests/installation/Makefile.am @@ -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 index 000000000..daf43b328 --- /dev/null +++ b/tests/regression_tests/installation/test_installation.py @@ -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 -- 2.40.0