Skip to content

Commit

Permalink
Fail if there's a memory leak building the kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
Noam Preil committed Jun 18, 2020
1 parent bd221db commit 7f8ef5f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ image: archlinux
packages:
- make
- cmake
- mkrom
- patchrom
- genkfs
- mktiupgrade
- valgrind
sources:
- https://github.com/knightos/scas
- https://github.com/knightos/kernel
environment:
project: scas
tasks:
Expand All @@ -13,3 +19,7 @@ tasks:
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
cd ../../kernel
mkdir bin/TI84pSE -p
valgrind -s --track-origins=yes --leak-check=full --error-exitcode=1 ../scas/build/scas --define TI84pSE --include "include/;bin/TI84pSE/;src/00/" --symbols bin/TI84pSE/00.sym --listing bin/TI84pSE/00.list src/00/base.asm -o bin/TI84pSE/00.bin -vv
if [[ "$(grep ERROR\ SUMMARY log | cut -d\ -f4)" != "0" ]] ; then echo Memory error ; exit 1 ; fi

0 comments on commit 7f8ef5f

Please sign in to comment.