[kutil] Fix failing heap allocator tests

The tests clearly haven't even been built in a while. I've added a
helper script to the project root. Also added a kassert() handler that
will allow tests to catch or fail on asserts.
This commit is contained in:
2020-09-07 16:56:07 -07:00
parent 8534d8d3c5
commit 8490472581
6 changed files with 72 additions and 10 deletions

10
test.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -o errexit
ROOT=$(realpath $(dirname $0))
BUILD="${ROOT}/build"
TESTS="${BUILD}/native/tests"
ninja -C "${BUILD}" "${TESTS}"
"${TESTS}" $*