diff options
Diffstat (limited to 'src/regress/lib/libcrypto/certs/Makefile')
-rw-r--r-- | src/regress/lib/libcrypto/certs/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/regress/lib/libcrypto/certs/Makefile b/src/regress/lib/libcrypto/certs/Makefile index 621c60907f..f7ba9fcad8 100644 --- a/src/regress/lib/libcrypto/certs/Makefile +++ b/src/regress/lib/libcrypto/certs/Makefile | |||
@@ -1,21 +1,24 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1 2020/07/14 18:27:28 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2025/07/09 05:04:35 tb Exp $ |
2 | 2 | ||
3 | .if ! (make(clean) || make(cleandir) || make(obj)) | 3 | .if !exists(/usr/local/bin/go) |
4 | GO_VERSION != sh -c "(go version) 2>/dev/null || true" | ||
5 | .endif | ||
6 | |||
7 | .if empty(GO_VERSION) | ||
8 | regress: | 4 | regress: |
9 | @echo package go is required for this regress | 5 | @echo package go is required for this regress |
10 | @echo SKIPPED | 6 | @echo SKIPPED |
11 | .endif | 7 | .else |
12 | 8 | ||
13 | REGRESS_TARGETS=regress-go-verify | 9 | REGRESS_TARGETS=regress-go-verify |
10 | REGRESS_CLEANUP=clean-go-cache | ||
14 | 11 | ||
15 | certs: | 12 | certs: |
16 | cd ${.CURDIR} && sh ./make-certs.sh | 13 | cd ${.CURDIR} && sh ./make-certs.sh |
17 | 14 | ||
18 | regress-go-verify: | 15 | regress-go-verify: |
19 | cd ${.CURDIR} && go test -test.v . | 16 | cd ${.CURDIR} && env GOCACHE=${.OBJDIR}/go-build go test -test.v . |
17 | |||
18 | clean-go-cache: | ||
19 | env GOCACHE=${.OBJDIR}/go-build go clean -cache | ||
20 | rm -rf ${.OBJDIR}/go-build | ||
21 | |||
22 | .endif | ||
20 | 23 | ||
21 | .include <bsd.regress.mk> | 24 | .include <bsd.regress.mk> |