forked from canonical/secboot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-tests
More file actions
executable file
·26 lines (23 loc) · 765 Bytes
/
Copy pathrun-tests
File metadata and controls
executable file
·26 lines (23 loc) · 765 Bytes
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
#!/bin/sh -e
WITH_MSSIM=0
MSSIM_ARGS=
while [ $# -gt 0 ]; do
case "$1" in
--with-mssim)
ENV="$ENV USE_MSSIM=1"
shift
;;
--no-expensive-cryptsetup-tests)
ENV="$ENV NO_EXPENSIVE_CRYPTSETUP_TESTS=1"
shift
;;
--)
shift
break
;;
*)
echo "Unrecognized flag $1"
exit 1
esac
done
env $ENV go test -ldflags '-X github.com/snapcore/secboot/internal/testenv.testBinary=enabled' -v -race -p 1 -timeout 30m ./... -args -check.v $@