From 68e82eeafc57bdd49ecf6b9eed8cb284073edc09 Mon Sep 17 00:00:00 2001 From: Noam Preil Date: Thu, 18 Jun 2020 04:43:03 -0400 Subject: [PATCH] Fail if there's a memory leak building the kernel --- .build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.build.yml b/.build.yml index 1bd8d46..0b10fe9 100644 --- a/.build.yml +++ b/.build.yml @@ -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: @@ -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