Skip to content

Commit

Permalink
Revert "[RSDK-4148] remove-makefile-and-gh-action-full-mod" (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksanford authored Jul 24, 2023
1 parent 553463e commit c2864b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ jobs:
run: |
sudo -u testbot bash -lc 'go test -v -race -run TestCartographerIntegration'
- name: make setup-cpp-debug test-cpp-valgrind
- name: make setup-cpp-full-mod test-cpp-full-mod-valgrind
# Currently we only run valgrind on arm64 as x86
# doesn't valgrind clean due to what appears to be a bug in GLOG
# https://github.com/viamrobotics/viam-cartographer/actions/runs/5156238014/jobs/9287413446
if: matrix.platform != 'linux/amd64'
run: |
sudo -u testbot bash -lc 'make setup-cpp-debug test-cpp-valgrind'
sudo -u testbot bash -lc 'make setup-cpp-full-mod test-cpp-full-mod-valgrind'
15 changes: 11 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,21 +117,28 @@ build-asan: build-debug
build-debug: EXTRA_CMAKE_FLAGS += -DCMAKE_BUILD_TYPE=Debug -DFORCE_DEBUG_BUILD=True
build-debug: build

test-cpp:
viam-cartographer/build/unit_tests -p -l all

# Linux only
setup-cpp-full-mod:
sudo apt install -y valgrind gdb

setup-cpp-debug:
sudo apt install -y valgrind gdb

# Linux only
test-cpp-asan: build-asan
test-cpp-full-mod-asan: build-asan
viam-cartographer/build/unit_tests -p -l all

test-cpp-valgrind: build-debug
test-cpp-full-mod-valgrind: build-debug
valgrind --error-exitcode=1 --leak-check=full -s viam-cartographer/build/unit_tests -p -l all

# Linux only
test-cpp-gdb: build-debug
test-cpp-full-mod-gdb: build-debug
gdb --batch --ex run --ex bt --ex q --args viam-cartographer/build/unit_tests -p -l all

test-cpp: build-debug
test-cpp-full-mod: build-debug
viam-cartographer/build/unit_tests -p -l all

test-go:
Expand Down

0 comments on commit c2864b7

Please sign in to comment.