Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Commit

Permalink
Add support for NaN and inf in device properties (#360) (#362)
Browse files Browse the repository at this point in the history
Fix #360
  • Loading branch information
bourtemb authored and Ingvord committed Apr 28, 2017
1 parent 4a00c8e commit cfe4c9c
Show file tree
Hide file tree
Showing 5 changed files with 514 additions and 31 deletions.
2 changes: 1 addition & 1 deletion cpp_test_suite/README
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ This part is a guide to test suites development with the use of the CxxTest fram
2.1. Create a new test suite
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To create a new test suite simply copy and rename the 'cxx_suite_template.cpp' file which can be found in the 'new_tests'
To create a new test suite simply copy and rename the 'cxx_template.cpp' file which can be found in the 'new_tests'
directory.

Modify the header guard 'TemplateTestSuite_h' (lines 1, 2 and the last one) by providing your test suite name. Follow
Expand Down
1 change: 1 addition & 0 deletions cpp_test_suite/cxxtest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ execute_process(COMMAND python cxxtestgen.py --template=${CMAKE_CURRENT_SOURCE_D
../../new_tests/cxx_pipe_conf.cpp
../../new_tests/cxx_pipe.cpp
../../new_tests/cxx_z00_dyn_cmd.cpp
../../new_tests/cxx_nan_inf_in_prop.cpp
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)

add_executable(runner $<TARGET_OBJECTS:compare_test_object> ${CMAKE_CURRENT_SOURCE_DIR}/runner.cpp)
Expand Down
4 changes: 2 additions & 2 deletions cpp_test_suite/environment/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ execute_process(COMMAND chmod +x ${CMAKE_CURRENT_BINARY_DIR}/pre_test.sh)
configure_file(post_test.sh.cmake post_test.sh @ONLY)
execute_process(COMMAND chmod +x ${CMAKE_CURRENT_BINARY_DIR}/post_test.sh)

execute_process(COMMAND chmod +x setup.sh)
execute_process(COMMAND chmod +x ${CMAKE_CURRENT_SOURCE_DIR}/setup.sh)
add_custom_target(start-tango ${CMAKE_CURRENT_SOURCE_DIR}/setup.sh
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
SOURCES setup.sh)
Expand All @@ -17,7 +17,7 @@ add_custom_target(run-tests ${CMAKE_CURRENT_BINARY_DIR}/run.sh
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
SOURCES run.sh.cmake)

execute_process(COMMAND chmod +x shutdown.sh)
execute_process(COMMAND chmod +x ${CMAKE_CURRENT_SOURCE_DIR}/shutdown.sh)
add_custom_target(stop-tango ${CMAKE_CURRENT_SOURCE_DIR}/shutdown.sh
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
SOURCES shutdown.sh)
Loading

0 comments on commit cfe4c9c

Please sign in to comment.