1e72321e58
This duplicates building common blueprint go packages between minibp and the primary builder, but drastically simplifies the first stage, removing the need to check in a generated build.ninja.in. Change-Id: I639a9637f1ed36d4210823ef276c0f7a064a83bd
33 lines
566 B
Bash
Executable file
33 lines
566 B
Bash
Executable file
#!/bin/bash -ex
|
|
|
|
# Go to srcdir
|
|
cd $(dirname ${BASH_SOURCE[0]})/..
|
|
|
|
rm -rf out.test
|
|
mkdir out.test
|
|
cd out.test
|
|
../tests/bootstrap.bash
|
|
./blueprint.bash
|
|
|
|
if [[ -d .bootstrap/blueprint/test ]]; then
|
|
echo "Tests should not be enabled here" >&2
|
|
exit 1
|
|
fi
|
|
|
|
sleep 2
|
|
../tests/bootstrap.bash -t
|
|
./blueprint.bash
|
|
|
|
if [[ ! -d .bootstrap/blueprint/test ]]; then
|
|
echo "Tests should be enabled here" >&2
|
|
exit 1
|
|
fi
|
|
|
|
sleep 2
|
|
../tests/bootstrap.bash
|
|
./blueprint.bash
|
|
|
|
if [[ -d .bootstrap/blueprint/test ]]; then
|
|
echo "Tests should not be enabled here (2)" >&2
|
|
exit 1
|
|
fi
|