summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* sh: arith: Disallow decimal constants starting with 0 (containing 8 or 9).jilles2010-12-181-0/+4
| | | | | | | | | Constants in arithmetic starting with 0 should be octal only. This avoids the following highly puzzling result: $ echo $((018-017)) 3 by making it an error instead.
* sh: Fix corruption of command substitutions with special chars after newlinejilles2010-12-161-0/+20
| | | | | | | | The CTLESC byte to protect a special character was output before instead of after a newline directly preceding the special character. The special handling of newlines is because command substitutions discard all trailing newlines.
* Recognize NFSv4 ACL semantics and run proper regression test.trasz2010-12-131-1/+5
|
* sh: Fix some tests that used sh instead of ${SH}jilles2010-12-122-2/+2
| | | | | | | so they tested the wrong sh. This was caused because these tests were committed after the sh -> ${SH} change but were created before.
* sh: Add a test for r216387 (long arithmetic expression in here document).jilles2010-12-121-0/+12
|
* Add regression test for new NFSv4 ACL semantics, verified with ZFSv28.trasz2010-12-121-0/+562
| | | | | Note that to run it, you need not only ZFSv28, but also a modified setfacl(1), which is not in the tree yet.
* Allow to specify path to a file we want to test with sendfile(2).pjd2010-12-111-3/+16
| | | | This allows to specify selected file system and not only /tmp/.
* printf: Test that the "--" option terminator works.jilles2010-12-082-1/+3
|
* Work around gcc constant folding bugs.das2010-12-061-1/+6
|
* signbit() returns nonzero for negative arguments, but we shouldn't assumedas2010-12-066-6/+8
| | | | that it always returns the same nonzero value.
* Fix some warnings.das2010-12-051-3/+3
|
* Add regression tests for logarithmic functions in the math library.das2010-12-053-1/+169
|
* Document two more ways to find duplicates in the obsolete file list.uqs2010-12-041-1/+0
| | | | | | | Remove the only duplicate found by the optional files check. Fix typos, while here. Suggested by: netchild
* Extend the unix gc regression test to cover the case of r216150.kib2010-12-031-9/+54
| | | | | Requested and reviewed by: rwatson MFC after: 1 week
* o Mount the device async when we're doing the copy.imp2010-12-031-3/+3
| | | | | | | | o Create a sparse file instead of a fully zerod one. This trades the possibiltiy of running out of space during the build for the speed gain not having do write all those zeros... Submitted by: n_hibma
* _WITHOUT_SRCCONF has too much baggage. Instead, use the simplerimp2010-12-031-1/+1
| | | | SRCCONF=/dev/null.
* Add some basic regression tests for nearbyint().das2010-12-033-1/+111
|
* sh: Make the test for cd/pwd with long pathnames more useful:jilles2010-11-281-7/+8
| | | | | * Use $(getconf PATH_MAX /) to make sure we actually exercise the hard part * Delete our test area even if the test fails
* Don't checksum distfiles twice if they match the first time.phk2010-11-231-9/+7
|
* Optimize the ports recurser a bit more.phk2010-11-231-1/+3
|
* Improve the ports-dependency resolver by truncating the recursion ifphk2010-11-231-7/+34
| | | | | we already did the target port, and by leaving behind a /tmp/_.plist.dot which documents which ports pulled in what other ports.
* sh: Add a test that manipulates various long strings.jilles2010-11-191-0/+16
| | | | | | It is quite effective at detecting mistakes in memalloc.c and code using it. It is somewhat slow, but some of the patches in my queue improve it.
* sh: Add another simple test for the wait builtin.jilles2010-11-191-0/+21
|
* Fix an error in our results printing.gnn2010-11-161-1/+1
|
* Add optional files controlled by WITH_GPIO knobgonzo2010-11-141-0/+5
| | | | Submitted by: Alexander Best <arundel@freebsd.org>
* lib32 is installed on powerpc64 too.brucec2010-11-141-10/+10
|
* libatm_p.a, libkeycap_p.a and libmytinfo_p.a are already in ObsoleteFiles.inc.brucec2010-11-141-5/+2
| | | | | | liblwres.so.10 has been replaced by liblwres.so.50. Reported by: arundel
* Add a queue to hold packets while we await an ARP reply.gnn2010-11-123-0/+178
| | | | | | | | | | | | | | | | | | | | | | When a fast machine first brings up some non TCP networking program it is quite possible that we will drop packets due to the fact that only one packet can be held per ARP entry. This leads to packets being missed when a program starts or restarts if the ARP data is not currently in the ARP cache. This code adds a new sysctl, net.link.ether.inet.maxhold, which defines a system wide maximum number of packets to be held in each ARP entry. Up to maxhold packets are queued until an ARP reply is received or the ARP times out. The default setting is the old value of 1 which has been part of the BSD networking code since time immemorial. Expose the time we hold an incomplete ARP entry by adding the sysctl net.link.ether.inet.wait, which defaults to 20 seconds, the value used when the new ARP code was added.. Reviewed by: bz, rpaulo MFC after: 3 weeks
* Insulate the nanobsd build from the current system by opting out ofimp2010-11-101-0/+2
| | | | | | the SRCCONF processing. Noted by: gcopper@
* Build make.conf when the world is not selected to build, but theimp2010-11-101-0/+3
| | | | | | | kernel is. PR: 151696 Submitted by: lev@
* Document NANO_CFGDIR and NANO_DATADIRimp2010-11-101-0/+6
| | | | Submitted by: n_hibma@
* Hide 460.chkportsum in MK_PKGTOOLS != no case.delphij2010-11-091-0/+1
| | | | | Submitted by: Alex Kozlov <spam rm-rf kiev ua> MFC after: 2 weeks
* test: Move tests to tools/regression/bin/test.jilles2010-11-084-1/+170
| | | | | | | | | Convert the tests to the perl prove format. Remove obsolete TEST.README (results of an old TEST.sh for some old Unices) and TEST.csh (old tests without correct values, far less complete than TEST.sh). MFC after: 1 week
* - Set -x flag when executing customisation scripts to aid in debugging them.n_hibma2010-11-071-10/+31
| | | | | | | | | | | - Use KERNCONFDIR with KERNCONF instead of copying the kernel config into the source tree so included kernel configs work. - Put more stuff in the _.bk/_.ik log file, not just make statements. - Add the kernel config name to the pprint during kernel installation. - Add NANO_MODULES providing a list of modules to build and install. Reviewed by: imp MFC after: 2 weeks
* Remove useless comment.trasz2010-11-071-1/+0
|
* sh: Add simple tests for printf.jilles2010-11-052-0/+6
| | | | | These are not meant as a replacement for tools/regression/usr.bin/printf/* but to detect errors specific to making it a shell builtin.
* sh: Fix some issues with aliases and case, by importing dash checkkwd code.jilles2010-11-021-0/+6
| | | | | | | | | | | This moves the function of the noaliases variable into the checkkwd variable. This way it is properly reset on errors and aliases can be used normally in the commands for each case (the case labels recognize the keyword esac but no aliases). The new code is clearer as well. Obtained from: dash
* sh: Detect various additional errors in the parser.jilles2010-10-291-0/+4
| | | | | | | | | | | | | Apart from detecting breakage earlier or at all, this also fixes a segfault in the testsuite. The "handling" of the breakage left an invalid internal representation in some cases. Examples: echo a; do echo b echo `) echo a` echo `date; do do do` Exp-run done by: pav (with some other sh(1) changes)
* sh: Fix some issues with CTL* bytes and ${var#pat}.jilles2010-10-291-0/+22
| | | | | | | | | | | | | | subevalvar() incorrectly assumed that CTLESC bytes were present iff the expansion was quoted. However, they are present iff various processing such as word splitting is to be done later on. Example: v=@$e@$e@$e@ y="${v##*"$e"}" echo "$y" failed if $e contained the magic CTLESC byte. Exp-run done by: pav (with some other sh(1) changes)
* sh: Do IFS splitting on word in ${v+word} and ${v-word}.jilles2010-10-291-0/+34
| | | | | | | | | | | | | | | | | The code is inspired by NetBSD sh somewhat, but different because we preserve the old Almquist/Bourne/Korn ability to have an unquoted part in a quoted ${v+word}. For example, "${v-"*"}" expands to $v as a single field if v is set, but generates filenames otherwise. Note that this is the only place where we split text literally from the script (the similar ${v=word} assigns to v and then expands $v). The parser must now add additional markers to allow the expansion code to know whether arbitrary characters in substitutions are quoted. Example: for i in ${$+a b c}; do echo $i; done Exp-run done by: pav (with some other sh(1) changes)
* sh: Only accept a '}' inside ${v+-=?...} if double-quote state matches.jilles2010-10-281-0/+31
| | | | | | | | | | | | | If double-quote state does not match, treat the '}' literally. This ensures double-quote state remains the same before and after a ${v+-=?...} which helps with expand.c. It makes things like ${foo+"\${bar}"} which I have seen in the wild work as expected. Exp-run done by: pav (with some other sh(1) changes)
* sh: Make double-quotes quote a '}' inside ${v#...} and ${v%...}.jilles2010-10-281-0/+28
| | | | | Exp-run done by: pav (with some other sh(1) changes) PR: bin/57554
* sh: Do not allow overriding a special builtin with a function.jilles2010-10-241-0/+7
| | | | | | | | | | | | | | | | | This is a syntax error. POSIX does not say explicitly whether defining a function with the same name as a special builtin is allowed, but it does say that it is impossible to call such a function. A special builtin can still be overridden with an alias. This commit is part of a set of changes that will ensure that when something looks like a special builtin to the parser, it is one. (Not the other way around, as it remains possible to call a special builtin named by a variable or other substitution.) Exp-run done by: pav (with some other sh(1) changes)
* sh: Make sure defined functions can actually be called.jilles2010-10-241-0/+25
| | | | | | | | | | | | | | | | | Add some conservative checks on function names: - Disallow expansions or quoting characters; these can only be called via strange control characters - Disallow '/'; these functions cannot be called anyway, as exec.c assumes they are pathnames - Make the CTL* bytes work properly in function names. These are syntax errors. POSIX does not require us to support more than names (letters, digits and underscores, not starting with a digit), but I do not want to restrict it that much at this time. Exp-run done by: pav (with some other sh(1) changes)
* sh: Check whether dup2 was successful for >&FD and <&FD.jilles2010-10-241-0/+4
| | | | | | A failure (usually caused by FD not being open) is a redirection error. Exp-run done by: pav (with some other sh(1) changes)
* sh: Add a test trying to close a descriptor that is not open.jilles2010-10-241-0/+3
| | | | | In stable/8 and older, this fails. Some of the redirection changes in head have fixed it.
* sh: Change ! within a pipeline to start a new pipeline instead.jilles2010-10-241-0/+3
| | | | | | | | | | | | | | This is how ksh93 treats ! within a pipeline and makes the ! in a | ! b | c negate the exit status of the pipeline, as if it were a | { ! b | c; } Side effect: something like f() ! a is now a syntax error, because a function definition takes a command, not a pipeline. Exp-run done by: pav (with some other sh(1) changes)
* sh: Add some testcases for alias expansion.jilles2010-10-242-0/+11
|
* Add microbenchmark for create/unlink of a zero-byte file.rwatson2010-10-241-3/+32
| | | | | Sponsored by: Google, Inc. MFC after: 2 weeks
* Validate syscall_timing test names before starting to provide earlierrwatson2010-10-221-12/+68
| | | | | | | | | | | | | | feedback regarding user error. Provide default loop and timing settings. Add a new test that just times pread() without the open()/close(). Mark tests requiring a path argument so we can provide better feedback to the user than EFAULT on (null). Sponsored by: Google, Inc. MFC after: 2 weeks
OpenPOWER on IntegriCloud