summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-08-23 14:23:57 +0800
committerPeng Wu <alexepico@gmail.com>2011-08-23 14:23:57 +0800
commitc108fa57f1e265a6682c9fdb267e7b2c1653a401 (patch)
treef0fcb8a3e2adcbb033755d8f848c052247aa9db6
parentcda6da120aff1d3e228a9e99f0435ce862e05e12 (diff)
downloadlibpinyin-c108fa57f1e265a6682c9fdb267e7b2c1653a401.tar.gz
libpinyin-c108fa57f1e265a6682c9fdb267e7b2c1653a401.tar.xz
libpinyin-c108fa57f1e265a6682c9fdb267e7b2c1653a401.zip
begin to write test pinyin
-rw-r--r--tests/Makefile.am12
-rw-r--r--tests/test_pinyin.cpp27
2 files changed, 39 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index f36e5f9..264d8c3 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -23,3 +23,15 @@ MAINTAINERCLEANFILES = Makefile.in
CLEANFILES = *.bak
ACLOCAL = aclocal -I $(ac_aux_dir)
+
+INCLUDES = -I$(top_srcdir)/src \
+ -I$(top_srcdir)/src/include \
+ -I$(top_srcdir)/src/storage \
+ -I$(top_srcdir)/src/lookup \
+ @GLIB2_CPPFLAGS@
+
+noinst_PROGRAMS = test_pinyin
+
+test_pinyin_SOURCES = test_pinyin.cpp
+
+test_pinyin_LDADD = ../src/libpinyin.la @GLIB2_LDFLAGS@ \ No newline at end of file
diff --git a/tests/test_pinyin.cpp b/tests/test_pinyin.cpp
new file mode 100644
index 0000000..2212534
--- /dev/null
+++ b/tests/test_pinyin.cpp
@@ -0,0 +1,27 @@
+/*
+ * libpinyin
+ * Library to deal with pinyin.
+ *
+ * Copyright (C) 2011 Peng Wu <alexepico@gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+
+#include "pinyin.h"
+
+int main(int argc, char * argv[]){
+ return 0;
+}