From a79e90e7342954ae2287db505811ca3c1cd336d7 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 2 Aug 2025 06:16:34 +0000 Subject: Provide harness to run illumos's oclo tests from libc regress This depends on the illumos-os-tests port I just imported and can be linked to the build once guenther lands the close-on-fork diff. Adapted from an initial diff by Ricardo Branco --- src/regress/lib/libc/illumos/Makefile | 7 +++++++ src/regress/lib/libc/illumos/Makefile.inc | 9 +++++++++ src/regress/lib/libc/illumos/oclo/Makefile | 16 ++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 src/regress/lib/libc/illumos/Makefile create mode 100644 src/regress/lib/libc/illumos/Makefile.inc create mode 100644 src/regress/lib/libc/illumos/oclo/Makefile (limited to 'src') diff --git a/src/regress/lib/libc/illumos/Makefile b/src/regress/lib/libc/illumos/Makefile new file mode 100644 index 0000000000..cf2d22eb44 --- /dev/null +++ b/src/regress/lib/libc/illumos/Makefile @@ -0,0 +1,7 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2025/08/02 06:16:34 tb Exp $ + +SUBDIR += oclo + +install: + +.include diff --git a/src/regress/lib/libc/illumos/Makefile.inc b/src/regress/lib/libc/illumos/Makefile.inc new file mode 100644 index 0000000000..4296b6e690 --- /dev/null +++ b/src/regress/lib/libc/illumos/Makefile.inc @@ -0,0 +1,9 @@ +# $OpenBSD: Makefile.inc,v 1.1.1.1 2025/08/02 06:16:34 tb Exp $ + +ILLUMOS_OS_TESTDIR = /usr/local/share/illumos-os-tests + +.if !exists(${ILLUMOS_OS_TESTDIR}) +regress: + @echo package illumos-os-tests is required for this regress + @echo SKIPPED +.endif diff --git a/src/regress/lib/libc/illumos/oclo/Makefile b/src/regress/lib/libc/illumos/oclo/Makefile new file mode 100644 index 0000000000..c2c24202c3 --- /dev/null +++ b/src/regress/lib/libc/illumos/oclo/Makefile @@ -0,0 +1,16 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2025/08/02 06:16:34 tb Exp $ + +.if exists(/usr/local/share/illumos-os-tests) + +PROGS = oclo +PROGS += oclo_errors +PROGS += ocloexec_verify + +LDADD_ocloexec_verify = -lkvm + +WARNINGS = yes + +.PATH: /usr/local/share/illumos-os-tests/tests/oclo +.endif + +.include -- cgit v1.2.3-55-g6feb