aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-09-27 08:34:32 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-09-27 14:34:45 +0200
commit857f120477dab7d4609c8527a2973cb07f82c3f2 (patch)
tree2a8a6dd4d21434edb0ab448606080780c0b45cf3 /example
parentbd8ae2b6e044fc3f9410a8e9b851487170f1633e (diff)
downloadcmocka-857f120477dab7d4609c8527a2973cb07f82c3f2.tar.gz
cmocka-857f120477dab7d4609c8527a2973cb07f82c3f2.tar.xz
cmocka-857f120477dab7d4609c8527a2973cb07f82c3f2.zip
examples: Move mock example to own directory
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'example')
-rw-r--r--example/CMakeLists.txt6
-rw-r--r--example/mock/CMakeLists.txt5
-rw-r--r--example/mock/chef_wrap/CMakeLists.txt (renamed from example/chef_wrap/CMakeLists.txt)0
-rw-r--r--example/mock/chef_wrap/chef.c (renamed from example/chef_wrap/chef.c)0
-rw-r--r--example/mock/chef_wrap/chef.h (renamed from example/chef_wrap/chef.h)0
-rw-r--r--example/mock/chef_wrap/waiter_test_wrap.c (renamed from example/chef_wrap/waiter_test_wrap.c)0
-rw-r--r--example/mock/chef_wrap/waiter_test_wrap.h (renamed from example/chef_wrap/waiter_test_wrap.h)0
-rw-r--r--example/mock/uptime/CMakeLists.txt (renamed from example/uptime/CMakeLists.txt)0
-rw-r--r--example/mock/uptime/README.md (renamed from example/uptime/README.md)0
-rw-r--r--example/mock/uptime/proc_uptime.c (renamed from example/uptime/proc_uptime.c)0
-rw-r--r--example/mock/uptime/proc_uptime.h (renamed from example/uptime/proc_uptime.h)0
-rw-r--r--example/mock/uptime/test_uptime.c (renamed from example/uptime/test_uptime.c)0
-rw-r--r--example/mock/uptime/uptime.c (renamed from example/uptime/uptime.c)0
13 files changed, 6 insertions, 5 deletions
diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt
index 46e626a..0be4b0b 100644
--- a/example/CMakeLists.txt
+++ b/example/CMakeLists.txt
@@ -95,9 +95,5 @@ if (WIN32 OR CYGWIN OR MINGW)
endif (WIN32 OR CYGWIN OR MINGW)
if (NOT WIN32)
- # TODO Execute "$CMAKE_LINKER --help" and check for --wrap
- if (${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)" AND NOT APPLE)
- add_subdirectory(chef_wrap)
- add_subdirectory(uptime)
- endif()
+ add_subdirectory(mock)
endif()
diff --git a/example/mock/CMakeLists.txt b/example/mock/CMakeLists.txt
new file mode 100644
index 0000000..04bbb1f
--- /dev/null
+++ b/example/mock/CMakeLists.txt
@@ -0,0 +1,5 @@
+# TODO Execute "$CMAKE_LINKER --help" and check for --wrap
+if (${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)" AND NOT APPLE)
+ add_subdirectory(chef_wrap)
+ add_subdirectory(uptime)
+endif()
diff --git a/example/chef_wrap/CMakeLists.txt b/example/mock/chef_wrap/CMakeLists.txt
index 68afec0..68afec0 100644
--- a/example/chef_wrap/CMakeLists.txt
+++ b/example/mock/chef_wrap/CMakeLists.txt
diff --git a/example/chef_wrap/chef.c b/example/mock/chef_wrap/chef.c
index 1429cde..1429cde 100644
--- a/example/chef_wrap/chef.c
+++ b/example/mock/chef_wrap/chef.c
diff --git a/example/chef_wrap/chef.h b/example/mock/chef_wrap/chef.h
index c1a01c7..c1a01c7 100644
--- a/example/chef_wrap/chef.h
+++ b/example/mock/chef_wrap/chef.h
diff --git a/example/chef_wrap/waiter_test_wrap.c b/example/mock/chef_wrap/waiter_test_wrap.c
index 4146818..4146818 100644
--- a/example/chef_wrap/waiter_test_wrap.c
+++ b/example/mock/chef_wrap/waiter_test_wrap.c
diff --git a/example/chef_wrap/waiter_test_wrap.h b/example/mock/chef_wrap/waiter_test_wrap.h
index 9178ca2..9178ca2 100644
--- a/example/chef_wrap/waiter_test_wrap.h
+++ b/example/mock/chef_wrap/waiter_test_wrap.h
diff --git a/example/uptime/CMakeLists.txt b/example/mock/uptime/CMakeLists.txt
index c4d6480..c4d6480 100644
--- a/example/uptime/CMakeLists.txt
+++ b/example/mock/uptime/CMakeLists.txt
diff --git a/example/uptime/README.md b/example/mock/uptime/README.md
index 081ae51..081ae51 100644
--- a/example/uptime/README.md
+++ b/example/mock/uptime/README.md
diff --git a/example/uptime/proc_uptime.c b/example/mock/uptime/proc_uptime.c
index a92c2ab..a92c2ab 100644
--- a/example/uptime/proc_uptime.c
+++ b/example/mock/uptime/proc_uptime.c
diff --git a/example/uptime/proc_uptime.h b/example/mock/uptime/proc_uptime.h
index 222ece5..222ece5 100644
--- a/example/uptime/proc_uptime.h
+++ b/example/mock/uptime/proc_uptime.h
diff --git a/example/uptime/test_uptime.c b/example/mock/uptime/test_uptime.c
index badfac9..badfac9 100644
--- a/example/uptime/test_uptime.c
+++ b/example/mock/uptime/test_uptime.c
diff --git a/example/uptime/uptime.c b/example/mock/uptime/uptime.c
index 77776a7..77776a7 100644
--- a/example/uptime/uptime.c
+++ b/example/mock/uptime/uptime.c