2016-10-07 04:49:21 +00:00
|
|
|
#!/bin/sh
|
2018-06-06 16:02:40 +00:00
|
|
|
# Run tests for just a subset of layers.
|
|
|
|
#
|
2018-06-06 06:39:47 +00:00
|
|
|
# Usage:
|
|
|
|
# build_and_test_until [file prefix] [test name]
|
2018-06-06 16:02:40 +00:00
|
|
|
# Provide the second arg to run just a single test.
|
2018-02-20 09:36:02 +00:00
|
|
|
set -e
|
2015-03-17 02:18:10 +00:00
|
|
|
|
2018-06-06 06:39:47 +00:00
|
|
|
# clean previous builds if they were building until a different layer
|
|
|
|
touch .until
|
|
|
|
PREV_UNTIL=`cat .until`
|
|
|
|
if [ "$PREV_UNTIL" != $1 ]
|
|
|
|
then
|
2022-01-09 15:50:09 +00:00
|
|
|
./clean
|
2018-06-06 06:39:47 +00:00
|
|
|
echo $1 > .until
|
|
|
|
fi
|
|
|
|
|
2020-01-02 09:41:55 +00:00
|
|
|
./build --until $1 && ./bootstrap_bin test $2
|