X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=tests%2FMakefile.am;h=e0a25e740fe77b97459ea1c18ef1dc5a449c5695;hb=26a094f56978a505d16aef3552d5620b6cfc2528;hp=57a6fe9ba9d09940041445b7265071548b3efd7b;hpb=aef60cba06c79c42f79532923aa49675386c552f;p=m6w6%2Flibmemcached diff --git a/tests/Makefile.am b/tests/Makefile.am index 57a6fe9b..e0a25e74 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,18 +1,31 @@ -INCLUDES = -I$(top_builddir)/include -LDADDS = ../lib/libmemcached.la - -LIBS = - -noinst_PROGRAMS = testapp - -testapp_SOURCES = test.c -testapp_LDADD = $(LDADDS) - -record: - ./testapp output.txt > output.res -test: testapp - ./testapp output.txt > output.cmp - diff output.res output.cmp - -valgrind: - libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes testapp output.txt +INCLUDES = -I$(top_builddir)/include +LDADDS = ../lib/libmemcached.la + +EXTRA_DIST = output.res output2.res + +LIBS = + +noinst_PROGRAMS = testapp + +testapp_SOURCES = test.c +testapp_LDADD = $(LDADDS) + +record: + ./testapp > output.res + +record-extended: + ./testapp extended > output2.res + +test: testapp + ./testapp > output.cmp + diff output.res output.cmp + +test-extended: testapp + ./testapp extended > output.cmp + diff output2.res output.cmp + +valgrind: + libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes testapp + +valgrind-extended: + libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes testapp extended