Tetsuro IKEDA
null+****@clear*****
Thu Oct 4 10:19:49 JST 2012
Tetsuro IKEDA 2009-10-29 20:11:36 +0900 (Thu, 29 Oct 2009) New Revision: e2e58077bddeff5512712d4c18ce12b661c27b80 https://github.com/mroonga/mroonga/commit/e2e58077bddeff5512712d4c18ce12b661c27b80 Log: upgrade test suite script for easy gdb debugging. (thanks to Sutou-san.) Modified files: test/run-unit-test.sh Modified: test/run-unit-test.sh (+16 -2) =================================================================== --- test/run-unit-test.sh 2009-09-10 17:23:47 +0900 (ca4d0b9) +++ test/run-unit-test.sh 2009-10-29 20:11:36 +0900 (61e1a23) @@ -1,13 +1,27 @@ #!/bin/sh export BASE_DIR="`dirname $0`" +top_dir="$BASE_DIR/.." if test -z "$NO_MAKE"; then - make -C $BASE_DIR/../ > /dev/null || exit 1 + make -C $top_dir > /dev/null || exit 1 fi if test -z "$CUTTER"; then CUTTER="`make -s -C $BASE_DIR echo-cutter`" fi +export CUTTER -$CUTTER --keep-opening-modules -s $BASE_DIR "$@" $BASE_DIR +CUTTER_ARGS= +CUTTER_WRAPPER= +if test x"$CUTTER_DEBUG" = x"yes"; then + CUTTER_WRAPPER="$top_dir/libtool --mode=execute gdb --args" + CUTTER_ARGS="--keep-opening-modules" +elif test x"$CUTTER_CHECK_LEAK" = x"yes"; then + CUTTER_WRAPPER="$top_dir/libtool --mode=execute valgrind " + CUTTER_WRAPPER="$CUTTER_WRAPPER --leak-check=full --show-reachable=yes -v" + CUTTER_ARGS="--keep-opening-modules" +fi + +CUTTER_ARGS="$CUTTER_ARGS -s $BASE_DIR" +$CUTTER_WRAPPER $CUTTER $CUTTER_ARGS "$@" $BASE_DIR -------------- next part -------------- HTML����������������������������...Download