diff options
author | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-02-08 22:22:30 +0100 |
---|---|---|
committer | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-02-08 22:22:30 +0100 |
commit | a8e112a6707877ce24f9560104d157409942b957 (patch) | |
tree | dd5427303bc7668bcb06e56da9d8ef60c0cb2404 /test | |
parent | f672202ff2ec279e5c3260e8810a4ccc213a5876 (diff) | |
download | egawk-a8e112a6707877ce24f9560104d157409942b957.tar.gz egawk-a8e112a6707877ce24f9560104d157409942b957.tar.bz2 egawk-a8e112a6707877ce24f9560104d157409942b957.zip |
New target 'check' is a very crude first step toward testing that will soon disappear.
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 +) + |