]> sourceware.org Git - valgrind.git/commitdiff
FreeBSD support, patch 8b
authorPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 5 Oct 2021 07:12:45 +0000 (09:12 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Thu, 7 Oct 2021 19:39:25 +0000 (21:39 +0200)
nightly directory

nightly/bin/nightly
nightly/conf/freebsd12.1.conf [new file with mode: 0644]
nightly/conf/freebsd12.1.sendmail [new file with mode: 0755]

index 92fa076286e3971ab6be8b9c9b87f4c53332bef7..370a181114cd2f0457555359484a39c04b100760 100755 (executable)
@@ -42,6 +42,14 @@ runcmd () {
 # 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
@@ -72,7 +80,7 @@ if [ "${ABT_EVAL}" = "" ]; then
   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
@@ -118,7 +126,7 @@ for logfile in old new ; do
    # 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             " \
@@ -126,7 +134,7 @@ for logfile in old new ; do
    \
    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         " \
@@ -177,11 +185,17 @@ END=`date "+%F %H:%M:%S %Z"`
 
 # 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"
diff --git a/nightly/conf/freebsd12.1.conf b/nightly/conf/freebsd12.1.conf
new file mode 100644 (file)
index 0000000..c76383e
--- /dev/null
@@ -0,0 +1,4 @@
+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++"
diff --git a/nightly/conf/freebsd12.1.sendmail b/nightly/conf/freebsd12.1.sendmail
new file mode 100755 (executable)
index 0000000..6fc10f9
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+subject=$1
+body=$2
+file=$3
+filename=$( basename $3 )
+
+(cat "$body" "$file") | mail -s "$subject"  valgrind-testresults@lists.sourceforge.net -f "Paul Floyd <pjfloyd@wanadoo.fr>"
This page took 0.03153 seconds and 5 git commands to generate.