mu/build_and_test_until
Kartik Agaram 53172ce13a 4253 - support running just a single C test
We've had this ability for Mu scenarios forever.
2018-06-06 09:27:44 -07:00

19 lines
397 B
Bash
Executable File

#!/bin/sh
# Run tests for just a subset of layers.
#
# Usage:
# build_and_test_until [file prefix] [test name]
# Provide the second arg to run just a single test.
set -e
# clean previous builds if they were building until a different layer
touch .until
PREV_UNTIL=`cat .until`
if [ "$PREV_UNTIL" != $1 ]
then
./clean top-level
echo $1 > .until
fi
./build3 --until $1 && ./mu_bin test $2