[SWDEV-451960] [WIP] Add Pytest
Updates: - Added pytest to shared/pytest folder - User can execute tests: [pytest] python3 -m pytest -p no:cacheprovider /opt/rocm/share/amd_smi/tests/pytest/unit_tests.py -s -v python3 -m pytest -p no:cacheprovider /opt/rocm/share/amd_smi/tests/pytest/integration_test.py -s -v [unittest] /opt/rocm/share/amd_smi/tests/pytest/unit_tests.py -v /opt/rocm/share/amd_smi/tests/pytest/integration_test.py -v - Automatically installs pytest Change-Id: Ia3281a9608aeeb803b91f8b83f87ff84b01037f4 Signed-off-by: Charis Poag <Charis.Poag@amd.com>
This commit is contained in:
+2
-1
@@ -187,9 +187,10 @@ if(BUILD_TESTS)
|
||||
add_subdirectory("tests/amd_smi_test")
|
||||
endif()
|
||||
|
||||
# python interface and CLI depend on shared libraries
|
||||
# python interface, CLI, and py-test depend on shared libraries
|
||||
if(BUILD_SHARED_LIBS)
|
||||
add_subdirectory("py-interface")
|
||||
add_subdirectory("pytest")
|
||||
if(BUILD_CLI)
|
||||
add_subdirectory("amdsmi_cli")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user