File: test.sh

package info (click to toggle)
golang-github-google-blueprint 0.0~git20201007.25128be-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 1,088 kB
  • sloc: sh: 250; makefile: 13
file content (33 lines) | stat: -rwxr-xr-x 566 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/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