Mercurial > dovecot > core-2.2
comparison src/lib-charset/Makefile.am @ 18714:dcaf508860ad
lib-charset: Added a minimal unit test
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 16 May 2015 12:46:38 +0300 |
parents | 36ca0e03bd06 |
children | 170f155eb2b2 |
comparison
equal
deleted
inserted
replaced
18713:1044c55fb4ef | 18714:dcaf508860ad |
---|---|
1 noinst_LTLIBRARIES = libcharset.la | 1 noinst_LTLIBRARIES = libcharset.la |
2 | 2 |
3 AM_CPPFLAGS = \ | 3 AM_CPPFLAGS = \ |
4 -I$(top_srcdir)/src/lib | 4 -I$(top_srcdir)/src/lib \ |
5 -I$(top_srcdir)/src/lib-test | |
5 | 6 |
6 libcharset_la_LIBADD = $(LTLIBICONV) | 7 libcharset_la_LIBADD = $(LTLIBICONV) |
7 libcharset_la_SOURCES = \ | 8 libcharset_la_SOURCES = \ |
8 charset-iconv.c \ | 9 charset-iconv.c \ |
9 charset-utf8.c | 10 charset-utf8.c |
11 headers = \ | 12 headers = \ |
12 charset-utf8.h | 13 charset-utf8.h |
13 | 14 |
14 pkginc_libdir=$(pkgincludedir) | 15 pkginc_libdir=$(pkgincludedir) |
15 pkginc_lib_HEADERS = $(headers) | 16 pkginc_lib_HEADERS = $(headers) |
17 | |
18 test_programs = \ | |
19 test-charset | |
20 | |
21 noinst_PROGRAMS = $(test_programs) | |
22 | |
23 test_libs = \ | |
24 ../lib-test/libtest.la \ | |
25 ../lib/liblib.la | |
26 test_deps = $(noinst_LTLIBRARIES) $(test_libs) | |
27 | |
28 test_charset_SOURCES = test-charset.c | |
29 test_charset_LDADD = libcharset.la $(test_libs) | |
30 test_charset_DEPENDENCIES = libcharset.la $(test_deps) | |
31 | |
32 check: check-am check-test | |
33 check-test: all-am | |
34 for bin in $(test_programs); do \ | |
35 if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ | |
36 done |