Lines Matching refs:UNITTEST_DIR
57 UNITTEST_DIR=${1:-$BINDIR}
60 UNITTEST_DIR=`$UNITTEST_DIR/low_level_alloc_unittest --help 2>&1 \
64 # Figure out where libtcmalloc lives. It should be in UNITTEST_DIR,
66 if [ -r "$UNITTEST_DIR/libtcmalloc_minimal.so" ]; then
67 LIB_PATH="$UNITTEST_DIR/libtcmalloc_minimal.so"
68 elif [ -r "$UNITTEST_DIR/.libs/libtcmalloc_minimal.so" ]; then
69 LIB_PATH="$UNITTEST_DIR/.libs/libtcmalloc_minimal.so"
70 elif [ -r "$UNITTEST_DIR/libtcmalloc_minimal.dylib" ]; then # for os x
71 LIB_PATH="$UNITTEST_DIR/libtcmalloc_minimal.dylib"
72 elif [ -r "$UNITTEST_DIR/.libs/libtcmalloc_minimal.dylib" ]; then
73 LIB_PATH="$UNITTEST_DIR/.libs/libtcmalloc_minimal.dylib"
79 LD_PRELOAD="$LIB_PATH" $UNITTEST_DIR/low_level_alloc_unittest