Commit 6a7e1b47 authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Enable faulthandler in all Python tests to capture Python stack trace on faults



Signed-off-by: Nguyen, Thien Minh's avatarThien Nguyen <nguyentm@ornl.gov>
parent 819f0175
......@@ -12,18 +12,18 @@ add_test (NAME qcor_python_jit_simple
set_tests_properties(qcor_python_jit_simple
PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_INSTALL_PREFIX}:$ENV{PYTHONPATH}")
#add_test (NAME qcor_python_jit_nested_kernels
# COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_jit_nested.py
# WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
#)
#set_tests_properties(qcor_python_jit_nested_kernels
# PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_INSTALL_PREFIX}:$ENV{PYTHONPATH}")
add_test (NAME qcor_python_jit_nested_kernels
COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_jit_nested.py
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
set_tests_properties(qcor_python_jit_nested_kernels
PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_INSTALL_PREFIX}:$ENV{PYTHONPATH}")
#add_test (NAME qcor_python_kernel_builder
# COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_kernel_builder.py
# WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
#set_tests_properties(qcor_python_kernel_builder
# PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_INSTALL_PREFIX}:$ENV{PYTHONPATH}")
add_test (NAME qcor_python_kernel_builder
COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_kernel_builder.py
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
set_tests_properties(qcor_python_kernel_builder
PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_INSTALL_PREFIX}:$ENV{PYTHONPATH}")
add_test (NAME qcor_python_jit_decompose
COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_jit_decompose.py
......
import faulthandler
faulthandler.enable()
import unittest
from qcor import *
# Import Python math with alias
......
import faulthandler
faulthandler.enable()
import unittest
from qcor import *
# Import Python math with alias
......
import faulthandler
faulthandler.enable()
import unittest
from qcor import *
......
import faulthandler
faulthandler.enable()
import unittest
from qcor import *
# Import Python math with alias
......
import faulthandler
faulthandler.enable()
import unittest
from qcor import *
......
import faulthandler
faulthandler.enable()
import unittest
from qcor import *
import math
......
import faulthandler
faulthandler.enable()
import unittest
from qcor import *
try:
......
import faulthandler
faulthandler.enable()
import unittest
from qcor import *
......
import faulthandler
faulthandler.enable()
import unittest, math
from qcor import *
......
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