diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2ed72205..d54aad1f 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -24,3 +24,11 @@ ## process this file with CMake to produce Makefile +add_custom_target(check) +add_custom_command( + TARGET check + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + COMMAND ${CMAKE_BINARY_DIR}/gawk -f addcomma.awk < addcomma.in > _addcomma 2>&1 || echo EXIT CODE: $$? >>_$@ + COMMAND cmp addcomma.ok _addcomma && rm -f _addcomma +) + |