summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-10-15 17:10:08 +0200
committerAndreas Schneider <asn@cryptomilk.org>2012-10-15 17:10:08 +0200
commit580787e423bd41c99227b0a0eb6615096f69a510 (patch)
tree326d98ed4cd716df8b45d478a8763a0cdd838e00
parent48e061f0f802a6506f909a2de0ce50d31831eed4 (diff)
downloadcmocka-580787e423bd41c99227b0a0eb6615096f69a510.tar.gz
cmocka-580787e423bd41c99227b0a0eb6615096f69a510.tar.bz2
cmocka-580787e423bd41c99227b0a0eb6615096f69a510.zip
example: Move examples to top level dir.
-rw-r--r--CMakeLists.txt3
-rw-r--r--example/CMakeLists.txt (renamed from src/example/CMakeLists.txt)0
-rw-r--r--example/allocate_module.c (renamed from src/example/allocate_module.c)0
-rw-r--r--example/allocate_module_test.c (renamed from src/example/allocate_module_test.c)0
-rw-r--r--example/assert_macro.c (renamed from src/example/assert_macro.c)0
-rw-r--r--example/assert_macro.h (renamed from src/example/assert_macro.h)0
-rw-r--r--example/assert_macro_test.c (renamed from src/example/assert_macro_test.c)0
-rw-r--r--example/assert_module.c (renamed from src/example/assert_module.c)0
-rw-r--r--example/assert_module.h (renamed from src/example/assert_module.h)0
-rw-r--r--example/assert_module_test.c (renamed from src/example/assert_module_test.c)0
-rw-r--r--example/calculator.c (renamed from src/example/calculator.c)0
-rw-r--r--example/calculator_test.c (renamed from src/example/calculator_test.c)0
-rw-r--r--example/customer_database.c (renamed from src/example/customer_database.c)0
-rw-r--r--example/customer_database_test.c (renamed from src/example/customer_database_test.c)0
-rw-r--r--example/database.h (renamed from src/example/database.h)0
-rw-r--r--example/key_value.c (renamed from src/example/key_value.c)0
-rw-r--r--example/key_value.h (renamed from src/example/key_value.h)0
-rw-r--r--example/key_value_test.c (renamed from src/example/key_value_test.c)0
-rw-r--r--example/product_database.c (renamed from src/example/product_database.c)0
-rw-r--r--example/product_database_test.c (renamed from src/example/product_database_test.c)0
-rw-r--r--example/run_tests.c (renamed from src/example/run_tests.c)0
-rw-r--r--src/CMakeLists.txt3
22 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0b74a7f..5244232 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,3 +50,6 @@ configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
# check subdirectories
#add_subdirectory(doc)
add_subdirectory(src)
+if (UNIT_TESTING)
+ add_subdirectory(example)
+endif (UNIT_TESTING)
diff --git a/src/example/CMakeLists.txt b/example/CMakeLists.txt
index a060de1..a060de1 100644
--- a/src/example/CMakeLists.txt
+++ b/example/CMakeLists.txt
diff --git a/src/example/allocate_module.c b/example/allocate_module.c
index c6df8c6..c6df8c6 100644
--- a/src/example/allocate_module.c
+++ b/example/allocate_module.c
diff --git a/src/example/allocate_module_test.c b/example/allocate_module_test.c
index 1d1e164..1d1e164 100644
--- a/src/example/allocate_module_test.c
+++ b/example/allocate_module_test.c
diff --git a/src/example/assert_macro.c b/example/assert_macro.c
index 9590590..9590590 100644
--- a/src/example/assert_macro.c
+++ b/example/assert_macro.c
diff --git a/src/example/assert_macro.h b/example/assert_macro.h
index 789380c..789380c 100644
--- a/src/example/assert_macro.h
+++ b/example/assert_macro.h
diff --git a/src/example/assert_macro_test.c b/example/assert_macro_test.c
index efe1c64..efe1c64 100644
--- a/src/example/assert_macro_test.c
+++ b/example/assert_macro_test.c
diff --git a/src/example/assert_module.c b/example/assert_module.c
index 4d206dd..4d206dd 100644
--- a/src/example/assert_module.c
+++ b/example/assert_module.c
diff --git a/src/example/assert_module.h b/example/assert_module.h
index b68b4d9..b68b4d9 100644
--- a/src/example/assert_module.h
+++ b/example/assert_module.h
diff --git a/src/example/assert_module_test.c b/example/assert_module_test.c
index 6f4f0a9..6f4f0a9 100644
--- a/src/example/assert_module_test.c
+++ b/example/assert_module_test.c
diff --git a/src/example/calculator.c b/example/calculator.c
index 5e0b359..5e0b359 100644
--- a/src/example/calculator.c
+++ b/example/calculator.c
diff --git a/src/example/calculator_test.c b/example/calculator_test.c
index a568025..a568025 100644
--- a/src/example/calculator_test.c
+++ b/example/calculator_test.c
diff --git a/src/example/customer_database.c b/example/customer_database.c
index 1fe425e..1fe425e 100644
--- a/src/example/customer_database.c
+++ b/example/customer_database.c
diff --git a/src/example/customer_database_test.c b/example/customer_database_test.c
index 1d65ce4..1d65ce4 100644
--- a/src/example/customer_database_test.c
+++ b/example/customer_database_test.c
diff --git a/src/example/database.h b/example/database.h
index 26b4009..26b4009 100644
--- a/src/example/database.h
+++ b/example/database.h
diff --git a/src/example/key_value.c b/example/key_value.c
index 46f0d25..46f0d25 100644
--- a/src/example/key_value.c
+++ b/example/key_value.c
diff --git a/src/example/key_value.h b/example/key_value.h
index 736faf2..736faf2 100644
--- a/src/example/key_value.h
+++ b/example/key_value.h
diff --git a/src/example/key_value_test.c b/example/key_value_test.c
index da72ea2..da72ea2 100644
--- a/src/example/key_value_test.c
+++ b/example/key_value_test.c
diff --git a/src/example/product_database.c b/example/product_database.c
index 3fb9641..3fb9641 100644
--- a/src/example/product_database.c
+++ b/example/product_database.c
diff --git a/src/example/product_database_test.c b/example/product_database_test.c
index c8d7587..c8d7587 100644
--- a/src/example/product_database_test.c
+++ b/example/product_database_test.c
diff --git a/src/example/run_tests.c b/example/run_tests.c
index 5a5e5e4..5a5e5e4 100644
--- a/src/example/run_tests.c
+++ b/example/run_tests.c
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2de6b7b..2b3c486 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -90,6 +90,3 @@ if (WITH_STATIC_LIB)
)
endif (WITH_STATIC_LIB)
-if (UNIT_TESTING)
- add_subdirectory(example)
-endif (UNIT_TESTING)