Index: head/bin/pwait/Makefile =================================================================== --- head/bin/pwait/Makefile (revision 314885) +++ head/bin/pwait/Makefile (revision 314886) @@ -1,6 +1,10 @@ # $FreeBSD$ +.include + PACKAGE=runtime PROG= pwait + +SUBDIR.${MK_TESTS}+= tests .include Index: head/bin/pwait/pwait.1 =================================================================== --- head/bin/pwait/pwait.1 (revision 314885) +++ head/bin/pwait/pwait.1 (revision 314886) @@ -1,77 +1,101 @@ .\" .\" Copyright (c) 2004-2009, Jilles Tjoelker .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with .\" or without modification, are permitted provided that the .\" following conditions are met: .\" .\" 1. Redistributions of source code must retain the above .\" copyright notice, this list of conditions and the .\" following disclaimer. .\" 2. Redistributions in binary form must reproduce the .\" above copyright notice, this list of conditions and .\" the following disclaimer in the documentation and/or .\" other materials provided with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND .\" CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED .\" WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A .\" PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE .\" COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, .\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF .\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER .\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING .\" NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE .\" USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY .\" OF SUCH DAMAGE. .\" .\" $FreeBSD$ .\" -.Dd November 1, 2009 +.Dd March 7, 2017 .Dt PWAIT 1 .Os .Sh NAME .Nm pwait .Nd wait for processes to terminate .Sh SYNOPSIS .Nm +.Op Fl t Ar duration .Op Fl v .Ar pid \&... .Sh DESCRIPTION The .Nm utility will wait until each of the given processes has terminated. .Pp The following option is available: .Bl -tag -width indent +.It Fl t Ar duration +If any process is still running after +.Ar duration , +.Nm +will exit. +The +.Ar duration +value can be integer or decimal numbers. +Values without unit symbols are interpreted as seconds. +.Pp +Supported unit symbols are: +.Bl -tag -width indent -compact +.It s +seconds +.It m +minutes +.It h +hours +.El .It Fl v Print the exit status when each process terminates. .El -.Sh DIAGNOSTICS +.Sh EXIT STATUS The .Nm -utility returns 0 on success, and >0 if an error occurs. +utility exits 0 on success, and >0 if an error occurs. +.Pp +If the +.Fl t +flag is specified and a timeout occurs, the exit status will be 124. .Pp Invalid pids elicit a warning message but are otherwise ignored. .Sh SEE ALSO .Xr kill 1 , .Xr pkill 1 , .Xr ps 1 , .Xr wait 1 , .Xr kqueue 2 .Sh NOTES .Nm is not a substitute for the .Xr wait 1 builtin as it will not clean up any zombies or state in the parent process. .Sh HISTORY A .Nm command first appeared in SunOS 5.8. Index: head/bin/pwait/pwait.c =================================================================== --- head/bin/pwait/pwait.c (revision 314885) +++ head/bin/pwait/pwait.c (revision 314886) @@ -1,145 +1,195 @@ /*- * Copyright (c) 2004-2009, Jilles Tjoelker * All rights reserved. * * Redistribution and use in source and binary forms, with * or without modification, are permitted provided that the * following conditions are met: * * 1. Redistributions of source code must retain the above * copyright notice, this list of conditions and the * following disclaimer. * 2. Redistributions in binary form must reproduce the * above copyright notice, this list of conditions and * the following disclaimer in the documentation and/or * other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY * OF SUCH DAMAGE. */ #include __FBSDID("$FreeBSD$"); #include #include #include #include #include #include #include #include #include #include #include #include #include static void usage(void) { - fprintf(stderr, "usage: pwait [-v] pid ...\n"); + fprintf(stderr, "usage: pwait [-t timeout] [-v] pid ...\n"); exit(EX_USAGE); } /* * pwait - wait for processes to terminate */ int main(int argc, char *argv[]) { + struct itimerval itv; int kq; struct kevent *e; - int verbose = 0; + int tflag, verbose; int opt, nleft, n, i, duplicate, status; long pid; char *s, *end; + double timeout; - while ((opt = getopt(argc, argv, "v")) != -1) { + tflag = verbose = 0; + memset(&itv, 0, sizeof(itv)); + while ((opt = getopt(argc, argv, "t:v")) != -1) { switch (opt) { + case 't': + tflag = 1; + errno = 0; + timeout = strtod(optarg, &end); + if (end == optarg || errno == ERANGE || + timeout < 0) + errx(EX_DATAERR, "timeout value"); + switch(*end) { + case 0: + case 's': + break; + case 'h': + timeout *= 60; + /* FALLTHROUGH */ + case 'm': + timeout *= 60; + break; + default: + errx(EX_DATAERR, "timeout unit"); + } + if (timeout > 100000000L) + errx(EX_DATAERR, "timeout value"); + itv.it_value.tv_sec = (time_t)timeout; + timeout -= (time_t)timeout; + itv.it_value.tv_usec = + (suseconds_t)(timeout * 1000000UL); + break; case 'v': verbose = 1; break; default: usage(); /* NOTREACHED */ } } argc -= optind; argv += optind; if (argc == 0) usage(); kq = kqueue(); if (kq == -1) err(1, "kqueue"); - e = malloc(argc * sizeof(struct kevent)); + e = malloc((argc + tflag) * sizeof(struct kevent)); if (e == NULL) err(1, "malloc"); nleft = 0; for (n = 0; n < argc; n++) { s = argv[n]; if (!strncmp(s, "/proc/", 6)) /* Undocumented Solaris compat */ s += 6; errno = 0; pid = strtol(s, &end, 10); if (pid < 0 || *end != '\0' || errno != 0) { warnx("%s: bad process id", s); continue; } duplicate = 0; for (i = 0; i < nleft; i++) if (e[i].ident == (uintptr_t)pid) duplicate = 1; if (!duplicate) { EV_SET(e + nleft, pid, EVFILT_PROC, EV_ADD, NOTE_EXIT, 0, NULL); if (kevent(kq, e + nleft, 1, NULL, 0, NULL) == -1) warn("%ld", pid); else nleft++; } } + if (tflag) { + /* + * Explicitly detect SIGALRM so that an exit status of 124 + * can be returned rather than 142. + */ + EV_SET(e + nleft, SIGALRM, EVFILT_SIGNAL, EV_ADD, 0, 0, NULL); + if (kevent(kq, e + nleft, 1, NULL, 0, NULL) == -1) + err(EX_OSERR, "kevent"); + /* Ignore SIGALRM to not interrupt kevent(2). */ + signal(SIGALRM, SIG_IGN); + if (setitimer(ITIMER_REAL, &itv, NULL) == -1) + err(EX_OSERR, "setitimer"); + } while (nleft > 0) { - n = kevent(kq, NULL, 0, e, nleft, NULL); + n = kevent(kq, NULL, 0, e, nleft + tflag, NULL); if (n == -1) err(1, "kevent"); - if (verbose) - for (i = 0; i < n; i++) { + for (i = 0; i < n; i++) { + if (e[i].filter == EVFILT_SIGNAL) { + if (verbose) + printf("timeout\n"); + return (124); + } + if (verbose) { status = e[i].data; if (WIFEXITED(status)) printf("%ld: exited with status %d.\n", (long)e[i].ident, WEXITSTATUS(status)); else if (WIFSIGNALED(status)) printf("%ld: killed by signal %d.\n", (long)e[i].ident, WTERMSIG(status)); else printf("%ld: terminated.\n", (long)e[i].ident); } - nleft -= n; + --nleft; + } } exit(EX_OK); } Index: head/bin/pwait/tests/Makefile =================================================================== --- head/bin/pwait/tests/Makefile (nonexistent) +++ head/bin/pwait/tests/Makefile (revision 314886) @@ -0,0 +1,5 @@ +# $FreeBSD$ + +ATF_TESTS_SH= pwait + +.include Property changes on: head/bin/pwait/tests/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/bin/pwait/tests/Makefile.depend =================================================================== --- head/bin/pwait/tests/Makefile.depend (nonexistent) +++ head/bin/pwait/tests/Makefile.depend (revision 314886) @@ -0,0 +1,11 @@ +# $FreeBSD$ +# Autogenerated - do NOT edit! + +DIRDEPS = \ + + +.include + +.if ${DEP_RELDIR} == ${_DEP_RELDIR} +# local dependencies - needed for -jN in clean tree +.endif Property changes on: head/bin/pwait/tests/Makefile.depend ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/bin/pwait/tests/pwait.sh =================================================================== --- head/bin/pwait/tests/pwait.sh (nonexistent) +++ head/bin/pwait/tests/pwait.sh (revision 314886) @@ -0,0 +1,242 @@ +# $FreeBSD$ + +atf_test_case basic +basic_head() +{ + atf_set "descr" "Basic tests on pwait(1) utility" +} + +basic_body() +{ + sleep 1 & + p1=$! + + sleep 5 & + p5=$! + + sleep 10 & + p10=$! + + atf_check \ + -o empty \ + -e empty \ + -s exit:0 \ + -x timeout --preserve-status 15 pwait $p1 $p5 $p10 + + atf_check \ + -o empty \ + -e inline:"kill: $p1: No such process\n" \ + -s exit:1 \ + -x kill -0 $p1 + + atf_check \ + -o empty \ + -e inline:"kill: $p5: No such process\n" \ + -s exit:1 \ + -x kill -0 $p5 + + atf_check \ + -o empty \ + -e inline:"kill: $p10: No such process\n" \ + -s exit:1 \ + -x kill -0 $p10 + +} + +basic_cleanup() +{ + kill $p1 $p5 $p10 >/dev/null 2>&1 + wait $p1 $p5 $p10 >/dev/null 2>&1 +} + +atf_test_case time_unit +time_unit_head() +{ + atf_set "descr" "Test parsing the timeout unit and value" +} + +time_unit_body() +{ + init=1 + + atf_check \ + -o empty \ + -e inline:"pwait: timeout unit\n" \ + -s exit:65 \ + -x timeout --preserve-status 2 pwait -t 1d $init + + atf_check \ + -o empty \ + -e inline:"pwait: timeout unit\n" \ + -s exit:65 \ + -x timeout --preserve-status 2 pwait -t 1d $init + + atf_check \ + -o empty \ + -e inline:"pwait: timeout value\n" \ + -s exit:65 \ + -x timeout --preserve-status 2 pwait -t -1 $init + + atf_check \ + -o empty \ + -e inline:"pwait: timeout value\n" \ + -s exit:65 \ + -x timeout --preserve-status 2 pwait -t 100000001 $init + + # These long duration cases are expected to timeout from the + # timeout utility rather than pwait -t. + atf_check \ + -o empty \ + -e empty \ + -s exit:143 \ + -x timeout --preserve-status 2 pwait -t 100000000 $init + + atf_check \ + -o empty \ + -e empty \ + -s exit:143 \ + -x timeout --preserve-status 2 pwait -t 1h $init + + atf_check \ + -o empty \ + -e empty \ + -s exit:143 \ + -x timeout --preserve-status 2 pwait -t 1.5h $init + + atf_check \ + -o empty \ + -e empty \ + -s exit:143 \ + -x timeout --preserve-status 2 pwait -t 1m $init + + atf_check \ + -o empty \ + -e empty \ + -s exit:143 \ + -x timeout --preserve-status 2 pwait -t 1.5m $init + + atf_check \ + -o empty \ + -e empty \ + -s exit:143 \ + -x timeout --preserve-status 2 pwait -t 0 $init + + # The rest are fast enough that pwait -t is expected to trigger + # the timeout. + atf_check \ + -o empty \ + -e empty \ + -s exit:124 \ + -x timeout --preserve-status 2 pwait -t 1s $init + + atf_check \ + -o empty \ + -e empty \ + -s exit:124 \ + -x timeout --preserve-status 2 pwait -t 1.5s $init + + atf_check \ + -o empty \ + -e empty \ + -s exit:124 \ + -x timeout --preserve-status 2 pwait -t 1 $init + + atf_check \ + -o empty \ + -e empty \ + -s exit:124 \ + -x timeout --preserve-status 2 pwait -t 1.5 $init + + atf_check \ + -o empty \ + -e empty \ + -s exit:124 \ + -x timeout --preserve-status 2 pwait -t 0.5 $init +} + +atf_test_case timeout_trigger_timeout +timeout_trigger_timeout_head() +{ + atf_set "descr" "Test that exceeding the timeout is detected" +} + +timeout_trigger_timeout_body() +{ + sleep 10 & + p10=$! + + atf_check \ + -o empty \ + -e empty \ + -s exit:124 \ + -x timeout --preserve-status 6.5 pwait -t 5 $p10 +} + +timeout_trigger_timeout_cleanup() +{ + kill $p10 >/dev/null 2>&1 + wait $p10 >/dev/null 2>&1 +} + +atf_test_case timeout_no_timeout +timeout_no_timeout_head() +{ + atf_set "descr" "Test that not exceeding the timeout continues to wait" +} + +timeout_no_timeout_body() +{ + sleep 10 & + p10=$! + + atf_check \ + -o empty \ + -e empty \ + -s exit:0 \ + -x timeout --preserve-status 11.5 pwait -t 12 $p10 +} + +timeout_no_timeout_cleanup() +{ + kill $p10 >/dev/null 2>&1 + wait $p10 >/dev/null 2>&1 +} + +atf_test_case timeout_many +timeout_many_head() +{ + atf_set "descr" "Test timeout on many processes" +} + +timeout_many_body() +{ + sleep 1 & + p1=$! + + sleep 5 & + p5=$! + + sleep 10 & + p10=$! + + atf_check \ + -o empty \ + -e empty \ + -s exit:124 \ + -x timeout --preserve-status 7.5 pwait -t 6 $p1 $p5 $p10 +} + +timeout_many_cleanup() +{ + kill $p1 $p5 $p10 >/dev/null 2>&1 + wait $p1 $p5 $p10 >/dev/null 2>&1 +} + +atf_init_test_cases() +{ + atf_add_test_case basic + atf_add_test_case time_unit + atf_add_test_case timeout_trigger_timeout + atf_add_test_case timeout_no_timeout + atf_add_test_case timeout_many +} Property changes on: head/bin/pwait/tests/pwait.sh ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/etc/mtree/BSD.tests.dist =================================================================== --- head/etc/mtree/BSD.tests.dist (revision 314885) +++ head/etc/mtree/BSD.tests.dist (revision 314886) @@ -1,704 +1,706 @@ # $FreeBSD$ # # Please see the file src/etc/mtree/README before making changes to this file. # /set type=dir uname=root gname=wheel mode=0755 . bin cat .. date .. dd .. expr .. ls .. mv .. pax .. pkill .. sh builtins .. errors .. execution .. expansion .. parameters .. parser .. set-e .. .. sleep .. test .. .. cddl lib .. sbin .. usr.bin .. usr.sbin dtrace common aggs .. arithmetic .. arrays .. assocs .. begin .. bitfields .. buffering .. builtinvar .. cg .. clauses .. cpc .. decls .. drops .. dtraceUtil .. end .. enum .. error .. exit .. fbtprovider .. funcs .. grammar .. include .. inline .. io .. ip .. java_api .. json .. lexer .. llquantize .. mdb .. mib .. misc .. multiaggs .. offsetof .. operators .. pid .. plockstat .. pointers .. pragma .. predicates .. preprocessor .. print .. printa .. printf .. privs .. probes .. proc .. profile-n .. providers .. raise .. rates .. safety .. scalars .. sched .. scripting .. sdt .. sizeof .. speculation .. stability .. stack .. stackdepth .. stop .. strlen .. strtoll .. struct .. sugar .. syscall .. sysevent .. tick-n .. trace .. tracemem .. translators .. typedef .. types .. uctf .. union .. usdt .. ustack .. vars .. version .. .. .. zfsd .. .. .. etc rc.d .. .. games .. gnu lib .. usr.bin diff .. .. .. lib atf libatf-c detail .. .. libatf-c++ detail .. .. test-programs .. .. libarchive .. libc c063 .. db .. gen execve .. posix_spawn .. .. hash data .. .. iconv .. inet .. locale .. net getaddrinfo data .. .. .. nss .. regex data .. .. resolv .. rpc .. ssp .. setjmp .. stdio .. stdlib .. string .. sys .. time .. tls dso .. .. termios .. ttyio .. .. libcasper services cap_dns .. cap_grp .. cap_pwd .. cap_sysctl .. .. .. libcrypt .. libdevdctl .. libmp .. libnv .. libproc .. librt .. libthr dlopen .. .. libutil .. libxo .. msun .. .. libexec atf atf-check .. atf-sh .. .. rtld-elf .. .. sbin dhclient .. devd .. growfs .. ifconfig .. mdconfig .. .. secure lib .. libexec .. usr.bin .. usr.sbin .. .. share examples tests atf .. plain .. .. .. .. sys acl .. aio .. fifo .. file .. fs tmpfs .. .. geom class concat .. eli .. gate .. gpt .. mirror .. nop .. raid3 .. shsec .. stripe .. uzip etalon .. .. .. eli pbkdf2 .. .. .. kern acct .. execve .. pipe .. .. kqueue libkqueue .. .. mac bsdextended .. portacl .. .. mqueue .. netinet .. opencrypto .. pjdfstest chflags .. chmod .. chown .. ftruncate .. granular .. link .. mkdir .. mkfifo .. mknod .. open .. rename .. rmdir .. symlink .. truncate .. unlink .. .. posixshm .. sys .. vfs .. vm .. .. usr.bin apply .. basename .. bmake archives fmt_44bsd .. fmt_44bsd_mod .. fmt_oldbsd .. .. basic t0 .. t1 .. t2 .. t3 .. .. execution ellipsis .. empty .. joberr .. plus .. .. shell builtin .. meta .. path .. path_select .. replace .. select .. .. suffixes basic .. src_wild1 .. src_wild2 .. .. syntax directive-t0 .. enl .. funny-targets .. semi .. .. sysmk t0 2 1 .. .. mk .. .. t1 2 1 .. .. mk .. .. t2 2 1 .. .. mk .. .. .. variables modifier_M .. modifier_t .. opt_V .. t0 .. .. .. bsdcat .. calendar .. cmp .. cpio .. col .. comm .. cut .. dirname .. file2c .. grep .. gzip .. ident .. indent .. join .. jot .. lastcomm .. limits .. m4 .. mkimg .. ncal .. opensm .. printf .. + pwait + .. sdiff .. sed regress.multitest.out .. .. soelim .. tail .. tar .. timeout .. tr .. truncate .. units .. uudecode .. uuencode .. uniq .. xargs .. xinstall .. xo .. yacc yacc .. .. .. usr.sbin chown .. etcupdate .. extattr .. fstyp .. makefs .. newsyslog .. nmtree .. pw .. rpcbind .. sa .. .. .. # vim: set expandtab ts=4 sw=4: Index: head/targets/pseudo/tests/Makefile.depend =================================================================== --- head/targets/pseudo/tests/Makefile.depend (revision 314885) +++ head/targets/pseudo/tests/Makefile.depend (revision 314886) @@ -1,345 +1,346 @@ # $FreeBSD$ # This file is not autogenerated - take care! .include # find . -name Makefile -exec grep -l '^\.include.*\.test.mk' {} + | grep -v '^\./contrib' | sed -e 's,/Makefile,,' -e 's,^\./,,' -e 's,^, ,' -e 's,$, \\,' | sort DIRDEPS= \ bin/cat/tests \ bin/date/tests \ bin/dd/tests \ bin/expr/tests \ bin/ls/tests \ bin/mv/tests \ bin/pax/tests \ bin/pkill/tests \ bin/sh/tests \ bin/sh/tests/builtins \ bin/sh/tests/errors \ bin/sh/tests/execution \ bin/sh/tests/expansion \ bin/sh/tests/parameters \ bin/sh/tests/parser \ bin/sh/tests/set-e \ bin/sleep/tests \ bin/test/tests \ bin/tests \ cddl/lib/tests \ cddl/sbin/tests \ cddl/tests \ cddl/usr.bin/tests \ cddl/usr.sbin/dtrace/tests \ cddl/usr.sbin/dtrace/tests/common \ cddl/usr.sbin/dtrace/tests/common/aggs \ cddl/usr.sbin/dtrace/tests/common/arithmetic \ cddl/usr.sbin/dtrace/tests/common/arrays \ cddl/usr.sbin/dtrace/tests/common/assocs \ cddl/usr.sbin/dtrace/tests/common/begin \ cddl/usr.sbin/dtrace/tests/common/bitfields \ cddl/usr.sbin/dtrace/tests/common/buffering \ cddl/usr.sbin/dtrace/tests/common/builtinvar \ cddl/usr.sbin/dtrace/tests/common/cg \ cddl/usr.sbin/dtrace/tests/common/clauses \ cddl/usr.sbin/dtrace/tests/common/cpc \ cddl/usr.sbin/dtrace/tests/common/decls \ cddl/usr.sbin/dtrace/tests/common/docsExamples \ cddl/usr.sbin/dtrace/tests/common/drops \ cddl/usr.sbin/dtrace/tests/common/dtraceUtil \ cddl/usr.sbin/dtrace/tests/common/end \ cddl/usr.sbin/dtrace/tests/common/enum \ cddl/usr.sbin/dtrace/tests/common/error \ cddl/usr.sbin/dtrace/tests/common/exit \ cddl/usr.sbin/dtrace/tests/common/fbtprovider \ cddl/usr.sbin/dtrace/tests/common/funcs \ cddl/usr.sbin/dtrace/tests/common/grammar \ cddl/usr.sbin/dtrace/tests/common/include \ cddl/usr.sbin/dtrace/tests/common/inline \ cddl/usr.sbin/dtrace/tests/common/io \ cddl/usr.sbin/dtrace/tests/common/ip \ cddl/usr.sbin/dtrace/tests/common/java_api \ cddl/usr.sbin/dtrace/tests/common/json \ cddl/usr.sbin/dtrace/tests/common/lexer \ cddl/usr.sbin/dtrace/tests/common/llquantize \ cddl/usr.sbin/dtrace/tests/common/mdb \ cddl/usr.sbin/dtrace/tests/common/mib \ cddl/usr.sbin/dtrace/tests/common/misc \ cddl/usr.sbin/dtrace/tests/common/multiaggs \ cddl/usr.sbin/dtrace/tests/common/nfs \ cddl/usr.sbin/dtrace/tests/common/offsetof \ cddl/usr.sbin/dtrace/tests/common/operators \ cddl/usr.sbin/dtrace/tests/common/pid \ cddl/usr.sbin/dtrace/tests/common/plockstat \ cddl/usr.sbin/dtrace/tests/common/pointers \ cddl/usr.sbin/dtrace/tests/common/pragma \ cddl/usr.sbin/dtrace/tests/common/predicates \ cddl/usr.sbin/dtrace/tests/common/preprocessor \ cddl/usr.sbin/dtrace/tests/common/print \ cddl/usr.sbin/dtrace/tests/common/printa \ cddl/usr.sbin/dtrace/tests/common/printf \ cddl/usr.sbin/dtrace/tests/common/privs \ cddl/usr.sbin/dtrace/tests/common/probes \ cddl/usr.sbin/dtrace/tests/common/proc \ cddl/usr.sbin/dtrace/tests/common/profile-n \ cddl/usr.sbin/dtrace/tests/common/providers \ cddl/usr.sbin/dtrace/tests/common/raise \ cddl/usr.sbin/dtrace/tests/common/rates \ cddl/usr.sbin/dtrace/tests/common/safety \ cddl/usr.sbin/dtrace/tests/common/scalars \ cddl/usr.sbin/dtrace/tests/common/sched \ cddl/usr.sbin/dtrace/tests/common/scripting \ cddl/usr.sbin/dtrace/tests/common/sdt \ cddl/usr.sbin/dtrace/tests/common/sizeof \ cddl/usr.sbin/dtrace/tests/common/speculation \ cddl/usr.sbin/dtrace/tests/common/stability \ cddl/usr.sbin/dtrace/tests/common/stack \ cddl/usr.sbin/dtrace/tests/common/stackdepth \ cddl/usr.sbin/dtrace/tests/common/stop \ cddl/usr.sbin/dtrace/tests/common/strlen \ cddl/usr.sbin/dtrace/tests/common/strtoll \ cddl/usr.sbin/dtrace/tests/common/struct \ cddl/usr.sbin/dtrace/tests/common/syscall \ cddl/usr.sbin/dtrace/tests/common/sysevent \ cddl/usr.sbin/dtrace/tests/common/tick-n \ cddl/usr.sbin/dtrace/tests/common/trace \ cddl/usr.sbin/dtrace/tests/common/tracemem \ cddl/usr.sbin/dtrace/tests/common/translators \ cddl/usr.sbin/dtrace/tests/common/typedef \ cddl/usr.sbin/dtrace/tests/common/types \ cddl/usr.sbin/dtrace/tests/common/uctf \ cddl/usr.sbin/dtrace/tests/common/union \ cddl/usr.sbin/dtrace/tests/common/usdt \ cddl/usr.sbin/dtrace/tests/common/ustack \ cddl/usr.sbin/dtrace/tests/common/vars \ cddl/usr.sbin/dtrace/tests/common/version \ cddl/usr.sbin/tests \ gnu/lib/tests \ gnu/tests \ gnu/usr.bin/diff/tests \ gnu/usr.bin/tests \ lib/atf/libatf-c++/tests \ lib/atf/libatf-c++/tests/detail \ lib/atf/libatf-c/tests \ lib/atf/libatf-c/tests/detail \ lib/atf/tests \ lib/atf/tests/test-programs \ lib/libarchive/tests \ lib/libc/tests \ lib/libc/tests/c063 \ lib/libc/tests/db \ lib/libc/tests/gen \ lib/libc/tests/gen/execve \ lib/libc/tests/gen/posix_spawn \ lib/libc/tests/hash \ lib/libc/tests/inet \ lib/libc/tests/locale \ lib/libc/tests/net \ lib/libc/tests/net/getaddrinfo \ lib/libc/tests/nss \ lib/libc/tests/regex \ lib/libc/tests/resolv \ lib/libc/tests/rpc \ lib/libc/tests/setjmp \ lib/libc/tests/ssp \ lib/libc/tests/stdio \ lib/libc/tests/stdlib \ lib/libc/tests/string \ lib/libc/tests/sys \ lib/libc/tests/termios \ lib/libc/tests/time \ lib/libc/tests/tls \ lib/libc/tests/ttyio \ lib/libcrypt/tests \ lib/libmp/tests \ lib/libnv/tests \ lib/libpam/libpam/tests \ lib/libproc/tests \ lib/librt/tests \ lib/libthr/tests \ lib/libthr/tests/dlopen \ lib/libthr/tests/dlopen/dso \ lib/libutil/tests \ lib/libxo/tests \ lib/msun/tests \ lib/tests \ libexec/atf/atf-check/tests \ libexec/atf/atf-sh/tests \ libexec/atf/tests \ libexec/rtld-elf/tests \ libexec/rtld-elf/tests/libpythagoras \ libexec/rtld-elf/tests/target \ libexec/tests \ sbin/devd/tests \ sbin/dhclient/tests \ sbin/growfs/tests \ sbin/ifconfig/tests \ sbin/mdconfig/tests \ sbin/tests \ secure/lib/tests \ secure/libexec/tests \ secure/tests \ secure/usr.bin/tests \ secure/usr.sbin/tests \ share/examples/tests \ share/examples/tests/tests \ share/examples/tests/tests/atf \ share/examples/tests/tests/plain \ share/tests \ tests \ tests/etc \ tests/etc/rc.d \ tests/sys \ tests/sys/acl \ tests/sys/aio \ tests/sys/fifo \ tests/sys/file \ tests/sys/geom \ tests/sys/geom/class \ tests/sys/geom/class/concat \ tests/sys/geom/class/eli \ tests/sys/geom/class/gate \ tests/sys/geom/class/mirror \ tests/sys/geom/class/nop \ tests/sys/geom/class/raid3 \ tests/sys/geom/class/shsec \ tests/sys/geom/class/stripe \ tests/sys/geom/class/uzip \ tests/sys/kern \ tests/sys/kern/acct \ tests/sys/kern/execve \ tests/sys/kern/pipe \ tests/sys/kqueue \ tests/sys/mac \ tests/sys/mac/bsdextended \ tests/sys/mac/portacl \ tests/sys/mqueue \ tests/sys/netinet \ tests/sys/opencrypto \ tests/sys/pjdfstest/pjdfstest \ tests/sys/pjdfstest/tests \ tests/sys/pjdfstest/tests/chflags \ tests/sys/pjdfstest/tests/chmod \ tests/sys/pjdfstest/tests/chown \ tests/sys/pjdfstest/tests/ftruncate \ tests/sys/pjdfstest/tests/granular \ tests/sys/pjdfstest/tests/link \ tests/sys/pjdfstest/tests/mkdir \ tests/sys/pjdfstest/tests/mkfifo \ tests/sys/pjdfstest/tests/mknod \ tests/sys/pjdfstest/tests/open \ tests/sys/pjdfstest/tests/rename \ tests/sys/pjdfstest/tests/rmdir \ tests/sys/pjdfstest/tests/symlink \ tests/sys/pjdfstest/tests/truncate \ tests/sys/pjdfstest/tests/unlink \ tests/sys/posixshm \ tests/sys/sys \ tests/sys/vfs \ tests/sys/vm \ usr.bin/apply/tests \ usr.bin/basename/tests \ usr.bin/bmake/tests \ usr.bin/bmake/tests/archives \ usr.bin/bmake/tests/archives/fmt_44bsd \ usr.bin/bmake/tests/archives/fmt_44bsd_mod \ usr.bin/bmake/tests/archives/fmt_oldbsd \ usr.bin/bmake/tests/basic \ usr.bin/bmake/tests/basic/t0 \ usr.bin/bmake/tests/basic/t1 \ usr.bin/bmake/tests/basic/t2 \ usr.bin/bmake/tests/basic/t3 \ usr.bin/bmake/tests/execution \ usr.bin/bmake/tests/execution/ellipsis \ usr.bin/bmake/tests/execution/empty \ usr.bin/bmake/tests/execution/joberr \ usr.bin/bmake/tests/execution/plus \ usr.bin/bmake/tests/shell \ usr.bin/bmake/tests/shell/builtin \ usr.bin/bmake/tests/shell/meta \ usr.bin/bmake/tests/shell/path \ usr.bin/bmake/tests/shell/path_select \ usr.bin/bmake/tests/shell/replace \ usr.bin/bmake/tests/shell/select \ usr.bin/bmake/tests/suffixes \ usr.bin/bmake/tests/suffixes/basic \ usr.bin/bmake/tests/suffixes/src_wild1 \ usr.bin/bmake/tests/suffixes/src_wild2 \ usr.bin/bmake/tests/syntax \ usr.bin/bmake/tests/syntax/directive-t0 \ usr.bin/bmake/tests/syntax/enl \ usr.bin/bmake/tests/syntax/funny-targets \ usr.bin/bmake/tests/syntax/semi \ usr.bin/bmake/tests/sysmk \ usr.bin/bmake/tests/sysmk/t0 \ usr.bin/bmake/tests/sysmk/t0/2 \ usr.bin/bmake/tests/sysmk/t0/2/1 \ usr.bin/bmake/tests/sysmk/t0/mk \ usr.bin/bmake/tests/sysmk/t1 \ usr.bin/bmake/tests/sysmk/t1/2 \ usr.bin/bmake/tests/sysmk/t1/2/1 \ usr.bin/bmake/tests/sysmk/t1/mk \ usr.bin/bmake/tests/sysmk/t2 \ usr.bin/bmake/tests/sysmk/t2/2 \ usr.bin/bmake/tests/sysmk/t2/2/1 \ usr.bin/bmake/tests/sysmk/t2/mk \ usr.bin/bmake/tests/variables \ usr.bin/bmake/tests/variables/modifier_M \ usr.bin/bmake/tests/variables/modifier_t \ usr.bin/bmake/tests/variables/opt_V \ usr.bin/bmake/tests/variables/t0 \ usr.bin/bsdcat/tests \ usr.bin/calendar/tests \ usr.bin/cmp/tests \ usr.bin/col/tests \ usr.bin/comm/tests \ usr.bin/cpio/tests \ usr.bin/cut/tests \ usr.bin/dirname/tests \ usr.bin/file2c/tests \ usr.bin/grep/tests \ usr.bin/gzip/tests \ usr.bin/ident/tests \ usr.bin/join/tests \ usr.bin/jot/tests \ usr.bin/lastcomm/tests \ usr.bin/limits/tests \ usr.bin/m4/tests \ usr.bin/mkimg/tests \ usr.bin/ncal/tests \ usr.bin/printf/tests \ + usr.bin/pwait/tests \ usr.bin/sdiff/tests \ usr.bin/sed/tests \ usr.bin/sed/tests/regress.multitest.out \ usr.bin/soelim/tests \ usr.bin/tar/tests \ usr.bin/tests \ usr.bin/timeout/tests \ usr.bin/tr/tests \ usr.bin/truncate/tests \ usr.bin/units/tests \ usr.bin/uudecode/tests \ usr.bin/uuencode/tests \ usr.bin/xargs/tests \ usr.bin/xinstall/tests \ usr.bin/xo/tests \ usr.bin/yacc/tests \ usr.sbin/chown/tests \ usr.sbin/etcupdate/tests \ usr.sbin/extattr/tests \ usr.sbin/fstyp/tests \ usr.sbin/makefs/tests \ usr.sbin/newsyslog/tests \ usr.sbin/nmtree/tests \ usr.sbin/pw/tests \ usr.sbin/rpcbind/tests \ usr.sbin/sa/tests \ usr.sbin/tests \ # Remove some known to be broken DIRDEPS:= ${DIRDEPS:Ncddl/usr.sbin/dtrace/tests/common/nfs} DIRDEPS:= ${DIRDEPS:Ncddl/usr.sbin/dtrace/tests/common/sysevent} DIRDEPS:= ${DIRDEPS:Ncddl/usr.sbin/dtrace/tests/common/docsExamples} DIRDEPS:= ${DIRDEPS:Nlib/libc/tests/net/getaddrinfo} .include