summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Correct several nits/problems in the unix_close_race regression test.rwatson2010-05-271-10/+16
| | | | | Submitted by: Mikolaj Golub <to.my.trociny at gmail.com> MFC after: 3 days
* Add unix_close_race, a regresion test to catch ENOTCONN being returnedrwatson2010-05-262-0/+139
| | | | | | | | | | | | improperly from one of two instances of close(2) being called simultaneously on both ends of a connected UNIX domain socket. The test tool is slightly tweaked to improve failure modes, and while often does trigger the problem, doesn't do so consistently due to the nature of the race. PR: kern/144061 Submitted by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 3 days
* Introduce a new build knob for Flattened Device Tree support.raj2010-05-251-0/+3
| | | | | Reviewed by: imp Sponsored by: The FreeBSD Foundation
* sh: Add some simplistic tests for the wait builtin.jilles2010-05-232-0/+38
|
* Add an option file for WITHOUT_MAN_UTILS to regenerate src.conf(5).jkim2010-05-201-0/+9
|
* mdoc: consistently spell our email addresses <foo@FreeBSD.org>uqs2010-05-191-1/+1
| | | | Reviewed by: ru
* mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to theuqs2010-05-131-5/+5
| | | | | | | | | | | bottom of the manpages and order them consistently. GNU groff doesn't care about the ordering, and doesn't even mention CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put them. Found by: mdocml lint run Reviewed by: ru
* sh: Fix pathname expansion with quoted slashes like *\/.jilles2010-05-111-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are git commits 36f0fa8fcbc8c7b2b194addd29100fb40e73e4e9 and d6d06ff5c2ea0fa44becc5ef4340e5f2f15073e4 in dash. Because this is the first code I'm importing from dash to expand.c, add the Herbert Xu copyright notice which is in dash's expand.c. When pathname expanding *\/, the CTLESC representing the quoted state was erroneously taken as part of the * pathname component. This CTLESC was then seen by the pattern matching code as escaping the '\0' terminating the string. The code is slightly different because dash converts the CTLESC characters to backslashes and removes all the other CTL* characters to allow substituting glob(3). The effect of the bug was also slightly different from dash (where nothing matched at all). Because a CTLESC can escape a '\0' in some way, whether files were included despite the bug depended on memory that should not be read. In particular, on many machines /*\/ expanded to a strict subset of what /*/ expanded to. Example: echo /*"/null" This should print /dev/null, not /*/null. PR: bin/146378 Obtained from: dash
* sh: Add some simple testcases for pathname expansion.jilles2010-05-111-0/+61
|
* Fix error in comment.jilles2010-05-091-1/+1
|
* sh: Add some parser tests.jilles2010-05-093-0/+53
| | | | | | | case1.0 tests POSIX requirements and one more for keywords in case statements. The others test very special cases of command substitution. These also work on stable/8.
* Generate some tests for sh's case command from the fnmatch tests.jilles2010-05-094-1/+256
| | | | | I'm committing the generated files because I don't like a build dependency for the sh(1) tests, and they are small and will not change much.
* sh: Fix bug in assignment error test.jilles2010-05-091-2/+2
| | | | | The test failed if the command returned nonzero exit status, and it really should return that.
* sh: Apply locale vars on builtins, recognize LC_MESSAGES as a locale var.jilles2010-05-051-0/+133
| | | | | | | | | | | | | | | | This allows doing things like LC_ALL=C some_builtin to run a builtin under a different locale, just like is possible with external programs. The immediate reason is that this allows making printf(1) a builtin without breaking things like LC_NUMERIC=C printf '%f\n' 1.2 This change also affects special builtins, as even though the assignment is persistent, the export is only to the builtin (unless the variable was already exported). Note: for this to work for builtins that also exist as external programs such as /bin/test, the setlocale() call must be under #ifndef SHELL. The shell will do the setlocale() calls which may not agree with the environment variables.
* 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
|
OpenPOWER on IntegriCloud