-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Makefile target to run unit tests in enclave.
- Loading branch information
1 parent
885a7a3
commit d0658f9
Showing
4 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
cmd/veil/veil | ||
cover.html | ||
cover.out | ||
veil.tar | ||
veil.eif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM golang:1.23 | ||
|
||
WORKDIR /app | ||
|
||
RUN mkdir cmd/ internal/ vendor/ | ||
COPY cmd/ ./cmd/ | ||
COPY internal/ ./internal/ | ||
COPY vendor/ ./vendor/ | ||
COPY Makefile go.mod go.sum ./ | ||
COPY scripts/run-unit-tests.sh ./ | ||
|
||
RUN go mod download | ||
|
||
CMD ["/app/run-tests.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd /app | ||
# Needed for Go's build cache. | ||
export HOME=/app | ||
# Needed because otherwise we're getting: | ||
# fork/exec /tmp/go-build1885828642/b001/cmd.test: permission denied | ||
mkdir -p /app/tmp | ||
export TMPDIR=/app/tmp | ||
|
||
echo "Running Go unit tests..." | ||
$(which go) test -cover ./... |