~mordred/libmemcached/pandora-build

« back to all changes in this revision

Viewing changes to tests/include.am

  • Committer: Monty Taylor
  • Date: 2010-04-07 18:25:15 UTC
  • Revision ID: mordred@inaugust.com-20100407182515-h4ehdlwxrqp10dl9
Added support for dpkg-gensymbols-based symbols checking.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
endif
16
16
 
17
17
EXTRA_DIST+= \
 
18
             tests/cpp_example.cc \
 
19
             tests/output_plus.res \
18
20
             tests/r/memcat.res \
19
21
             tests/r/memcp.res \
20
22
             tests/r/memrm.res \
97
99
tests_memplus_DEPENDENCIES = tests/libtest.la tests/libserver.la libmemcached/libmemcached.la
98
100
tests_memplus_LDADD = $(tests_memplus_DEPENDENCIES)
99
101
 
100
 
test: test-docs test-mem test-hash memcapable
 
102
if HAVE_DPKG_GENSYMBOLS
 
103
test_gensymbols_dep= test-symbols
 
104
endif
 
105
 
 
106
distclean-local:
 
107
        @rm -rf .gensymbols
 
108
 
 
109
test-symbols:
 
110
        @$(MKDIR_P) .gensymbols
 
111
        $(DPKG_GENSYMBOLS) -Iconfig/libmemcached.symbols -plibmemcached -P${builddir}/.gensymbols -e${builddir}/libmemcached/.libs/libmemcached.so -v$(VERSION)
 
112
        $(DPKG_GENSYMBOLS) -Iconfig/libhashkit.symbols -plibmemcached -P${builddir}/.gensymbols -e${builddir}/libhashkit/.libs/libhashkit.so -v$(VERSION)
 
113
        $(DPKG_GENSYMBOLS) -Iconfig/libmemcachedprotocol.symbols -plibmemcached -P${builddir}/.gensymbols -e${builddir}/libmemcached/.libs/libmemcachedprotocol.so -v$(VERSION)
 
114
        $(DPKG_GENSYMBOLS) -Iconfig/libmemcachedutil.symbols -plibmemcached -P${builddir}/.gensymbols -e${builddir}/libmemcached/.libs/libmemcachedutil.so -v$(VERSION)
 
115
        $(gensymbols_cmd)       
 
116
 
 
117
 
 
118
test: test-docs test-mem test-hash memcapable $(test_gensymbols_dep)
101
119
        echo "Tests completed"
102
120
 
103
121
test-x: test-docs test-plus test-mem test-hash memcapable test-memcat test-memcp test-memrm test-memerror test-memdump test-memflush test-memstat