Skip to content

Commit

Permalink
Made tests more strict using valgrind.
Browse files Browse the repository at this point in the history
Former-commit-id: baba255
  • Loading branch information
avighnac committed Feb 25, 2023
1 parent 15fd83c commit 8116fb8
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,27 @@ jobs:
language: [ 'cpp' ]

steps:
- name: Set up NASM
- name: Set up NASM.
uses: ilammy/[email protected]
- name: Checkout repo.
uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Install valgrind.
- run: |
git submodule update --init --recursive
cmake --no-warn-unused-cli -DENABLE_TESTS=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ -S . -B build -G "Unix Makefiles"
cmake --build build --config Release --target all -j 10 --
apt-get install valgrind
- name: Clone tests.
- run: |
git submodule update --init --recursive
- name: Compile tests.
- run: |
cmake --no-warn-unused-cli -DENABLE_TESTS=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ -S . -B build -G "Unix Makefiles"
cmake --build build --config Debug --target all -j 10 --
chmod +x build/src/tests/tests
./build/src/tests/tests
- name: Run tests with valgrind.
- run: |
valgrind ./build/src/tests/tests
test-windows:
name: Make test.cpp for windows.
Expand Down

0 comments on commit 8116fb8

Please sign in to comment.