diff options
author | beck <> | 2025-05-23 03:46:08 +0000 |
---|---|---|
committer | beck <> | 2025-05-23 03:46:08 +0000 |
commit | 1719a49e764cb90d4d1016f93e9c95d72de11134 (patch) | |
tree | 0f7210c9a861f8f6fadf9aab9f1f6cbbf91050a8 | |
parent | db3d36558deff54e8a47e96933acd4543d7eb05f (diff) | |
download | openbsd-1719a49e764cb90d4d1016f93e9c95d72de11134.tar.gz openbsd-1719a49e764cb90d4d1016f93e9c95d72de11134.tar.bz2 openbsd-1719a49e764cb90d4d1016f93e9c95d72de11134.zip |
Add the ability to run individual ruby ssl test for figuring out
what is going on when these break
ok tb@
-rw-r--r-- | src/regress/lib/libssl/openssl-ruby/Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/regress/lib/libssl/openssl-ruby/Makefile b/src/regress/lib/libssl/openssl-ruby/Makefile index af8083f662..0a773b8668 100644 --- a/src/regress/lib/libssl/openssl-ruby/Makefile +++ b/src/regress/lib/libssl/openssl-ruby/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.14 2024/08/31 11:14:58 tb Exp $ | 1 | # $OpenBSD: Makefile,v 1.15 2025/05/23 03:46:08 beck 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/ruby32) |
@@ -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) |