Debian Codegraph @

bin/test-unit

raw symbols SCIP
1 #!/bin/bash
2
3 running_in_container() {
4 # look for a non-root cgroup
5 grep --quiet --invert-match ':/$' /proc/self/cgroup
6 }
7
8 main() {
9 set -eu -o pipefail -x
10
11 go install github.com/cloudfoundry/gosigar/vendor/github.com/onsi/ginkgo/ginkgo
12
13 skip_packages=""
14
15 if running_in_container; then
16 set +x
17 skip_packages="$skip_packages,psnotify"
18 echo -e "\e[33mDetected running in container."
19 echo -e "Cannot run \e[1mpsnotify\e[21m suite because of socket syscall limitations."
20 echo -e "Skipping...\e[0m"
21 set -x
22 fi
23
24 ginkgo -p -r -randomizeAllSpecs -randomizeSuites -keepGoing -race -skipPackage=$skip_packages
25 }
26
27 main "$@"