• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash -ex
2
3# Go to srcdir
4cd $(dirname ${BASH_SOURCE[0]})/..
5
6rm -rf out.test
7mkdir out.test
8cd out.test
9../tests/bootstrap.bash
10./blueprint.bash
11
12if [[ -d .bootstrap/blueprint/test ]]; then
13  echo "Tests should not be enabled here" >&2
14  exit 1
15fi
16
17sleep 2
18../tests/bootstrap.bash -t
19./blueprint.bash
20
21if [[ ! -d .bootstrap/blueprint/test ]]; then
22  echo "Tests should be enabled here" >&2
23  exit 1
24fi
25
26sleep 2
27../tests/bootstrap.bash
28./blueprint.bash
29
30if [[ -d .bootstrap/blueprint/test ]]; then
31  echo "Tests should not be enabled here (2)" >&2
32  exit 1
33fi
34