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
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ jobs:
macos_unit_tests:
needs: unit_tests
uses: ./.github/workflows/macos_unit_tests.yml
valgrind_tests:
needs: unit_tests
uses: ./.github/workflows/valgrind.yml
static_check:
needs: unit_tests
uses: ./.github/workflows/job-static-check.yml
Expand Down
200 changes: 0 additions & 200 deletions .github/workflows/valgrind.sh

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/valgrind.yml

This file was deleted.

19 changes: 19 additions & 0 deletions tests/valgrind-check/valgrind.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
#!/bin/bash

# This test script builds and installs CFEngine, and runs our binaries
# with valgrind to look for memory leaks, and similar.
#
# It is normally run inside a container (see Containerfile next to it).
# If you want to run it without a container, you can.
# It assumes a few things:
# 1. Must be run from inside core (CWD)
# 2. Masterfiles must be at ../masterfiles
# 3. Normal build tools must be installed, and valgrind and diff
# 4. Must be run using sudo / as root, or have necessary permissions
# 5. CFEngine should not already be installed
#
# In order to run this in an Ubuntu VM, you can do something like this:
# sudo apt-get install -y build-essential git libtool autoconf automake bison flex libssl-dev libpcre2-dev libbison-dev libacl1 libacl1-dev lmdb-utils liblmdb-dev libpam0g-dev libtool libyaml-dev libxml2-dev librsync-dev valgrind
# git clone https://github.com/cfengine/masterfiles
# git clone --recursive https://github.com/cfengine/core
# cd core
# sudo bash tests/valgrind-check/valgrind.sh

function print_ps {
set +e
echo "CFEngine processes:"
Expand Down
Loading