Browse Source

move python interpreter test to python module test

python
Jørgen Lien Sellæg 7 years ago committed by Jørgen Sverre Lien Sellæg
parent
commit
95f15ef264
  1. 10
      tests/python_bindings/CMakeLists.txt
  2. 0
      tests/python_bindings/PythonModule_tests/exception_test.py
  3. 6
      tests/python_bindings/PythonModule_tests/python_module_test.cc
  4. 0
      tests/python_bindings/PythonModule_tests/python_module_test.py

10
tests/python_bindings/CMakeLists.txt

@ -4,14 +4,14 @@ target_link_libraries(test_suite juci_shared ${PYTHON_LIBRARIES})
include_directories(${CMAKE_SOURCE_DIR}/tests/python_bindings) include_directories(${CMAKE_SOURCE_DIR}/tests/python_bindings)
add_executable(pb_python_interpreter_test PythonInterpreter_tests/interpreter_test.cc $<TARGET_OBJECTS:test_stubs>) add_executable(pb_python_module_test PythonModule_tests/python_module_test.cc $<TARGET_OBJECTS:test_stubs>)
target_link_libraries(pb_python_interpreter_test juci_shared test_suite) target_link_libraries(pb_python_module_test test_suite)
add_test(pb_python_interpreter_test pb_python_interpreter_test) add_test(pb_python_module_test pb_python_module_test)
add_executable(pb_cmake_test CMake_tests/cmake_test.cc $<TARGET_OBJECTS:test_stubs>) add_executable(pb_cmake_test CMake_tests/cmake_test.cc $<TARGET_OBJECTS:test_stubs>)
target_link_libraries(pb_cmake_test juci_shared test_suite) target_link_libraries(pb_cmake_test test_suite)
add_test(pb_cmake_test pb_cmake_test) add_test(pb_cmake_test pb_cmake_test)
add_executable(pb_terminal_test Terminal_tests/terminal_test.cc $<TARGET_OBJECTS:test_stubs>) add_executable(pb_terminal_test Terminal_tests/terminal_test.cc $<TARGET_OBJECTS:test_stubs>)
target_link_libraries(pb_terminal_test juci_shared test_suite) target_link_libraries(pb_terminal_test test_suite)
add_test(pb_terminal_test pb_terminal_test) add_test(pb_terminal_test pb_terminal_test)

0
tests/python_interpreter_test_files/exception_test.py → tests/python_bindings/PythonModule_tests/exception_test.py

6
tests/python_bindings/PythonInterpreter_tests/interpreter_test.cc → tests/python_bindings/PythonModule_tests/python_module_test.cc

@ -3,14 +3,14 @@
int main() { int main() {
{ {
suite test_suite("PythonInterpreter_tests"); suite test_suite("PythonModule_tests");
{ {
py::module::import("interpreter_test"); py::module::import("python_module_test");
test_suite.has_assertion = true; test_suite.has_assertion = true;
} }
} }
{ {
suite test_suite("PythonInterpreter_tests"); suite test_suite("PythonModule_tests");
{ {
try { try {
py::module::import("exception_test"); py::module::import("exception_test");

0
tests/python_bindings/PythonInterpreter_tests/interpreter_test.py → tests/python_bindings/PythonModule_tests/python_module_test.py

Loading…
Cancel
Save