Skip to content

Commit

Permalink
Run CTest with Valgrind
Browse files Browse the repository at this point in the history
  • Loading branch information
tuokri committed Jan 23, 2024
1 parent 9bb4d80 commit 2897800
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cmake-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ jobs:
${{ env.UMB_VALGRIND_BIN }} --version
if: matrix.os == 'ubuntu-latest'

- name: Run CTest with Valgrind
env:
VALGRIND_LIB: ${{ env.VALGRIND_PREFIX }}/libexec/valgrind/
run: ctest -C ${{ matrix.build_type }} --verbose -T memcheck

- name: Run UMB generator with Valgrind
env:
UMB_GEN_BIN: build/uscript_msgbuf_generator
Expand Down
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

# TODO: set Valgrind arguments here?

cmake_minimum_required(VERSION 3.25)
project(uscript-msgbuf)

Expand Down

0 comments on commit 2897800

Please sign in to comment.