1 #!/bin/bash -ex 2 3 # Go to srcdir 4 cd $(dirname ${BASH_SOURCE[0]})/.. 5 6 rm -rf out.test 7 mkdir out.test 8 cd out.test 9 cp ../build.ninja.in src.build.ninja.in 10 ../tests/bootstrap.bash 11 12 ./blueprint.bash 13 14 if [[ -d .bootstrap/blueprint/test ]]; then 15 echo "Tests should not be enabled here" >&2 16 exit 1 17 fi 18 19 sleep 2 20 sed -i 's/extra =/extra = -t/' src.build.ninja.in 21 ./blueprint.bash 22 23 if [[ ! -d .bootstrap/blueprint/test ]]; then 24 echo "Tests should be enabled here" >&2 25 exit 1 26 fi 27 28 if cmp -s src.build.ninja.in .minibootstrap/build.ninja.in; then 29 echo "src.build.ninja.in and .minibootstrap/build.ninja.in should be different" >&2 30 exit 1 31 fi 32 33 sleep 2 34 cp ../build.ninja.in src.build.ninja.in 35 ./blueprint.bash 36 37 if [[ -d .bootstrap/blueprint/test ]]; then 38 echo "Tests should not be enabled here (2)" >&2 39 exit 1 40 fi 41 42 if ! cmp -s src.build.ninja.in .minibootstrap/build.ninja.in; then 43 echo "src.build.ninja.in and .minibootstrap/build.ninja.in should be the same" >&2 44 exit 1 45 fi 46