From d2e188dbe8d896ebe6127b35b9872f497f26f4ea Mon Sep 17 00:00:00 2001
From: Justin Carpentier <justin.carpentier@inria.fr>
Date: Mon, 25 Nov 2019 08:48:14 +0100
Subject: [PATCH] test/python: test version fields

---
 unittest/CMakeLists.txt         | 3 +++
 unittest/python/test_version.py | 7 +++++++
 2 files changed, 10 insertions(+)
 create mode 100644 unittest/python/test_version.py

diff --git a/unittest/CMakeLists.txt b/unittest/CMakeLists.txt
index 13b6124..c8ad51c 100644
--- a/unittest/CMakeLists.txt
+++ b/unittest/CMakeLists.txt
@@ -47,3 +47,6 @@ SET_TESTS_PROPERTIES("py-switch" PROPERTIES DEPENDS ${PYWRAP})
 
 ADD_PYTHON_UNIT_TEST("py-dimensions" "unittest/python/test_dimensions.py" "python/eigenpy")
 SET_TESTS_PROPERTIES("py-dimensions" PROPERTIES DEPENDS ${PYWRAP})
+
+ADD_PYTHON_UNIT_TEST("py-version" "unittest/python/test_version.py" "python/eigenpy")
+SET_TESTS_PROPERTIES("py-version" PROPERTIES DEPENDS ${PYWRAP})
diff --git a/unittest/python/test_version.py b/unittest/python/test_version.py
new file mode 100644
index 0000000..36d3c64
--- /dev/null
+++ b/unittest/python/test_version.py
@@ -0,0 +1,7 @@
+from __future__ import print_function
+
+import eigenpy
+
+assert eigenpy.checkVersionAtLeast(0,0,0)
+assert eigenpy.__version__ != ""
+assert eigenpy.__raw_version__ != ""
-- 
GitLab