Skip to content

Commit

Permalink
tests: add libtool for the template targets
Browse files Browse the repository at this point in the history
Fixes e.g. make bt_edit.gdb
See #68
  • Loading branch information
ensonic committed Jul 5, 2016
1 parent 5a36601 commit cf19d2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile.tests.am
Original file line number Diff line number Diff line change
Expand Up @@ -362,20 +362,20 @@ LOOPS ?= 10
%.gdb: %
@CK_FORK=no \
$(TESTS_ENVIRONMENT) \
gdb ./$*
$(LIBTOOL) --mode=execute gdb ./$*

# make (test).refdbg -- run test under refdbg
%.refdbg: %
@CK_FORK=no \
$(TESTS_ENVIRONMENT) \
refdbg -c "btnum=20 ; logobjs=0 ; $(REFDBG_RULE)" \
$(LIBTOOL) --mode=execute refdbg -c "btnum=20 ; logobjs=0 ; $(REFDBG_RULE)" \
./$*

# make (test).strace -- run test under strace
%.strace: %
@CK_FORK=no \
$(TESTS_ENVIRONMENT) \
strace -e file -o /tmp/strace.log ./$*
$(LIBTOOL) --mode=execute strace -e file -o /tmp/strace.log ./$*

## todo: check if code has been compiled using --enable-debug
##
Expand Down

0 comments on commit cf19d2e

Please sign in to comment.