diff options
author | Bertrand Garrigues <bertrand.garrigues@laposte.net> | 2016-04-03 00:11:49 +0200 |
---|---|---|
committer | Bertrand Garrigues <bertrand.garrigues@laposte.net> | 2017-11-08 23:44:11 +0100 |
commit | 894dfbfa69e2d4bc7446818d6415d3e77f94cd85 (patch) | |
tree | 288ed91469336ac38af969db297e315fc8b75d6e /test/test.am | |
parent | f39e9e836bb3e58f1c6bc7055842c43da864b80f (diff) | |
download | groff-git-894dfbfa69e2d4bc7446818d6415d3e77f94cd85.tar.gz |
Add Linux Kernel style doubled linked lists and use C++ unit test
framework cppunit.
* configure.ac: detect presence of pkgconfig and cppunit.
* src/include/list.h: doubled linked list implementation.
* test: new directory for tests.
* test/utest_list.cpp: unit tests for list.h.
* Makefile.am: add new file test/test.am
Diffstat (limited to 'test/test.am')
-rw-r--r-- | test/test.am | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/test.am b/test/test.am new file mode 100644 index 000000000..1bf5e392c --- /dev/null +++ b/test/test.am @@ -0,0 +1,25 @@ +# Copyright (C) 2016- +# Free Software Foundation, Inc. +# +# This file is part of groff. +# +# groff 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 3 of the License, or +# (at your option) any later version. +# +# groff 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, see <http://www.gnu.org/licenses/>. + +if BUILD_UNIT_TESTS +TESTS += utest_list +check_PROGRAMS += utest_list +utest_list_SOURCES = test/utest_list.cpp +utest_list_CXXFLAGS = $(CPPUNIT_CFLAGS) -I$(top_srcdir)/src/roff/troff +utest_list_LDFLAGS = $(CPPUNIT_LIBS) +endif |