# HG changeset patch # User one # Date 1497523043 -32400 # Node ID 57dacb6fec65d0617ccc01109b2587ccbb9fd0d0 # Parent 24f0fa90ddc9d51714a1914fd9c4ba52fe30fe42 sample1 diff -r 24f0fa90ddc9 -r 57dacb6fec65 sample1/CMakeLists.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sample1/CMakeLists.txt Thu Jun 15 19:37:23 2017 +0900 @@ -0,0 +1,10 @@ +include(CTest) + +add_executable ( hello hellow.c ) + +add_test (HelloRuns hello ) + +add_test (HelloTest1 hello) +set_tests_properties (HelloTest1 PROPERTIES PASS_REGULAR_EXPRESSION "Hellow World") + + diff -r 24f0fa90ddc9 -r 57dacb6fec65 sample1/hellow.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sample1/hellow.c Thu Jun 15 19:37:23 2017 +0900 @@ -0,0 +1,8 @@ +#include + +int main() +{ + printf ( "Hellow World\n" ); + return 0; +} +