Commit 118cd420 authored by Samuel Debionne's avatar Samuel Debionne
Browse files

Add a basic python test

parent 714f0f58
Pipeline #8259 passed with stages
in 10 minutes and 22 seconds
......@@ -188,5 +188,5 @@ endif()
## Tests
if(CAMERA_ENABLE_TESTS)
enable_testing()
#add_subdirectory(test)
add_subdirectory(test)
endif()
......@@ -26,14 +26,8 @@ requirements:
- {{ pin_compatible('lima-core', max_pin='x.x') }}
test:
requires:
- cmake
imports:
- Lima.Simulator
commands:
- cmake --version
- ctest --version
- cpack --version
about:
home: https://github.com/esrf-bliss/Lima
......
import time
from Lima import Core, Simulator
cam = Simulator.Camera()
hw = Simulator.Interface(cam)
ct = Core.CtControl(hw)
ct.prepareAcq()
ct.startAcq()
time.sleep(1)
add_test(
NAME basic_test
COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/test.py
)
from Lima import Core, Simulator
cam = Simulator.Camera()
hw = Simulator.Interface(cam)
ct = Core.CtControl(hw)
ct.prepareAcq()
ct.startAcq()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment