joel
e62ff53b73
The NetBSD Foundation has granted permission to remove clause 3 and 4 from
...
their software.
Obtained from: NetBSD
2010-03-02 22:25:50 +00:00
joel
5d42157965
The NetBSD Foundation has granted permission to remove clause 3 and 4 from
...
their software.
Obtained from: NetBSD
2010-03-02 17:05:19 +00:00
uqs
f8d1dd7a4e
Always assign WARNS using ?=
...
- fix some nearby style bugs
- include Makefile.inc where it makes sense and reduces duplication
Approved by: ed (co-mentor)
2010-03-02 16:58:04 +00:00
antoine
01a68ffd1a
Add files to remove when MK_PPP=no.
2010-02-28 14:43:55 +00:00
antoine
78e9b96907
Add files to remove when MK_PORTSNAP=no.
2010-02-28 14:41:28 +00:00
antoine
443c579049
Add files to remove when MK_PKGTOOLS=no.
2010-02-28 14:39:39 +00:00
antoine
7575a14043
Add files to remove when MK_PF=no.
2010-02-28 14:37:39 +00:00
antoine
2b913d765e
Add files to remove when MK_NTP=no.
2010-02-28 14:32:29 +00:00
antoine
ff068132e2
Update files to remove when MK_RCMDS=no.
2010-02-28 14:29:22 +00:00
antoine
6d09dcaa15
Add files to remove when MK_RCS=no.
2010-02-28 14:26:28 +00:00
antoine
b0faa7e726
Add files to remove when MK_ROUTED=no.
2010-02-28 14:24:38 +00:00
antoine
f9cfb0be13
Add files to remove when MK_TELNET=no.
2010-02-28 14:23:38 +00:00
antoine
a4454ac9a6
Add files to remove when MK_NDIS=no.
2010-02-28 14:21:15 +00:00
antoine
19570a5d80
Update files to remove when MK_NCP=no.
2010-02-28 14:13:33 +00:00
antoine
37c52e52bc
Update files to remove when MK_LPR=no.
2010-02-28 14:12:05 +00:00
antoine
d2c02366c9
Add files to remove when MK_WIRELESS=no.
2010-02-28 14:08:12 +00:00
antoine
0252b0ea1b
Do not remove fmt.1 when MK_MAIL=no.
...
X-MFC-With: r203584
2010-02-26 23:26:15 +00:00
ru
4af3a7a23f
Fixed missing or broken library dependencies.
2010-02-25 14:42:26 +00:00
ru
a7d3493334
Moved mcgrab(1) into a separate directory -- our .mk infrastructure
...
doesn't currently have support for building multiple programs in a
single makefile.
While here, fixed manpages and makefiles (missing dependencies).
2010-02-25 14:36:50 +00:00
brucec
096b34304e
Update the sendfile regression test so that it outputs results in the
...
TAP format.
Add a checksum to verify that the data hasn't been corrupted between
being read from disk and being received.
Approved by: rrs (mentor)
2010-02-24 23:00:16 +00:00
attilio
0b363d5ac3
Add a regression test for the kthread(9) interface.
...
Submitted by: Giovanni Trematerra
<giovanni dot trematerra at gmail dot com>
2010-02-20 15:20:28 +00:00
jilles
c8c6926105
sh: arith: Add a test for a bug in the dash arith code,
...
which I plan to import at some point.
Our current code handles it fine and it should stay that way.
2010-02-17 22:25:22 +00:00
jilles
8e6f78bc97
sh: arith: Test an octal constant as well.
2010-02-17 22:22:20 +00:00
uqs
89a7a155da
Add missing newline in last line of file.
...
Uncovered via: fromcvs vs. svn
Approved by: ed (co-mentor)
2010-02-16 09:10:21 +00:00
pjd
b7ae6c5559
- Implement -q option for pgrep(1).
...
- Add regression test to test -q option.
2010-02-12 18:52:24 +00:00
ru
7b7a680280
Fixed error checking of pthread(3) functions.
...
PR: 143807
Submitted by: pluknet (partly)
2010-02-12 16:33:03 +00:00
delphij
f4340253d5
Symbolic link to mailwrapper should only be removed if both MK_MAILWRAPPER
...
and MK_SENDMAIL is "no".
Reported by: Rob Farmer <rfarmer at predatorlabs.net>
2010-02-10 00:01:35 +00:00
delphij
13dc1aaf66
As it turns out, fmt(1) is being used by the base system as well as the
...
ports tree extensively and it is probably a good idea to keep it
regardless of NO_MAIL setting.
Reported by: Alexander Best
Reviewed by: antoine
X-MFC-With: r203584
2010-02-09 18:22:26 +00:00
jilles
864e4b956a
sh: Make sure the mail2.0 test can actually fail if $MAIL is not touched.
2010-02-08 18:57:18 +00:00
delphij
626ec8ce6e
Add files for NO_MAIL, NO_SENDMAIL and NO_MAILWRAPPER.
...
MFC after: 2 weeks
2010-02-07 00:38:31 +00:00
jilles
9c81a24436
sh: Do not stat() $MAIL/$MAILPATH in non-interactive shells.
...
These may be NFS mounted, and we should not touch them unless we are going
to do something useful with the information.
2010-02-06 22:57:24 +00:00
antoine
4b236d0b57
Update files to remove when MK_KERBEROS=no.
2010-02-06 20:21:03 +00:00
antoine
35ab0aaa2c
Add files to remove when MK_JAIL=no.
2010-02-06 20:11:23 +00:00
antoine
0302abf97a
Update files to remove when MK_IPX=no.
2010-02-06 20:09:55 +00:00
antoine
5d9ac4f480
Add files to remove when MK_IPFW=no.
2010-02-06 20:08:46 +00:00
antoine
8d4298591a
Move rescue/ping6 from files to remove when MK_INET6=no to file to remove
...
when MK_INET6_SUPPORT=no. (MK_INET6=no implies MK_INET6_SUPPORT=no)
2010-02-06 20:06:06 +00:00
antoine
36a370a844
Add file to remove when MK_IDEA=no.
2010-02-06 20:02:56 +00:00
antoine
7a4687f407
Add files to remove when MK_GSSAPI=no.
2010-02-06 20:00:35 +00:00
antoine
b08756e9ed
Add files to remove when MK_GPIB=no.
2010-01-30 19:36:55 +00:00
antoine
920ff87426
Add files to remove when MK_GDB=no.
2010-01-30 19:33:45 +00:00
antoine
8a4538421f
Add files to remove when MK_GAMES=no.
2010-01-30 19:32:01 +00:00
antoine
ac45edf95b
Add files to remove when MK_FREEBSD_UPDATE=no.
2010-01-30 19:29:02 +00:00
antoine
0349a36e6e
Add files to remove when MK_FLOPPY=no.
2010-01-30 19:26:28 +00:00
ru
4c97d85934
Actualize.
2010-01-25 14:17:36 +00:00
antoine
fd0073d828
Add files to remove when MK_DICT=no.
2010-01-24 14:13:56 +00:00
antoine
d74856acb4
Add files to remove when MK_CVS=no.
2010-01-24 14:09:45 +00:00
antoine
b7f603c9e0
Add files to remove when MK_CTM=no.
2010-01-24 14:06:19 +00:00
antoine
b513317814
Add files to remove when MK_CPP=no.
2010-01-24 14:04:38 +00:00
antoine
cedc84aabb
Update files to remove when MK_ZFS=no.
2010-01-16 20:42:50 +00:00
antoine
e2ca4ffb16
Update files to remove when MK_CDDL=no.
2010-01-16 20:40:12 +00:00
antoine
a15e8fdc8f
Add files to remove when MK_CALENDAR=no.
2010-01-16 20:36:27 +00:00
gavin
0c2da89ac4
Spell "Hz" correctly wherever it is user-visible.
...
PR: bin/142566
Submitted by: N.J. Mann njm njm.me.uk
Approved by: ed (mentor)
MFC after: 2 weeks
2010-01-12 17:59:58 +00:00
antoine
a880ee87bc
Update files to remove when MK_BLUETOOTH=no.
2010-01-09 19:52:42 +00:00
antoine
c06b0ac5c7
Add files to remove when MK_AUTHPF=no.
2010-01-09 19:13:56 +00:00
antoine
afce8c25b5
Add files to remove when MK_ATM=no.
2010-01-09 19:12:33 +00:00
antoine
a8225bcb60
Add files to remove when MK_AT=no.
2010-01-09 19:09:16 +00:00
antoine
bca24819c8
Add files to remove when MK_APM=no.
2010-01-09 19:07:04 +00:00
antoine
8283a25bdd
Add files to remove when MK_AMD=no.
2010-01-09 19:04:38 +00:00
antoine
5a2e2b97d2
Add files to remove when MK_ACCT=no.
2010-01-09 19:02:33 +00:00
davidxu
d206161359
Don't forget to use fourth argument if O_CREAT is set in argument oflag.
...
The fourth specifies initial value for the semaphore.
2010-01-07 04:15:49 +00:00
davidxu
1053aec712
Add test code for POSIX semaphore implementation.
2010-01-05 12:34:13 +00:00
obrien
d2744b88e9
Add ability to search up the directory hierarchy for the system directory.
...
Do by specifying ".../" with '-m' or MAKESYSPATH (new) environment variable.
Reviewed by: <sjg@NetBSD.org>
Obtained from: NetBSD (+ embellishment by me, sent back to NetBSD)
2010-01-04 18:57:22 +00:00
obrien
0eb7553bed
Fix formatting.
2010-01-04 11:11:37 +00:00
obrien
9085cab1b2
There are actually 129 tests here.
2010-01-04 11:00:12 +00:00
obrien
c08a21642c
Catch up with UNIX98-style PTY's.
2010-01-04 10:59:14 +00:00
obrien
ed014ff383
'prove -r' isn't as smart as grog thought.
2010-01-04 10:58:08 +00:00
obrien
7c3c566c89
You need to be root to run this test.
2010-01-04 09:59:18 +00:00
obrien
4e367e4214
Also cleanup after the test run.
2010-01-04 09:57:00 +00:00
obrien
f34b58c695
Don't process 'lastcomm' if "AUTOMATED" is defined.
...
The tests for it require manual setup.
2010-01-04 09:54:24 +00:00
obrien
4e434d007d
It is expected these are chmod +x.
2010-01-04 09:50:30 +00:00
obrien
9f5a22f4e5
Regression test for r201456.
2010-01-04 09:49:23 +00:00
jilles
e314ef3281
sh: Send the "not found" message for builtin <cmd> to redirected fd 2.
2010-01-03 15:01:38 +00:00
jilles
6568fbfc9d
sh: Add a regression test that tries out all arithmetic ops.
...
MFC after: 1 week
2010-01-03 12:50:27 +00:00
obrien
82a9840cd0
Use t1 & t2 as more symbolic than 'a' and 'b' for the two times.
2010-01-03 12:17:51 +00:00
obrien
8ab1021a62
Provide clean output with 'prove -r'.
2010-01-03 11:53:48 +00:00
obrien
d29fa0f85f
Hide expected error output so the 'prove -r' results are easy to read.
2010-01-03 09:31:33 +00:00
obrien
447a847b68
Allow to be driven by 'prove -r'.
2010-01-03 09:30:50 +00:00
obrien
07c66d81be
Make sure 'pack' is usable for 'prove -r'.
2010-01-03 08:44:18 +00:00
obrien
88d1aeccc5
Transform from kernel file to userland source.
2010-01-03 08:33:24 +00:00
jilles
446838eef9
sh: Fix some bugs with backquoted builtins:
...
- correctly handle error output in $(builtin 2>&1), clarify out1/out2 vs
output/errout in the code
- treat all builtins as regular builtins so errors do not abort the shell
and variable assignments do not persist
- respect the caller's INTOFF
Some bugs still exist:
- expansion errors may still abort the shell
- some side effects of expansions and builtins persist
2010-01-01 18:17:46 +00:00
brooks
a5cc24440b
The devices that supported EVFILT_NETDEV kqueue filters were removed in
...
r195175. Remove all definitions, documentation, and usage.
fifo_misc.c:
Remove all kqueue tests as fifo_io.c performs all those that
would have remained.
Reviewed by: rwatson
MFC after: 3 weeks
X-MFC note: don't change vlan_link_state() function signature
2009-12-31 20:29:58 +00:00
jilles
9f56916a97
sh: Use PATH= assignment in type.
...
Example:
PATH=/var/empty; PATH=/bin type ls
2009-12-31 17:44:24 +00:00
jilles
8e6aa134e5
sh: Allow command -pv and command -pV (lookup using _PATH_STDPATH).
2009-12-31 16:13:33 +00:00
jilles
5633dfdd79
sh: arith: Return only 0 and 1 from && and ||.
...
This agrees with C, POSIX and other shells.
2009-12-30 15:59:40 +00:00
antoine
bfd388c026
(S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.
...
Fix some wrong usages.
Note: this does not affect generated binaries as this argument is not used.
PR: 137213
Submitted by: Eygene Ryabinkin (initial version)
MFC after: 1 month
2009-12-28 22:56:30 +00:00
trasz
d4630ade7b
Make tests for ACL preservation by mv(1) and cp(1) more complete
...
and easier to follow.
2009-12-27 13:05:56 +00:00
jilles
545cc5fec7
sh: Do not run callers' exception handlers in subshells.
...
Reset the exception handler in the child to main's.
This avoids inappropriate double cleanups or shell duplication when the
exception is caught, such as 'fc' and future 'command eval' and 'command .'.
2009-12-25 20:21:35 +00:00
jhb
1d27c062b6
Add a new tool which attempts to check for kernel configuration options that
...
are missing from NOTES files.
2009-12-24 14:32:11 +00:00
trasz
b12b4cb50e
Add regression test for NFSv4 ACLs on UFS.
2009-12-21 20:47:41 +00:00
rwatson
2bc44b9609
Merge libkqueue test suite through r119
...
Submitted by: Mark Heily <mark@heily.com>
2009-12-15 10:43:20 +00:00
rwatson
b8a76a26d7
Add Mark Heily's libkqueue test suite as a general kqueue test suite to
...
tools/regression. It tests a number of aspects of kqueue behavior,
although not all currently pass (possibly bugs in the test suite?).
Submitted by: Mark Heily <mark at heily.com>
Obtained from: svn://mark.heily.com/libkqueue/trunk/test (r114)
2009-12-13 20:27:46 +00:00
jh
6f2f9130ae
Don't read the newline character to line buffer because lines are passed
...
to wcscoll(3). Newline characters could cause incorrect results when
comparing lines.
Also, if an input line didn't contain a newline character, it was
omitted from the output. According to my interpretation, SUSv3 requires
that the newline is always printed.
Add regression tests for the cases. [1]
PR: bin/140976
Submitted by: D'Arcy Cain (original version) [1]
Approved by: trasz (mentor)
2009-12-12 18:18:46 +00:00
jilles
c4ae3de634
sh: Test ;<newline> as well as ; in the 'for' parser test.
2009-12-06 23:31:23 +00:00
phk
6c4860700c
Add disk-magic for amd64: same as i386.
...
Pass PORTS_OPTS wherever we invoke ports makefiles
Add a logfile where we can see the progress of distfile prefetching
2009-12-04 10:57:01 +00:00
green
32cc2b56a7
Do not gratuitously fail *env(3) operations due to corrupt ('='-less)
...
**environ entries. This puts non-getenv(3) operations in line with
getenv(3) in that bad environ entries do not cause all operations to
fail. There is still some inconsistency in that getenv(3) in the
absence of any environment-modifying operation does not emit corrupt
environ entry warnings.
I also fixed another inconsistency in getenv(3) where updating the
global environ pointer would not be reflected in the return values.
It would have taken an intermediary setenv(3)/putenv(3)/unsetenv(3)
in order to see the change.
2009-12-01 05:04:31 +00:00
jilles
11d90a01c3
Disable job control when running 'sh -i' in the testsuite.
...
Job control tty manipulations sometimes cause the tests to stop (SIGTTOU
and the like) when run from the 'prove' tool.
2009-11-29 22:58:10 +00:00
jilles
171b4944c1
Fix some cases where file descriptors from redirections leak to programs.
...
- Redirecting fds that were not open before kept two copies of the
redirected file.
sh -c '{ :; } 7>/dev/null; fstat -p $$; true'
(both fd 7 and 10 remained open)
- File descriptors used to restore things after redirection were not
set close-on-exec, instead they were explicitly closed before executing
a program normally and before executing a shell procedure. The latter
must remain but the former is replaced by close-on-exec.
sh -c 'exec 7</; { exec fstat -p $$; } 7>/dev/null; true'
(fd 10 remained open)
The examples above are simpler than the testsuite because I do not want to
use fstat or procstat in the testsuite.
2009-11-29 22:33:59 +00:00
julian
bf4b9dad83
exit if "make distribition" fails
...
Submitted by: patrick tracanelli
MFC after: 1 week
2009-11-25 19:00:30 +00:00
jkim
f95642ae2b
Make this test case little bit more interesting.
2009-11-23 22:28:15 +00:00
jilles
20812b17e0
sh: Ensure the same command input file is on top after executing a builtin.
...
This avoids weirdness when 'fc -e vi' or the like is done and there is a
syntax error in the file. Formerly an interactive shell tried to execute
stuff after the syntax error and exited.
This should also avoid similar issues with 'command eval' and 'command .'
when 'command' is implemented properly as in NetBSD sh.
Special builtins did not have this problem since errors in them cause the
shell to exit or to reset various state such as the current command input
file.
2009-11-22 14:04:20 +00:00