From 665962911f2b46f73da7cb9796f3254546ff6c4a Mon Sep 17 00:00:00 2001
From: ilor <kailoran@gmail.com>
Date: Tue, 21 Sep 2010 16:49:15 +0200
Subject: [PATCH] add tests stub

---
 tests/CMakeLists.txt | 18 ++++++++++++++++++
 tests/main.cpp       |  9 +++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 tests/main.cpp

diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index e69de29..1f22c93 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -0,0 +1,18 @@
+PROJECT( test )
+
+include_directories( ${CMAKE_SOURCE_DIR} )
+
+add_definitions(-DLIBCORPUS2_TEST_DATA_DIR="${PROJECT_SOURCE_DIR}/")
+
+add_executable( tests
+	main.cpp
+)
+
+target_link_libraries ( tests maca ${Boost_LIBRARIES})
+
+include_directories(${Boost_INCLUDE_DIR})
+link_directories(${Boost_LIBRARY_DIRS})
+
+#configure_file(test-sanity.sh ${CMAKE_CURRENT_BINARY_DIR})
+#add_custom_target(test tests COMMAND ./test-sanity.sh small)
+#add_custom_target(test-large ./test-sanity.sh large)
diff --git a/tests/main.cpp b/tests/main.cpp
new file mode 100644
index 0000000..d38e478
--- /dev/null
+++ b/tests/main.cpp
@@ -0,0 +1,9 @@
+#define BOOST_TEST_MODULE master
+#include <boost/test/included/unit_test.hpp>
+
+BOOST_AUTO_TEST_CASE(test_test)
+{
+	int a = 0;
+	BOOST_CHECK(a == 0);
+}
+
-- 
GitLab