From 947603b5d7f05053a93a3cfe257fa7ab11304a90 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Thu, 8 May 2014 21:16:31 +0200 Subject: Implemented black-box test cases * the directories below "./test" contain test cases ** "transformation.xsl" and the expected result as "reference.xml" ** tests are performed by "check.sh" *** returns diff on error * this system enables simple verification of external function results ** way simpler than C++ unit tests would be in this scenario * expanded cmake instructions to automatically execute the test cases * old example transformation was removed --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index b6229ca..2171d0f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,3 +47,10 @@ target_link_libraries( test ${Libraries} ) + +add_custom_command( + TARGET + test + POST_BUILD COMMAND + cd ../test && ./check.sh +) -- cgit v1.2.3