diff options
Diffstat (limited to 'src/regress/lib/libssl/openssl-ruby')
-rw-r--r-- | src/regress/lib/libssl/openssl-ruby/Makefile | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/regress/lib/libssl/openssl-ruby/Makefile b/src/regress/lib/libssl/openssl-ruby/Makefile index af8083f662..19d2f2fc40 100644 --- a/src/regress/lib/libssl/openssl-ruby/Makefile +++ b/src/regress/lib/libssl/openssl-ruby/Makefile | |||
@@ -1,10 +1,10 @@ | |||
1 | # $OpenBSD: Makefile,v 1.14 2024/08/31 11:14:58 tb Exp $ | 1 | # $OpenBSD: Makefile,v 1.17 2025/06/27 03:32:08 tb Exp $ |
2 | 2 | ||
3 | OPENSSL_RUBY_TESTS = /usr/local/share/openssl-ruby-tests | 3 | OPENSSL_RUBY_TESTS = /usr/local/share/openssl-ruby-tests |
4 | .if exists(/usr/local/bin/ruby32) | 4 | .if exists(/usr/local/bin/ruby33) |
5 | RUBY_BINREV = 32 | ||
6 | .else | ||
7 | RUBY_BINREV = 33 | 5 | RUBY_BINREV = 33 |
6 | .else | ||
7 | RUBY_BINREV = 34 | ||
8 | .endif | 8 | .endif |
9 | RUBY = ruby${RUBY_BINREV} | 9 | RUBY = ruby${RUBY_BINREV} |
10 | 10 | ||
@@ -71,6 +71,21 @@ ${_t}: ${_BUILD_COOKIE} | |||
71 | -n ${_t} | 71 | -n ${_t} |
72 | .endfor | 72 | .endfor |
73 | 73 | ||
74 | # These tests can be a pain to run. To run a small set of individual | ||
75 | # ssl tests, set the test names separated by spaces in the environment | ||
76 | # variable RUBY_SSL_TEST_TARGETS - then you can type "make <test_name>" | ||
77 | # to run a single ruby ssl test. | ||
78 | .for _t in ${RUBY_SSL_TEST_TARGETS} | ||
79 | REGRESS_TARGETS += ${_t} | ||
80 | REGRESS_EXPECTED_FAILURES += ${_t} | ||
81 | ${_t}: ${_BUILD_COOKIE} | ||
82 | cd ${BUILDDIR} && \ | ||
83 | ${RUBY} -I. -I${OPENSSL_RUBY_TESTS}/test/openssl \ | ||
84 | -I${OPENSSL_RUBY_TESTS}/lib \ | ||
85 | ${OPENSSL_RUBY_TESTS}/test/openssl/test_ssl.rb \ | ||
86 | -n ${_t} | ||
87 | .endfor | ||
88 | |||
74 | CLEANFILES += ${_BUILD_COOKIE} ${_TEST_COOKIE} ${_BUILDDIR_COOKIE} | 89 | CLEANFILES += ${_BUILD_COOKIE} ${_TEST_COOKIE} ${_BUILDDIR_COOKIE} |
75 | 90 | ||
76 | . if make(clean) || make(cleandir) | 91 | . if make(clean) || make(cleandir) |