summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in usage message. Add -n to the list of valid arguments.philip2010-04-301-2/+2
| | | | MFC after: 1 day
* Add a TestFloat based test suite for floating-point implementationsmarius2010-04-2441-0/+18426
| | | | | | | | | | | | currently supporting sparc64. After a `make depend all` there are three programs; testsoftfloat for testing against the SoftFloat in src/lib/libc/softfloat for reference purposes, testemufloat for testing the emulator source in src/lib/libc/sparc64/fpu and testfloat for testing with the installed libc. Support for other architectures can be added as needed. PR: 144900 Submitted by: Peter Jeremy
* Adjust a test case and make it more jump optimization neutral for JIT case.jkim2010-04-231-1/+1
|
* sh: Add some more tests for ${v#...} and ${v%...}.jilles2010-04-231-0/+46
| | | | These pass on stable/8 as well.
* Merge @176820, @176822, @177156 to tcpp from P4 to HEAD:rwatson2010-04-212-13/+39
| | | | | | | | | | | | | | | | Improve accuracy of connection data transfer math. Disable Nagle's algorithm to avoid delaying transfers of data -- will want to refine this to combine payload with header transfer, however. Now that we're running w/o Nagle, try to send the initial data burst with the header in a single TCP segment. Prefer %zu to %ju for size_t. MFC after: 1 week Sponsored by: Juniper, Inc.
* Dump the AR_PHY_TURBO register on the AR5416. This register holds 11nrpaulo2010-04-191-0/+1
| | | | | | configurations. Sponsored by: iXsystems, inc.
* sh: Add testcases for double-quotes within quoted ${var+-...} (non-POSIX).jilles2010-04-181-0/+44
| | | | | | POSIX leaves things like "${var+"word"}" undefined. We follow traditional ash behaviour here. Hence, these testcases also work on stable/8.
* sh: On startup of the shell, use PWD from the environment if it is valid.jilles2010-04-171-0/+24
| | | | | | | | | | | | | | | Unset PWD if it is incorrect and no value for it can be determined. This preserves the logical current directory across shell invocations. Example (assuming /home is a symlink): $ cd $ pwd /home/foo $ sh $ pwd /home/foo Formerly the second pwd would show the physical path (symlinks resolved).
* fnmatch: Fix bad FNM_PERIOD disabling if an asterisk has been seen.jilles2010-04-161-0/+1
| | | | | | | Example: fnmatch("a*b/*", "abbb/.x", FNM_PATHNAME | FNM_PERIOD) PR: 116074 MFC after: 1 week
* Add some tests for fnmatch(3).jilles2010-04-162-1/+336
| | | | MFC after: 1 week
* sh: Test that bogus values of PWD are not imported from the environment.jilles2010-04-111-0/+11
| | | | | | Current versions pass this test trivially by never importing PWD, but I plan to change sh to import PWD if it is an absolute pathname for the current directory, possibly containing symlinks.
* Fix comment about NANO_ARCH. It can be set now. Also add a warningimp2010-04-061-1/+4
| | | | | about how it confuses TARGET and TARGET_ARCH and the need to separate the two out into independent variables.
* sh: Add test for nested arithmetic substitution.jilles2010-04-041-0/+17
| | | | | Pre-r206145 sh changes nested arithmetic substitution to parentheses, which is not always correct, as exercised by this test.
* sh: Add test for some associativity in arithmetic.jilles2010-04-041-0/+20
|
* sh: Do tilde expansion in substitutions.jilles2010-04-031-0/+90
| | | | | | | | | | | | | This applies to word in ${v-word}, ${v+word}, ${v=word}, ${v?word} (which inherits quoting from the outside) and in ${v%word}, ${v%%word}, ${v#word}, ${v##word} (which does not inherit any quoting). In all cases tilde expansion is only attempted at the start of word, even if word contains spaces. This agrees with POSIX and other shells. This is the last part of the patch tested in the exp-run. Exp-run done by: erwin (with some other sh(1) changes)
* sh: Fix duplicate variable name in test.jilles2010-04-031-2/+2
|
* sh: Add some testcases for the working parts of tilde expansion.jilles2010-04-031-0/+56
|
* sh: Allow quoting pattern match characters in ${v%pat} and ${v#pat}.jilles2010-04-031-0/+55
| | | | | | | | Note that this depends on r206145 for allowing pattern match characters to have their special meaning inside a double-quoted expansion like "${v%pat}". PR: bin/117748 Exp-run done by: erwin (with some other sh(1) changes)
* sh: Fix various things about expansions:jilles2010-04-032-0/+48
| | | | | | | | | | | | | | | | | | | | * remove the backslash from \} inside double quotes inside +-=? substitutions, e.g. "${$+\}a}" * maintain separate double-quote state for ${v#...} and ${v%...}; single and double quotes are special inside, even in a double-quoted string or here document * keep track of correct order of substitutions and arithmetic This is different from dash's approach, which does not track individual double quotes in the parser, trying to fix this up during expansion. This treats single quotes inside "${v#...}" incorrectly, however. This is similar to NetBSD's approach (as submitted in PR bin/57554), but recognizes the difference between +-=? and #% substitutions hinted at in POSIX and is more refined for arithmetic expansion and here documents. PR: bin/57554 Exp-run done by: erwin (with some other sh(1) changes)
* sh: Add some testcases for the working parts of ${v%...} and ${v#...}.jilles2010-04-031-0/+85
|
* Two fixes:imp2010-03-311-15/+2
| | | | | | | | | | (1) We don't need a custom install_kernel. We can install without symbols by adding INSTALL_NODEBUG (which likely should be WITHOUT_KERNEL_SYMBOLS_FILE, or something shorter) to CONF_INSTALL (2) for make buildenv stage, use NANO_MAKE_CONF_BUILD rather than the non-existant NANO_MAKE_CONF. MFC after: 7 days
* Stop hard coding i386 as the arch for the build. Instead, default to theimp2010-03-311-1/+6
| | | | | | | | | | | processor we're running on. Also, supply amd64 version of create_diskimage that's the same as i386's. # didn't fix the confusion between using the processor for this and using # the machine (which would be more appropriate). NANO_ARCH smashes the two # together right now. MFC after: 7 days
* Remove GNU cpio after fix of CVE-2010-0624.delphij2010-03-262-12/+0
| | | | | | | | | | | | | Note that this is actually a no-op for most users, as this GNU cpio was broken on -HEAD and 8-STABLE since last March until the recent fix. FreeBSD 8.0+ uses BSD cpio by default and the code is being actively maintained. Blessed by: kientzle With hat: secteam MFC after: 3 days
* Use gpart(8) to set the active boot partition.phk2010-03-242-2/+2
|
* Replace -b with -C and -B (as proposed by Alexander).edwin2010-03-211-34/+37
| | | | | Add -3, -A and -B to the usage. Update regression test for the new parameters.
* Add missing headers. While there, arrange headers alphabetically.kib2010-03-165-17/+37
| | | | MFC after: 3 days
* Add missing headers.kib2010-03-161-0/+3
| | | | MFC after: 3 days
* sh: Do not abort on a redirection error on a compound command.jilles2010-03-142-0/+26
| | | | | | | | | | | | | | Redirection errors on subshells already did not abort the shell because the redirection is executed in the subshell. Other shells seem to agree that these redirection errors should not abort the shell. Also ensure that the redirections will be cleaned up properly in cases like command eval '{ shift x; } 2>/dev/null' Example: { echo bad; } </var/empty/x; echo good
* sh: Add test for redirection error on subshell (should not abort).jilles2010-03-141-0/+5
|
* Remove dot at the end of errx() message.kib2010-03-141-1/+1
| | | | | Noted by: bde MFC after: 3 days
* Adjust style, fix typo, do not print errno because it is meaningless there.kib2010-03-141-1/+2
| | | | | | This test fails for now. MFC after: 3 days
* Make it compile on LP64 arches.kib2010-03-141-4/+8
| | | | MFC after: 3 days
* Create regression tests for ncal:edwin2010-03-1493-1/+1332
| | | | | | | | | | | - A couple of tests to check if the layout of the generated calenders is correct. - A couple of tests to see if impossible combinations for -3, -A, -m, -y etc properly abort. - A couple of test to confirm that the order of -A, -B, -3 etc give the right number of months.
* sh: Do not abort on a redirection error if there is no command word.jilles2010-03-131-0/+7
| | | | | | | | | | | Although simple commands without a command word (only assignments and/or redirections) are much like special builtins, POSIX and most shells seem to agree that redirection errors should not abort the shell in this case. Of course, the assignments persist and assignment errors are fatal. To get the old behaviour portably, use the ':' special builtin. To get the new behaviour portably, given that there are no assignments, use the 'true' regular builtin.
* sh: Add test for assignment errors (e.g. trying to change a readonly var).jilles2010-03-131-0/+30
| | | | | | | We currently ignore readonly status for assignments before regular builtins and external programs (these assignments are not persistent anyway), so just check that the readonly variable really is not changed. The test depends on the command builtin changes for 'command :'.
* sh: Add tests for " and $ inside `.jilles2010-03-121-0/+43
|
* sh: Add some testcases for ${v=w}, ${v-w}, ${v+w}.jilles2010-03-072-0/+118
| | | | | | These expansions, which were already in the Bourne shell, work correctly for the most part. The testcases are only about the parts that already work correctly.
* sh: Add various testcases for here documents.jilles2010-03-071-0/+85
| | | | | | They are mainly about expansions in here documents but because all the testcases are in $() command substitution, we also test that $() command substitution is recursively parsed (or very close to it).
* sh: Make sure to popredir() even if a function caused an error.jilles2010-03-061-0/+14
|
* sh: Make sure to popredir() even if a special builtin caused an error.jilles2010-03-061-0/+14
|
* sh: Improve the command builtin:jilles2010-03-063-0/+154
| | | | | | | | * avoid unnecessary fork * allow executing builtins via command * executing a special builtin via command removes its special properties Obtained from: NetBSD (parts)
* - Use errx(3) instead of err(3) when checking if snprintf(3) succeeded.jh2010-03-058-1/+40
| | | | | | | | | | snprintf(3) doesn't set errno in the tested cases. - If the same argument reference (for example %1) was specified more than once, the command didn't necessarily fit to the final command buffer. Fix this using a dynamic sbuf buffer. Add a few regression tests for the case. PR: bin/95079 No objections: freebsd-hackers
* The NetBSD Foundation has granted permission to remove clause 3 and 4 fromjoel2010-03-033-21/+0
| | | | | | their software. Obtained from: NetBSD
* The NetBSD Foundation has granted permission to remove clause 3 and 4 fromjoel2010-03-0224-168/+0
| | | | | | their software. Obtained from: NetBSD
* The NetBSD Foundation has granted permission to remove clause 3 and 4 fromjoel2010-03-021-7/+0
| | | | | | their software. Obtained from: NetBSD
* Always assign WARNS using ?=uqs2010-03-0212-15/+13
| | | | | | | - fix some nearby style bugs - include Makefile.inc where it makes sense and reduces duplication Approved by: ed (co-mentor)
* Add files to remove when MK_PPP=no.antoine2010-02-281-0/+8
|
* Add files to remove when MK_PORTSNAP=no.antoine2010-02-281-0/+9
|
* Add files to remove when MK_PKGTOOLS=no.antoine2010-02-281-0/+16
|
* Add files to remove when MK_PF=no.antoine2010-02-281-3/+28
|
OpenPOWER on IntegriCloud