diff options
| author | cvs2svn <admin@example.com> | 2025-08-02 06:16:35 +0000 |
|---|---|---|
| committer | cvs2svn <admin@example.com> | 2025-08-02 06:16:35 +0000 |
| commit | a397c95f8aea58533e72379d6e0de12683ecd0dc (patch) | |
| tree | 45ccaccd0ce2ea01650f0a9f5e9268a656e17e51 /src/regress/lib/libc/sys/Makefile | |
| parent | a79e90e7342954ae2287db505811ca3c1cd336d7 (diff) | |
| download | openbsd-tb_20250802.tar.gz openbsd-tb_20250802.tar.bz2 openbsd-tb_20250802.zip | |
This commit was manufactured by cvs2git to create tag 'tb_20250802'.tb_20250802
Diffstat (limited to 'src/regress/lib/libc/sys/Makefile')
| -rw-r--r-- | src/regress/lib/libc/sys/Makefile | 152 |
1 files changed, 0 insertions, 152 deletions
diff --git a/src/regress/lib/libc/sys/Makefile b/src/regress/lib/libc/sys/Makefile deleted file mode 100644 index 5ff237d4e7..0000000000 --- a/src/regress/lib/libc/sys/Makefile +++ /dev/null | |||
| @@ -1,152 +0,0 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.18 2023/10/31 08:00:33 claudio Exp $ | ||
| 2 | |||
| 3 | # Copyright (c) 2019 Moritz Buhl <openbsd@moritzbuhl.de> | ||
| 4 | # Copyright (c) 2019 Alexander Bluhm <bluhm@openbsd.org> | ||
| 5 | # | ||
| 6 | # Permission to use, copy, modify, and distribute this software for any | ||
| 7 | # purpose with or without fee is hereby granted, provided that the above | ||
| 8 | # copyright notice and this permission notice appear in all copies. | ||
| 9 | # | ||
| 10 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 11 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 12 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 13 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 14 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 15 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 16 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 17 | |||
| 18 | # Each test program in PROGS may define several numbered subtests. | ||
| 19 | # In a first step compile all programs and extract their parameters. | ||
| 20 | # For each PROG define new regression subtests based on the test number. | ||
| 21 | |||
| 22 | .if defined(NUMBERS) | ||
| 23 | REGRESS_TARGETS = ${NUMBERS:C/(.*)/run-${PROG}-\1 cleanup-${PROG}-\1/} | ||
| 24 | .else | ||
| 25 | REGRESS_TARGETS = ${PROGS:S/^/run-/} | ||
| 26 | .endif | ||
| 27 | |||
| 28 | PROGS = | ||
| 29 | PROGS += t_access | ||
| 30 | PROGS += t_bind | ||
| 31 | PROGS += t_chroot t_clock_gettime | ||
| 32 | PROGS += t_connect | ||
| 33 | PROGS += t_dup | ||
| 34 | PROGS += t_fork | ||
| 35 | PROGS += t_fsync | ||
| 36 | PROGS += t_getgroups t_getitimer t_getlogin t_getpid t_getrusage | ||
| 37 | PROGS += t_getsid t_getsockname t_gettimeofday | ||
| 38 | PROGS += t_kevent | ||
| 39 | PROGS += t_kill | ||
| 40 | PROGS += t_link t_listen | ||
| 41 | PROGS += t_minherit | ||
| 42 | PROGS += t_mkdir | ||
| 43 | PROGS += t_mkfifo | ||
| 44 | PROGS += t_mknod | ||
| 45 | PROGS += t_mlock | ||
| 46 | PROGS += t_mmap | ||
| 47 | PROGS += t_msgctl | ||
| 48 | PROGS += t_msgget | ||
| 49 | PROGS += t_msgrcv | ||
| 50 | PROGS += t_msgsnd | ||
| 51 | PROGS += t_msync | ||
| 52 | PROGS += t_pipe | ||
| 53 | PROGS += t_pipe2 | ||
| 54 | PROGS += t_poll | ||
| 55 | PROGS += t_ppoll | ||
| 56 | PROGS += t_ptrace | ||
| 57 | PROGS += t_recvmmsg | ||
| 58 | PROGS += t_revoke | ||
| 59 | PROGS += t_select | ||
| 60 | PROGS += t_sendmmsg | ||
| 61 | PROGS += t_sendrecv | ||
| 62 | PROGS += t_setrlimit | ||
| 63 | PROGS += t_setuid | ||
| 64 | PROGS += t_sigaction | ||
| 65 | PROGS += t_sigaltstack | ||
| 66 | PROGS += t_socketpair | ||
| 67 | PROGS += t_stat | ||
| 68 | #PROGS += t_syscall Deleted: test of gcc1.x syscall pad | ||
| 69 | PROGS += t_truncate | ||
| 70 | PROGS += t_umask t_unlink | ||
| 71 | PROGS += t_vfork | ||
| 72 | PROGS += t_waitid | ||
| 73 | PROGS += t_wait_noproc | ||
| 74 | PROGS += t_wait_noproc_wnohang | ||
| 75 | PROGS += t_write | ||
| 76 | |||
| 77 | # failing tests | ||
| 78 | REGRESS_EXPECTED_FAILURES = | ||
| 79 | REGRESS_EXPECTED_FAILURES += run-t_mlock-4 | ||
| 80 | REGRESS_EXPECTED_FAILURES += run-t_msgrcv-3 | ||
| 81 | |||
| 82 | . for t in run-t_fork-{3,4,5} | ||
| 83 | ${t}: | ||
| 84 | # Only works with a controlling tty | ||
| 85 | @echo DISABLED | ||
| 86 | . endfor | ||
| 87 | |||
| 88 | run-t_vfork-2: | ||
| 89 | # SIGSTOP with vfork is masked before exec(3)/exit(3) | ||
| 90 | # see NetBSD: kern_sig.c,v 1.345 | ||
| 91 | @echo DISABLED | ||
| 92 | |||
| 93 | . for p in ${PROGS} | ||
| 94 | SRCS_$p = $p.c atf-c.c | ||
| 95 | . endfor | ||
| 96 | |||
| 97 | CFLAGS += -std=gnu99 | ||
| 98 | |||
| 99 | LDADD_t_getpid = -lpthread | ||
| 100 | |||
| 101 | run-t_truncate: setup-t_truncate | ||
| 102 | setup-t_truncate: | ||
| 103 | ${SUDO} touch truncate_test.root_owned | ||
| 104 | ${SUDO} chown root:wheel truncate_test.root_owned | ||
| 105 | |||
| 106 | run-t_chroot: clean-dir | ||
| 107 | run-t_ptrace: clean-dir | ||
| 108 | clean-dir: | ||
| 109 | ${SUDO} rm -rf dir | ||
| 110 | |||
| 111 | CLEANFILES = access dummy mmap truncate_test.root_owned | ||
| 112 | |||
| 113 | .for p in ${PROGS} | ||
| 114 | run-$p: $p | ||
| 115 | ulimit -c unlimited && \ | ||
| 116 | ntests="`./$p -n`" && \ | ||
| 117 | echo "1..$$ntests" && \ | ||
| 118 | tnumbers="`jot -ns' ' - 1 $$ntests`" && \ | ||
| 119 | ${.MAKE} -C ${.CURDIR} PROG=$p NUMBERS="$$tnumbers" regress | ||
| 120 | .endfor | ||
| 121 | |||
| 122 | .if defined(NUMBERS) | ||
| 123 | CUR_USER != id -g | ||
| 124 | |||
| 125 | . for n in ${NUMBERS} | ||
| 126 | DESCR_$n != eval `./${PROG} -i $n` && echo $$DESCR | ||
| 127 | REQ_USER_$n != eval `./${PROG} -i $n` && echo $$REQ_USER | ||
| 128 | |||
| 129 | . if ${REQ_USER_$n} == "root" | ||
| 130 | REGRESS_ROOT_TARGETS += run-${PROG}-$n | ||
| 131 | . endif | ||
| 132 | |||
| 133 | run-${PROG}-$n: | ||
| 134 | @echo "$n ${DESCR_$n}" | ||
| 135 | . if ${REQ_USER_$n} == "root" | ||
| 136 | ${SUDO} ./${PROG} -r $n | ||
| 137 | . elif ${REQ_USER_$n} == "unprivileged" && ${CUR_USER} == 0 | ||
| 138 | ${SUDO} su ${BUILDUSER} -c exec ./${PROG} -r $n | ||
| 139 | . elif ${REQ_USER_$n} == "unprivileged" || ${REQ_USER_$n} == "" | ||
| 140 | ./${PROG} -r $n | ||
| 141 | . else | ||
| 142 | # bad REQ_USER: ${REQ_USER_$n} | ||
| 143 | false | ||
| 144 | . endif | ||
| 145 | |||
| 146 | cleanup-${PROG}-$n: | ||
| 147 | -./${PROG} -c $n | ||
| 148 | |||
| 149 | . endfor | ||
| 150 | .endif | ||
| 151 | |||
| 152 | .include <bsd.regress.mk> | ||
