aboutsummaryrefslogtreecommitdiff
path: root/contrib/cirrus/unit_test.sh
blob: 004839f175568dda88737e0b4476f6ce67b99336 (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

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