about summary refs log tree commit diff stats
path: root/clean
Commit message (Collapse)AuthorAgeFilesLines
* 4270 - tweak the experimental concurrent builderKartik Agaram2018-06-251-1/+1
|
* 4251 - speed up repeated builds until the same layerKartik Agaram2018-06-051-0/+1
| | | | Also allow running a single test, to speed things up still further.
* 4211Kartik K. Agaram2018-02-201-0/+1
| | | | | | | | Just ran into first issue from using the portable /bin/sh rather than a modern shell: https://stackoverflow.com/questions/15744421/read-command-doesnt-wait-for-input Turn on errexit everywhere.
* 3460Kartik K. Agaram2016-10-071-0/+1
|
* 3447 - drop dependence on GNU makeKartik K. Agaram2016-10-061-0/+7
A generic build system is overkill for such a small project, and it was adding complexity on OpenBSD which doesn't come with GNU make by default. In the process we also eliminate our reliance on bash and perl, at least for the core build script.
11 12 13 14 15 16 17
18
         




                                                   
      
 








                                                                     
                                          
#!/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

./build --until $1  &&  ./subx_bin test $2