Added missing test #131
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Valgrind | |
| on: [push, pull_request] | |
| jobs: | |
| linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y valgrind | |
| - name: Configure Debug build | |
| run: cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DPSLP_BUILD_TESTING=ON | |
| - name: Build | |
| run: cmake --build build --config Debug | |
| - name: Run tests under Valgrind | |
| run: | | |
| valgrind --leak-check=full --show-leak-kinds=all \ | |
| --track-origins=yes -s --show-reachable=yes \ | |
| --error-exitcode=1 build/bin/all_tests |