Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/valgrind-check/Containerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:24.04 AS build
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y --fix-missing && \
DEBIAN_FRONTEND=noninteractive apt-get install -y libssl-dev libxml2-dev libpam0g-dev liblmdb-dev libacl1-dev libpcre2-dev librsync-dev python3 git flex bison byacc automake make autoconf libtool valgrind curl
DEBIAN_FRONTEND=noninteractive apt-get install -y libssl-dev libxml2-dev libpam0g-dev liblmdb-dev libacl1-dev libpcre2-dev librsync-dev python3 git flex bison byacc automake make autoconf libtool valgrind curl postfix
COPY masterfiles masterfiles
COPY core core
WORKDIR core
Expand Down
7 changes: 7 additions & 0 deletions tests/valgrind-check/valgrind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ set -x
auto_destruct_pid=$!
trap "kill $auto_destruct_pid" EXIT

# cf-execd's MailResult connects to localhost:25 whenever a cf-agent run
# produces output. Run smtp-sink (from the postfix package) so the connect
# succeeds and cf-execd's mail code path is exercised under valgrind without
# leaving an "error: Mail report: couldn't connect" line in execd_output.txt.
echo "Starting smtp-sink to absorb cf-execd mail reports"
/usr/sbin/smtp-sink 127.0.0.1:25 1000 &

# Assume we are in core directory
if [ -f ./configure ] ; then
./configure -C --enable-debug
Expand Down
Loading