summaryrefslogtreecommitdiff
path: root/contrib/cirrus/unit_test.sh
blob: 50801a8e44392aa36d5d08162fc00fd2b2fb385f (plain)
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
#!/bin/bash

set -e
source $(dirname $0)/lib.sh

req_env_var GOSRC

set -x
cd "$GOSRC"
make install.tools
make localunit

case "$SPECIALMODE" in
    in_podman) ;&
    rootless) ;&
    none)
        make
        ;;
    windows) ;&
    darwin)
        make podman-remote-$SPECIALMODE
        ;;
    *)
        die 109 "Unsupported \$SPECIAL_MODE: $SPECIALMODE"
esac