From c108fa57f1e265a6682c9fdb267e7b2c1653a401 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 23 Aug 2011 14:23:57 +0800 Subject: begin to write test pinyin --- tests/Makefile.am | 12 ++++++++++++ tests/test_pinyin.cpp | 27 +++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 tests/test_pinyin.cpp 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 + * + * 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; +} -- cgit