aboutsummaryrefslogtreecommitdiff
path: root/driver_library/python/test/test_driver.py
diff options
context:
space:
mode:
authorMikael Olsson <mikael.olsson@arm.com>2023-06-12 15:58:10 +0200
committerMikael Olsson <mikael.olsson@arm.com>2023-08-09 15:11:11 +0200
commite9c3f076d1e99c11729627723d008b6686946995 (patch)
tree846b8a9f9e5a92d8322e93784ee71bca2bc0ebd4 /driver_library/python/test/test_driver.py
parent308e7f1352bfdab8cc90be78a82b7ce4195301bc (diff)
downloadethos-u-linux-driver-stack-e9c3f076d1e99c11729627723d008b6686946995.tar.gz
Add version to driver library23.08-rc1
A version has been added to the driver library so users can check if they are compatible with the driver library in use. The Python wrapper has been updated accordingly to make the version information available. Change-Id: I8affbf7068c057f7103adf14c9e4a331d547fbcc Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
Diffstat (limited to 'driver_library/python/test/test_driver.py')
-rw-r--r--driver_library/python/test/test_driver.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/driver_library/python/test/test_driver.py b/driver_library/python/test/test_driver.py
index e4e276a..28d0a29 100644
--- a/driver_library/python/test/test_driver.py
+++ b/driver_library/python/test/test_driver.py
@@ -188,3 +188,10 @@ def test_kernel_driver_version(device):
assert driver.MAX_SUPPORTED_KERNEL_DRIVER_MAJOR_VERSION
assert driver.MIN_SUPPORTED_KERNEL_DRIVER_MAJOR_VERSION
+def test_driver_library_version():
+ version = driver.getLibraryVersion()
+ expected_version = [driver.DRIVER_LIBRARY_VERSION_MAJOR,
+ driver.DRIVER_LIBRARY_VERSION_MINOR,
+ driver.DRIVER_LIBRARY_VERSION_PATCH]
+ # Validate that the expected version was returned
+ assert expected_version == [version.major, version.minor, version.patch]