Add "style_check" test

This commit is contained in:
Soonho Kong 2013-09-13 20:00:55 -07:00
parent 0c450b5c23
commit 0905529720

View file

@ -113,7 +113,9 @@ add_subdirectory(tests/frontends/lean)
# Include style check # Include style check
include(StyleCheck) include(StyleCheck)
file(GLOB_RECURSE LEAN_SOURCES file(GLOB_RECURSE LEAN_SOURCES
RELATIVE ${LEAN_SOURCE_DIR} ${LEAN_SOURCE_DIR}
${LEAN_SOURCE_DIR}/*.cpp ${LEAN_SOURCE_DIR}/*.cpp
${LEAN_SOURCE_DIR}/*.h) ${LEAN_SOURCE_DIR}/*.h)
add_style_check_target(style "${LEAN_SOURCES}") add_style_check_target(style "${LEAN_SOURCES}")
add_test(NAME style_check
COMMAND ${LEAN_SOURCE_DIR}/cmake/Modules/cpplint.py ${LEAN_SOURCES})