Skip to content

Commit

Permalink
run python meta example generator tests using nosetests
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf authored and vigsterkr committed Mar 10, 2016
1 parent fbc3f2c commit 990bdb8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/meta/CMakeLists.txt
Expand Up @@ -19,6 +19,16 @@ add_custom_target(meta_examples
# Collect all meta example listings and store in variable
FILE(GLOB_RECURSE META_EXAMPLES ${CMAKE_CURRENT_SOURCE_DIR}/src/*.sg)

# run the Python generator tests
IF(ENABLE_TESTING)
find_program(NOSETESTS_PATH nosetests)
if(NOSETESTS_PATH)
add_test(NAME meta-examples-generator
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/generator
COMMAND nosetests)
endif()
ENDIF()

# If testing is enabled we run the examples
IF(ENABLE_TESTING)
# Python
Expand Down

0 comments on commit 990bdb8

Please sign in to comment.