changeset 5:57dacb6fec65

sample1
author one
date Thu, 15 Jun 2017 19:37:23 +0900
parents 24f0fa90ddc9
children 3e53d93dde50
files sample1/CMakeLists.txt sample1/hellow.c
diffstat 2 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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")
+
+
--- /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 <stdio.h>
+
+int main()
+{
+  printf ( "Hellow World\n" );
+  return 0;
+}
+