Home | History | Annotate | Download | only in tests
      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 ../tests/bootstrap.bash
     10 ./blueprint.bash
     11 
     12 if [[ -d .bootstrap/blueprint/test ]]; then
     13   echo "Tests should not be enabled here" >&2
     14   exit 1
     15 fi
     16 
     17 sleep 2
     18 ../tests/bootstrap.bash -t
     19 ./blueprint.bash
     20 
     21 if [[ ! -d .bootstrap/blueprint/test ]]; then
     22   echo "Tests should be enabled here" >&2
     23   exit 1
     24 fi
     25 
     26 sleep 2
     27 ../tests/bootstrap.bash
     28 ./blueprint.bash
     29 
     30 if [[ -d .bootstrap/blueprint/test ]]; then
     31   echo "Tests should not be enabled here (2)" >&2
     32   exit 1
     33 fi
     34