Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run ctest on SIRF demo scripts. #723

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/Python/PET/run_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

for i in glob.glob('*.py'):
narg = len(sys.argv)
if narg > 1 and i.find('listmode') >= 0:
if narg > 1 and (i.find('from') >= 0 or i.find('listmode') >=0):
continue
if os.path.abspath(__file__) == os.path.abspath(i):
continue
Expand Down
6 changes: 3 additions & 3 deletions src/xSTIR/pSTIR/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ endif()
add_test(NAME PET_TESTS_PYTHON
COMMAND ${PYTHON_EXECUTABLE} -m nose --with-coverage --cover-package=sirf.STIR src/xSTIR/pSTIR ${exclude_test}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
#add_test(NAME PET_DEMOS_PYTHON
# COMMAND ${PYTHON_EXECUTABLE} run_all.py --non-interactive
# WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/examples/Python/PET")
add_test(NAME PET_DEMOS_PYTHON
COMMAND ${PYTHON_EXECUTABLE} run_all.py --non-interactive
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/examples/Python/PET")