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