-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made tests more strict using valgrind.
Former-commit-id: baba255
- Loading branch information
Showing
1 changed file
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|