Skip to content

Commit 8cd1c8d

Browse files
committed
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
1 parent b3d8ca6 commit 8cd1c8d

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

regress/lib/libc/illumos/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# $OpenBSD: Makefile,v 1.1.1.1 2025/08/02 06:16:34 tb Exp $
2+
3+
SUBDIR += oclo
4+
5+
install:
6+
7+
.include <bsd.subdir.mk>

regress/lib/libc/illumos/Makefile.inc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# $OpenBSD: Makefile.inc,v 1.1.1.1 2025/08/02 06:16:34 tb Exp $
2+
3+
ILLUMOS_OS_TESTDIR = /usr/local/share/illumos-os-tests
4+
5+
.if !exists(${ILLUMOS_OS_TESTDIR})
6+
regress:
7+
@echo package illumos-os-tests is required for this regress
8+
@echo SKIPPED
9+
.endif
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# $OpenBSD: Makefile,v 1.1.1.1 2025/08/02 06:16:34 tb Exp $
2+
3+
.if exists(/usr/local/share/illumos-os-tests)
4+
5+
PROGS = oclo
6+
PROGS += oclo_errors
7+
PROGS += ocloexec_verify
8+
9+
LDADD_ocloexec_verify = -lkvm
10+
11+
WARNINGS = yes
12+
13+
.PATH: /usr/local/share/illumos-os-tests/tests/oclo
14+
.endif
15+
16+
.include <bsd.regress.mk>

0 commit comments

Comments
 (0)