diff options
Diffstat (limited to 'src/regress/lib/libssl/rust-openssl')
| -rw-r--r-- | src/regress/lib/libssl/rust-openssl/Cargo.toml | 8 | ||||
| -rw-r--r-- | src/regress/lib/libssl/rust-openssl/Makefile | 58 | ||||
| -rw-r--r-- | src/regress/lib/libssl/rust-openssl/config | 6 |
3 files changed, 0 insertions, 72 deletions
diff --git a/src/regress/lib/libssl/rust-openssl/Cargo.toml b/src/regress/lib/libssl/rust-openssl/Cargo.toml deleted file mode 100644 index c33c3475a7..0000000000 --- a/src/regress/lib/libssl/rust-openssl/Cargo.toml +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | [workspace] | ||
| 2 | members = [ | ||
| 3 | "openssl", | ||
| 4 | "openssl-errors", | ||
| 5 | "openssl-macros", | ||
| 6 | "openssl-sys", | ||
| 7 | "systest", | ||
| 8 | ] | ||
diff --git a/src/regress/lib/libssl/rust-openssl/Makefile b/src/regress/lib/libssl/rust-openssl/Makefile deleted file mode 100644 index a243995f20..0000000000 --- a/src/regress/lib/libssl/rust-openssl/Makefile +++ /dev/null | |||
| @@ -1,58 +0,0 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.4 2022/12/05 14:43:06 tb Exp $ | ||
| 2 | |||
| 3 | RUST_OPENSSL_TESTS = /usr/local/share/rust-openssl-tests | ||
| 4 | CARGO = /usr/local/bin/cargo | ||
| 5 | |||
| 6 | .if !exists(${RUST_OPENSSL_TESTS}) || !exists(${CARGO}) | ||
| 7 | regress: | ||
| 8 | @echo packages rust-openssl-tests and rust are required for this regress | ||
| 9 | @echo SKIPPED | ||
| 10 | .else | ||
| 11 | |||
| 12 | REGRESS_TARGETS += rust-openssl-test | ||
| 13 | |||
| 14 | WORKSPACE_LINKS = openssl openssl-errors openssl-macros openssl-sys systest | ||
| 15 | |||
| 16 | _WORKSPACE_COOKIE = .workspace | ||
| 17 | |||
| 18 | ${_WORKSPACE_COOKIE}: | ||
| 19 | . if ${.CURDIR} != ${.OBJDIR} | ||
| 20 | cp ${.CURDIR}/Cargo.toml ${.OBJDIR}/ | ||
| 21 | . endif | ||
| 22 | mkdir -p .cargo | ||
| 23 | cp ${.CURDIR}/config .cargo/ | ||
| 24 | cd ${.OBJDIR} && ln -sf ${WORKSPACE_LINKS:S,^,${RUST_OPENSSL_TESTS}/,} . | ||
| 25 | touch $@ | ||
| 26 | |||
| 27 | CLEANFILES += Cargo.lock | ||
| 28 | |||
| 29 | . if ${.CURDIR} != ${.OBJDIR} | ||
| 30 | CLEANFILES += Cargo.toml | ||
| 31 | . endif | ||
| 32 | |||
| 33 | # Force use of base-clang on sparc64 since the build with base-gcc fails with: | ||
| 34 | # error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" [...] | ||
| 35 | # did not execute successfully (status code exit status: 1). | ||
| 36 | . if "${MACHINE_ARCH}" == sparc64 | ||
| 37 | CARGO_CC=/usr/bin/clang | ||
| 38 | . else | ||
| 39 | CARGO_CC=cc | ||
| 40 | . endif | ||
| 41 | |||
| 42 | rust-openssl-test: ${_WORKSPACE_COOKIE} | ||
| 43 | cd ${.OBJDIR} && env CC=${CARGO_CC} \ | ||
| 44 | cargo test --offline --color=never -- --color=never | ||
| 45 | |||
| 46 | CLEANFILES += ${_WORKSPACE_COOKIE} ${WORKSPACE_LINKS} | ||
| 47 | |||
| 48 | . if make(clean) || make(cleandir) | ||
| 49 | . if exists(.cargo) || exists(target) | ||
| 50 | .BEGIN: | ||
| 51 | rm -rf .cargo | ||
| 52 | rm -rf target | ||
| 53 | . endif | ||
| 54 | . endif | ||
| 55 | |||
| 56 | .endif | ||
| 57 | |||
| 58 | .include <bsd.regress.mk> | ||
diff --git a/src/regress/lib/libssl/rust-openssl/config b/src/regress/lib/libssl/rust-openssl/config deleted file mode 100644 index a47474744d..0000000000 --- a/src/regress/lib/libssl/rust-openssl/config +++ /dev/null | |||
| @@ -1,6 +0,0 @@ | |||
| 1 | [net] | ||
| 2 | offline = true | ||
| 3 | [source.modcargo] | ||
| 4 | directory = '/usr/local/share/rust-openssl-tests/modcargo-crates' | ||
| 5 | [source.crates-io] | ||
| 6 | replace-with = 'modcargo' | ||
