tests_atomsmasher_SOURCES= \
tests/atomsmasher.cc \
+ tests/debug.cc \
+ tests/print.cc \
clients/generator.cc \
clients/execute.cc
tests_atomsmasher_DEPENDENCIES= $(TESTS_LDADDS)
@echo "Testing memerror"
@$(VALGRIND_COMMAND) clients/memerror 0 > /dev/null
-
-
-
-
-MEMSLAP_COMMAND= clients/memslap
-
-MEM_COMMAND= tests/testapp
-
-TESTPLUS_COMMAND= tests/testplus
-
-HASHPLUS_COMMAND= tests/hashplus
-
-CYCLE_COMMAND= tests/cycle
-
-ATOM_COMMAND= tests/atomsmasher
-
-UDP_COMMAND= tests/testudp
-
-HASH_COMMAND= tests/testhashkit
-
test-mem: tests/var tests/testapp
- $(MEM_COMMAND)
+ @tests/testapp
test-udp: tests/var tests/testudp
- $(UDP_COMMAND)
+ @tests/testudp
test-atom: tests/var tests/atomsmasher
- $(ATOM_COMMAND)
+ @tests/atomsmasher
test-plus: tests/var tests/testplus
- $(TESTPLUS_COMMAND)
+ @tests/testplus
test-hash: tests/var tests/testhashkit
- $(HASH_COMMAND)
+ @tests/testhashkit
-test-hashplus: tests/var tests/hashplus
- $(HASHPLUS_COMMAND)
+test-hashplus: tests/var tests/hash_plus
+ @tests/hash_plus
test-cycle: tests/var tests/cycle
- $(CYCLE_COMMAND)
+ @tests/cycle
pahole-mem: tests/testapp
- $(PAHOLE_COMMAND) $(MEM_COMMAND)
+ @$(PAHOLE_COMMAND) tests/testapp
gdb-mem: tests/testapp
- $(DEBUG_COMMAND) $(MEM_COMMAND)
+ @$(DEBUG_COMMAND) tests/testapp
gdb-atom: tests/atomsmasher
- $(DEBUG_COMMAND) $(UDP_COMMAND)
+ @$(DEBUG_COMMAND) tests/testudp
gdb-udp: tests/testudp
- $(DEBUG_COMMAND) $(ATOM_COMMAND)
+ @$(DEBUG_COMMAND) tests/atomsmasher
gdb-plus: tests/testplus
- $(DEBUG_COMMAND) $(TESTPLUS_COMMAND)
+ $(DEBUG_COMMAND) tests/testplus
gdb-hash: tests/testhashkit
- $(DEBUG_COMMAND) $(HASH_COMMAND)
+ @$(DEBUG_COMMAND) tests/testhashkit
-gdb-hashplus: tests/hashplus
- $(DEBUG_COMMAND) $(HASHPLUS_COMMAND)
+gdb-hashplus: tests/hash_plus
+ @$(DEBUG_COMMAND) tests/hash_plus
gdb-cycle: tests/cycle
- $(DEBUG_COMMAND) $(CYCLE_COMMAND)
+ @$(DEBUG_COMMAND) tests/cycle
gdb-memslap: clients/memslap
- $(DEBUG_COMMAND) $(MEMSLAP_COMMAND)
+ @$(DEBUG_COMMAND) clients/memslap
valgrind-cycle: tests/cycle
- $(VALGRIND_COMMAND) $(CYCLE_COMMAND)
+ $(VALGRIND_COMMAND) tests/cycle
valgrind-mem: tests/testapp
- $(VALGRIND_COMMAND) $(MEM_COMMAND)
+ @$(VALGRIND_COMMAND) tests/testapp
valgrind-atom: tests/atomsmasher
- $(VALGRIND_COMMAND) $(ATOM_COMMAND)
+ $(VALGRIND_COMMAND) tests/atomsmasher
valgrind-udp: tests/testudp
- $(VALGRIND_COMMAND) $(UDP_COMMAND)
+ $(VALGRIND_COMMAND) tests/testudp
valgrind-plus: tests/testplus
- $(VALGRIND_COMMAND) $(TESTPLUS_COMMAND)
+ @$(VALGRIND_COMMAND) tests/testplus
valgrind-hash: tests/testhashkit
- $(VALGRIND_COMMAND) $(HASH_COMMAND)
+ @$(VALGRIND_COMMAND) tests/testhashkit
-valgrind-hashplus: tests/hashplus
- $(VALGRIND_COMMAND) $(HASHPLUS_COMMAND)
-
-valgrind-memslap: clients/memslap
- $(VALGRIND_COMMAND) $(MEMSLAP_COMMAND)
+valgrind-hashplus: tests/hash_plus
+ @$(VALGRIND_COMMAND) tests/hash_plus
PHONY += valgrind
-valgrind: tests/testapp tests/testhashkit valgrind-mem valgrind-hash valgrind-memcat valgrind-memcp valgrind-memrm valgrind-memerror valgrind-memdump valgrind-memflush valgrind-memstat
+valgrind: valgrind-cycle valgrind-mem valgrind-udp valgrind-plus valgrind-hash valgrind-hashplus
+
+helgrind-cycle: tests/cycle
+ @$(HELGRIND_COMMAND) tests/cycle
+
+helgrind-mem: tests/testapp
+ @$(HELGRIND_COMMAND) tests/testapp
+
+helgrind-atom: tests/atomsmasher
+ @$(HELGRIND_COMMAND) tests/atomsmasher
+
+helgrind-udp: tests/testudp
+ @$(HELGRIND_COMMAND) tests/testudp
+
+helgrind-plus: tests/testplus
+ @$(HELGRIND_COMMAND) tests/testplus
+
+helgrind-hash: tests/testhashkit
+ @$(HELGRIND_COMMAND) tests/testhashkit
+
+helgrind-hashplus: tests/hash_plus
+ @$(HELGRIND_COMMAND) tests/hash_plus
+
+.PHONY += helgrind
+helgrind: helgrind-cycle helgrind-mem helgrind-udp helgrind-plus helgrind-hash helgrind-hashplus
PHONY += cachegrind
CLEANFILES += tests/cachegrind.out
$(LIBTOOL) --mode=execute valgrind --tool=callgrind --callgrind-out-file=tests/callgrind.out.%p tests/testapp
callgrind_annotate tests/callgrind.out.* --auto=yes > tests/callgrind.out
-PHONY += helgrind
-CLEANFILES+= helgrind.out.*
-helgrind:
- rm -f helgrind.out.*
- $(LIBTOOL) --mode=execute valgrind --tool=helgrind tests/testapp
-
-PHONY += helgrind-slap
-helgrind-slap:
- $(LIBTOOL) --mode=execute valgrind --tool=helgrind clients/memslap --server=localhost --concurrency=30
-
test-no-outputdiff: test
hudson-valgrind: tests/testapp
- $(VALGRIND_COMMAND) --log-file=tests/valgrind.out $(MEM_COMMAND)
+ $(VALGRIND_COMMAND) --log-file=tests/valgrind.out tests/testapp