Skip to content

Commit

Permalink
Check if valgrind is operational
Browse files Browse the repository at this point in the history
  • Loading branch information
nsauzede committed Oct 17, 2023
1 parent 5c4ae7e commit 4b6aec6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/vade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt install --quiet -y make gcc python3 bash valgrind nasm
run: sudo apt update && sudo apt install --quiet -y make gcc python3 bash valgrind nasm
- name: Build and test
run: bin/vade clean test
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ ifeq ($(CC),$(CLANG))
VALGRIND:=
endif

ifeq (, $(shell which $(VALGRIND) 2>/dev/null))
# Check if valgrind is operational (eg: not missing debuginfo etc..)
ifneq (0, $(shell $(VALGRIND) /bin/false 2>/dev/null ; echo $?))
#$(error "NOT HAVE VALGRIND ($(VALGRIND))")
RUN:=
RUNTEST:=RUN
Expand Down

0 comments on commit 4b6aec6

Please sign in to comment.