Skip to content

Commit

Permalink
Merge pull request #20 from ckormanyos/valgrind_in_ci
Browse files Browse the repository at this point in the history
Fix #19 via add valgrind run(s) in CI
  • Loading branch information
ckormanyos authored Mar 16, 2024
2 parents f4cc575 + 3adfbd5 commit d305afc
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/gamma_f77.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,58 @@ jobs:
./gamma.exe | grep '0.296439082102472192334520537379648E+06'
./gamma.exe | grep '0.554521067573633755529159865936434E-01'
./gamma.exe | grep '0.265252859812191058636308480000000E+33'
ubuntu-native-valgrind:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
standard: [ legacy, f2018 ]
compiler: [ g++ ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: update-tools
run: |
sudo apt-get update -y
sudo apt-get install -y valgrind
- name: ubuntu-native
run: |
${{ matrix.compiler }} -x f77 -std=${{ matrix.standard }} -m64 -fno-exceptions -O1 gamma.f -lgfortran -lquadmath -o gamma.exe
ls -la gamma.exe
valgrind --leak-check=yes --log-file=gamma_valgrind_00.txt ./gamma.exe | grep '0.947395504039301942134227647281424E+00'
valgrind --leak-check=yes --log-file=gamma_valgrind_01.txt ./gamma.exe | grep '0.110784755653406415338349971053114E+01'
valgrind --leak-check=yes --log-file=gamma_valgrind_02.txt ./gamma.exe | grep '0.271139823924390323650711692085896E+01'
valgrind --leak-check=yes --log-file=gamma_valgrind_03.txt ./gamma.exe | grep '0.102754040920152050479188001843206E+02'
valgrind --leak-check=yes --log-file=gamma_valgrind_04.txt ./gamma.exe | grep '0.531934282525008207389522379291889E+02'
valgrind --leak-check=yes --log-file=gamma_valgrind_05.txt ./gamma.exe | grep '0.350998609824200588801455504140098E+03'
valgrind --leak-check=yes --log-file=gamma_valgrind_06.txt ./gamma.exe | grep '0.282509453680418713613816084109635E+04'
valgrind --leak-check=yes --log-file=gamma_valgrind_07.txt ./gamma.exe | grep '0.269036719467497675679082571845063E+05'
valgrind --leak-check=yes --log-file=gamma_valgrind_08.txt ./gamma.exe | grep '0.296439082102472192334520537379648E+06'
valgrind --leak-check=yes --log-file=gamma_valgrind_09.txt ./gamma.exe | grep '0.554521067573633755529159865936434E-01'
valgrind --leak-check=yes --log-file=gamma_valgrind_10.txt ./gamma.exe | grep '0.265252859812191058636308480000000E+33'
grep '0 bytes in 0 blocks' gamma_valgrind_00.txt
grep '0 bytes in 0 blocks' gamma_valgrind_01.txt
grep '0 bytes in 0 blocks' gamma_valgrind_02.txt
grep '0 bytes in 0 blocks' gamma_valgrind_03.txt
grep '0 bytes in 0 blocks' gamma_valgrind_04.txt
grep '0 bytes in 0 blocks' gamma_valgrind_05.txt
grep '0 bytes in 0 blocks' gamma_valgrind_06.txt
grep '0 bytes in 0 blocks' gamma_valgrind_07.txt
grep '0 bytes in 0 blocks' gamma_valgrind_08.txt
grep '0 bytes in 0 blocks' gamma_valgrind_09.txt
grep '0 bytes in 0 blocks' gamma_valgrind_10.txt
grep '0 errors from 0 contexts' gamma_valgrind_00.txt
grep '0 errors from 0 contexts' gamma_valgrind_01.txt
grep '0 errors from 0 contexts' gamma_valgrind_02.txt
grep '0 errors from 0 contexts' gamma_valgrind_03.txt
grep '0 errors from 0 contexts' gamma_valgrind_04.txt
grep '0 errors from 0 contexts' gamma_valgrind_05.txt
grep '0 errors from 0 contexts' gamma_valgrind_06.txt
grep '0 errors from 0 contexts' gamma_valgrind_07.txt
grep '0 errors from 0 contexts' gamma_valgrind_08.txt
grep '0 errors from 0 contexts' gamma_valgrind_09.txt
grep '0 errors from 0 contexts' gamma_valgrind_10.txt

0 comments on commit d305afc

Please sign in to comment.