[Glacier] Add a basic unit testing framework.

This commit is contained in:
Drew Galbraith 2024-01-11 16:09:37 -08:00
parent 83b0d9ab61
commit 09d902dfb5
7 changed files with 43 additions and 0 deletions

14
scripts/test.sh Executable file
View file

@ -0,0 +1,14 @@
#! /bin/bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
pushd "$DIR/.."
cmake -B test-bin/ -G Ninja -D enable_testing=on
pushd test-bin/
ninja build_test
ctest --output-on-failure
popd
popd