Ask Your Question
2

How to trigger tests in misc/python/test

asked 2020-01-21 11:12:47 -0600

ganesh-k13 gravatar image

What is the right way to trigger this particular test: modules/calib3d/misc/python/test/test_solvepnp.py.

Running modules/ts/misc/run.py -t calib3d does not trigger it. Running it alone won't work because tests_common is in modules/python/test/tests_common.py

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2020-01-24 02:51:19 -0600

ganesh-k13 gravatar image

@alalek answer: https://github.com/opencv/opencv/pull...

without run.py:

PYTHONPATH=${OPENCV_SRC_DIR}/modules/python/test ./setup_vars.sh python ${OPENCV_SRC_DIR}/modules/calib3d/misc/python/test/test_solvepnp.py

with run.py:

OPENCV_PYTEST_FILTER=test_solvepnp ./setup_vars.sh python ${OPENCV_SRC_DIR}/modules/ts/misc/run.py -a -t python3

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-01-21 11:12:47 -0600

Seen: 274 times

Last updated: Jan 24 '20