# Startup
#----------------------------------------------------------------------------
+if [ `uname -o` = "FreeBSD" ]; then
+ CP=gcp
+ MAKE=gmake
+else
+ CP=cp
+ MAKE=make
+fi
+
valgrind_git_repo="git://sourceware.org/git/valgrind.git/"
# Must have exactly two arguments
ABT_EVAL="eval"
fi
if [ "${ABT_RUN_REGTEST}" = "" ]; then
- ABT_RUN_REGTEST="make regtest"
+ ABT_RUN_REGTEST="${MAKE} regtest"
fi
if [ "${ABT_PERF_TOOLS}" = "" ]; then
# Check out, build, run tests
runcmd $logfile \
"Checking out Valgrind source tree" \
- "cp -r --preserve=links valgrind-repo valgrind-$logfile && cd valgrind-$logfile && git checkout ${git_commit}" && \
+ "${CP} -r --preserve=links valgrind-repo valgrind-$logfile && cd valgrind-$logfile && git checkout ${git_commit}" && \
\
runcmd $logfile \
"Configuring valgrind " \
\
runcmd $logfile \
"Building valgrind " \
- "cd valgrind-$logfile && make -j ${ABT_JOBS} && make -j ${ABT_JOBS} check && make install" && \
+ "cd valgrind-$logfile && ${MAKE} -j ${ABT_JOBS} && ${MAKE} -j ${ABT_JOBS} check && ${MAKE} install" && \
\
runcmd $logfile \
"Running regression tests " \
# Gather some information about this run and its environment
valgrind_revision=$( ./valgrind-new/vg-in-place -v --version )
-gcc_version="`gcc --version 2> /dev/null | head -1`"
+if [ `uname -o` = "FreeBSD" ]; then
+ gcc_version="`clang --version 2> /dev/null | head -1`"
+else
+ gcc_version="`gcc --version 2> /dev/null | head -1`"
+fi
gdb_version="`gdb --version 2> /dev/null | head -1`"
as_version="`as --version 2> /dev/null | head -1`"
if [ `uname -o` = "Solaris" ]; then
libc="Solaris libc"
+elif [ `uname -o` = "FreeBSD" ]; then
+ libc="FreeBSD libc"
else
libc_so="`ls -1 /lib/libc.so.* /lib64/libc.so.* /lib32/libc.so.* /lib/*-linux-gnu/libc.so.* 2>/dev/null | tail -1`"
libc="unknown"
--- /dev/null
+export ABT_DETAILS=`uname -mrs`
+export ABT_JOBS=2
+#export ABT_PERF="--tools=none,memcheck,callgrind,helgrind,cachegrind,drd,massif --reps=3 --vg=../valgrind-old --vg=../valgrind-new"
+export ABT_CONFIGURE_OPTIONS="CC=clang CXX=clang++"