diff options
author | cvs2svn <admin@example.com> | 2025-04-14 17:32:06 +0000 |
---|---|---|
committer | cvs2svn <admin@example.com> | 2025-04-14 17:32:06 +0000 |
commit | eb8dd9dca1228af0cd132f515509051ecfabf6f6 (patch) | |
tree | edb6da6af7e865d488dc1a29309f1e1ec226e603 /src/regress/lib/libssl/openssl-ruby | |
parent | 247f0352e0ed72a4f476db9dc91f4d982bc83eb2 (diff) | |
download | openbsd-tb_20250414.tar.gz openbsd-tb_20250414.tar.bz2 openbsd-tb_20250414.zip |
This commit was manufactured by cvs2git to create tag 'tb_20250414'.tb_20250414
Diffstat (limited to '')
-rw-r--r-- | src/regress/lib/libssl/openssl-ruby/Makefile | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/src/regress/lib/libssl/openssl-ruby/Makefile b/src/regress/lib/libssl/openssl-ruby/Makefile deleted file mode 100644 index af8083f662..0000000000 --- a/src/regress/lib/libssl/openssl-ruby/Makefile +++ /dev/null | |||
@@ -1,87 +0,0 @@ | |||
1 | # $OpenBSD: Makefile,v 1.14 2024/08/31 11:14:58 tb Exp $ | ||
2 | |||
3 | OPENSSL_RUBY_TESTS = /usr/local/share/openssl-ruby-tests | ||
4 | .if exists(/usr/local/bin/ruby32) | ||
5 | RUBY_BINREV = 32 | ||
6 | .else | ||
7 | RUBY_BINREV = 33 | ||
8 | .endif | ||
9 | RUBY = ruby${RUBY_BINREV} | ||
10 | |||
11 | # We work in a subdirectory of obj/ since extconf.rb generates a Makefile whose | ||
12 | # name can't be customized in $PWD. An obj/Makefile in turn confuses either make | ||
13 | # or bsd.*.mk. This hurts when things are in an unexpected state after a signal. | ||
14 | BUILDDIR = build | ||
15 | |||
16 | .if !exists(${OPENSSL_RUBY_TESTS}) | ||
17 | regress: | ||
18 | @echo package openssl-ruby-tests is required for this regress | ||
19 | @echo SKIPPED | ||
20 | .else | ||
21 | |||
22 | REGRESS_TARGETS += openssl-ruby-test | ||
23 | |||
24 | openssl-ruby-test: retest | ||
25 | |||
26 | _BUILDDIR_COOKIE = .builddir | ||
27 | _BUILD_COOKIE = .build | ||
28 | _TEST_COOKIE = .test | ||
29 | |||
30 | ${_BUILDDIR_COOKIE}: | ||
31 | mkdir -p ${BUILDDIR} | ||
32 | touch $@ | ||
33 | |||
34 | ${_BUILD_COOKIE}: ${_BUILDDIR_COOKIE} | ||
35 | cd ${BUILDDIR} && \ | ||
36 | ${RUBY} ${OPENSSL_RUBY_TESTS}/ext/openssl/extconf.rb && \ | ||
37 | make; | ||
38 | touch $@ | ||
39 | |||
40 | OPENSSL_RUBY_TESTSRC = ${OPENSSL_RUBY_TESTS}/test/openssl/test_*.rb | ||
41 | ${_TEST_COOKIE}: ${_BUILD_COOKIE} ${_BUILDDIR_COOKIE} | ||
42 | cd ${BUILDDIR} && \ | ||
43 | env SKIP_EXPECTED_FAILURES=true ${RUBY} -I. \ | ||
44 | -I${OPENSSL_RUBY_TESTS}/test/openssl \ | ||
45 | -I${OPENSSL_RUBY_TESTS}/lib \ | ||
46 | -e 'Dir["${OPENSSL_RUBY_TESTSRC}"].each{|f| require f}' \ | ||
47 | -- --no-use-color --no-show-detail-immediately | ||
48 | touch $@ | ||
49 | |||
50 | build: ${_BUILD_COOKIE} | ||
51 | test: ${_TEST_COOKIE} | ||
52 | |||
53 | _MAKE = cd ${.CURDIR} && exec ${.MAKE} | ||
54 | |||
55 | rebuild: | ||
56 | rm -f ${_BUILD_COOKIE} | ||
57 | ${_MAKE} build | ||
58 | |||
59 | retest: | ||
60 | rm -f ${_TEST_COOKIE} | ||
61 | ${_MAKE} test | ||
62 | |||
63 | .for _t in test_client_ca | ||
64 | REGRESS_TARGETS += ${_t} | ||
65 | REGRESS_EXPECTED_FAILURES += ${_t} | ||
66 | ${_t}: ${_BUILD_COOKIE} | ||
67 | cd ${BUILDDIR} && \ | ||
68 | ${RUBY} -I. -I${OPENSSL_RUBY_TESTS}/test/openssl \ | ||
69 | -I${OPENSSL_RUBY_TESTS}/lib \ | ||
70 | ${OPENSSL_RUBY_TESTS}/test/openssl/test_ssl.rb \ | ||
71 | -n ${_t} | ||
72 | .endfor | ||
73 | |||
74 | CLEANFILES += ${_BUILD_COOKIE} ${_TEST_COOKIE} ${_BUILDDIR_COOKIE} | ||
75 | |||
76 | . if make(clean) || make(cleandir) | ||
77 | . if exists(${BUILDDIR}) | ||
78 | .BEGIN: | ||
79 | rm -r ${BUILDDIR} | ||
80 | . endif | ||
81 | . endif | ||
82 | |||
83 | .PHONY: build rebuild test retest | ||
84 | |||
85 | .endif | ||
86 | |||
87 | .include <bsd.regress.mk> | ||