summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Update gateworks exclusion list to match latest tree.imp2011-01-031-2/+14
|
* Bump the media size from approx 600MB to approx 750MB. The greatimp2011-01-031-1/+1
| | | | | | hob-nailed tennis shoe of progress demands it! Submitted by: phk
* Put in the other half of the SRCCONF patch.imp2011-01-031-1/+1
| | | | Submitted by: phk
* sh: Test that exit $? replaces the original exit status in an EXIT trap.jilles2011-01-011-0/+6
|
* sh: Check readonly status for assignments on regular builtins.jilles2011-01-011-0/+8
| | | | | | | | | | An error message is written, the builtin is not executed, nonzero exit status is returned but the shell does not abort. This was already checked for special builtins and external commands, with the same consequences except that the shell aborts for special builtins. Obtained from: NetBSD
* sh: Check if dup2 for redirection from/to a file succeeds.jilles2010-12-311-0/+7
| | | | | | | | A failure (e.g. caused by ulimit -n being set very low) is a redirection error. Example: ulimit -n 9; exec 9<.
* sh: Avoid side effects from builtins in optimized command substitution.jilles2010-12-301-0/+51
| | | | | | | | | | | | | | | | | | Change the criterion for builtins to be safe to execute in the same process in optimized command substitution from a blacklist of only cd, . and eval to a whitelist. This avoids clobbering the main shell environment such as by $(exit 4) and $(set -x). The builtins jobid, jobs, times and trap can still show information not available in a child process; this is deliberately permitted. (Changing traps is not.) For some builtins, whether they are safe depends on the arguments passed to them. Some of these are always considered unsafe to keep things simple; this only harms efficiency a little in the rare case they are used alone in a command substitution.
* sh: Add two tests for special cases in command substitution that alreadyjilles2010-12-302-0/+28
| | | | work in stable/8.
* sh: Don't do optimized command substitution if expansions have side effects.jilles2010-12-281-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | Before considering to execute a command substitution in the same process, check if any of the expansions may have a side effect; if so, execute it in a new process just like happens if it is not a single simple command. Although the check happens at run time, it is a static check that does not depend on current state. It is triggered by: - expanding $! (which may cause the job to be remembered) - ${var=value} default value assignment - assignment operators in arithmetic - parameter substitutions in arithmetic except ${#param}, $$, $# and $? - command substitutions in arithmetic This means that $((v+1)) does not prevent optimized command substitution, whereas $(($v+1)) does, because $v might expand to something containing assignment operators. Scripts should not depend on these exact details for correctness. It is also imaginable to have the shell fork if and when a side effect is encountered or to create a new temporary namespace for variables. Due to the $! change, the construct $(jobs $!) no longer works. The value of $! should be stored in a variable outside command substitution first.
* sh: Add test for optimized command substitution.jilles2010-12-281-0/+53
| | | | | | | | This test verifies that certain expansions without side effects do not cause the command substitution to be executed in a child process. This is not a correctness requirement, but it involves a nontrivial amount of code and it would be unfortunate if it stopped working.
* sh: Make expansion errors in optimized command substitution non-fatal.jilles2010-12-281-0/+5
| | | | | | Command substitutions consisting of a single simple command are executed in the main shell process but this should be invisible apart from performance and very few exceptions such as $(trap).
* sh: Add a testcase for cmdsubst errors that already works properly.jilles2010-12-271-0/+4
| | | | | | | If a command substitution consists of one special builtin and there is a redirection error, this should not abort the outer shell. It was fixed in r201366 by ignoring special builtin properties for command substitutions consisting of one builtin.
* Restore two commented-out tests from plus-minus1.0 to a new file.emaste2010-12-272-3/+26
| | | | | | These two cases pass on -CURRENT but fail on stable/8. Reviewed by: jilles
* Remove commented-out test that's covered in plus-minus2.0 anyway.emaste2010-12-261-2/+0
| | | | Discussed with: jilles
* sh: Make warnings in the printf builtin non-fatal, like in the program.jilles2010-12-202-0/+10
| | | | | | | | The #define for warnx now behaves much like the libc function (except that it uses sh command name and output). Also, it now uses C99 __VA_ARGS__ so there is no need for three different macros for 0, 1 or 2 parameters.
* 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
|
OpenPOWER on IntegriCloud