summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* sh: Allow running 'prove' from tools/regression/bin/sh againjilles2010-10-151-5/+1
| | | | | without needing to set special environment variables, testing the 'sh' from PATH.
* Embellish this testcase a little bit to be more clear what the output isobrien2010-10-142-0/+18
| | | | | | and why. The first case is correct usage which has but one correct output. The 2nd and 3rd cases are incorrect usage in which the exact output is not standardized and various shells give various allowable output.
* Do not assume in growstackstr() that a "precious" character will beobrien2010-10-131-0/+15
| | | | | | | | | | | | | | | | immediately written into the stack after the call. Instead let the caller manage the "space left". Previously, growstackstr()'s assumption causes problems with STACKSTRNUL() where we want to be able to turn a stack into a C string, and later pretend the NUL is not there. This fixes a bug in STACKSTRNUL() (that grew the stack) where: 1. STADJUST() called after a STACKSTRNUL() results in an improper adjust. This can be seen in ${var%pattern} and ${var%%pattern} evaluation. 2. Memory leak in STPUTC() called after a STACKSTRNUL(). Reviewed by: jilles
* Allow one to regression test 'sh' changes without having to installobrien2010-10-1228-82/+97
| | | | a potentially bad /bin/sh first.
* Correct regression test to not show a false positive when run as root.obrien2010-10-111-6/+9
|
* Don't blow away /bin/rmail symlink if we are keeping mailwrapper.markm2010-10-081-0/+2
| | | | | Mailwrapper can provide a perfectly good rmail with other mailers.
* Clean up tools in tools/tools/netrate.pluknet2010-10-082-6/+11
| | | | | | | | | | | | | - tcpconnect incorrectly uses err() in usage() with errx() semantics [1] That produces dirty error message: tcpconnect: usage: tcpconnect [ip]: Unknown error: 0 - 64-bit aware fixes in printf() usage [2] o netrate/juggle: time_t has arch-dependent size o netrate/tcpconnect: don't assume %ll has always 64bit. PR: 146088 [1], 146086 [2] (modified) Approved by: kib (mentor) MFC after: 1 week
* Add some missing files to optionally delete.netchild2010-10-061-0/+27
| | | | Submitted by: Paul B Mahol <onemda@gmail.com>
* - Add WITH_GPIO entry to src.conf(5) man pagegonzo2010-10-051-0/+2
|
* Change the output of mctest to give a summary of the results insteadgnn2010-10-012-13/+34
| | | | | | | | | | | | of printing a long list. Add a default base port, and default mulitcast address to the runner script. Add support for specifying a different local and remote interface in the runner script. MFC after: 1 week
* - simplify by using one build scriptmr2010-10-018-678/+32
| | | | | | - use label for mounting - use GENERIC kernel - create empty Pkg directory
* tr: Fix '[=]=]' equivalence class.jilles2010-09-293-1/+5
| | | | | | | | | | | A closing bracket immediately after '[=' should not be treated as special. Different from the submitted patch, a string ending with '[=' does not cause access beyond the terminating '\0'. PR: bin/150384 Submitted by: Richard Lowe MFC after: 2 weeks
* Correct message.pjd2010-09-271-1/+1
| | | | | Pointed out by: jhb MFC after: 2 weeks
* Add some regression tests for newly added -J and -j options.pjd2010-09-251-0/+126
| | | | MFC after: 2 weeks
* Don't hardcode md0 in message, use $md instead.pjd2010-09-251-1/+1
| | | | Reported by: Ronald Klop <ronald-freebsd8@klop.yi.org>
* Don't leave zombies behind.trasz2010-09-251-0/+2
|
* Add a shell script to generate a test script for trivial ACLs.trasz2010-09-251-0/+53
|
* Update regression tests after AES-XTS addition.pjd2010-09-257-21/+70
| | | | MFC after: 2 weeks
* - Use $md instead of md0, which fixes tests when md(4) device is alreadypjd2010-09-251-2/+2
| | | | | | | present. - Correct message - we create GPT, not MBR. MFC after: 2 weeks
* Add test cases for stack unwinding.davidxu2010-09-258-0/+265
|
* Make the labels match the device name that's mounted, not just theimp2010-09-221-2/+4
| | | | | | | | | | slice they are on. When NANO_LABEL is not defined, the fstab generates entries that specify /dev/ad0s1a. When NANO_LABEL is defined, it generates /dev/usb/${NANO_LABEL}s1a. The prior code created the file system with a label of ${NANO_LABEL}s1, leading to problems on boot. Pointy hat to: imp@
* tools/umastat: more cleanupsavg2010-09-211-3/+5
| | | | | | PR: misc/146119 Submitted by: pluknet <pluknet@gmail.com> MFC after: 1 week
* Support new variable NANO_LABEL. When set to a non-null string,imp2010-09-201-16/+37
| | | | | | | | | nanobsd will build a system that uses this label (via /dev/ufs/${NANO_LABEL}sX) in preference to NANO_DRIVE (well, it forces NANO_DRIVE to be ufs/${NANO_LABEL}). This allows images that will boot off usb stick or CF card easily well. There is no change if you don't set this variable.
* Add a geli resize subcommand to resize encrypted filesystems priorbrian2010-09-201-0/+149
| | | | | | | | | | | | | | | to growing the filesystem. Refuse to attach providers where the metadata provider size is wrong. This makes post-boot attaches behave consistently with pre-boot attaches. Also refuse to restore metadata to a provider of the wrong size without the new -f switch. The new -f switch forces the metadata restoration despite the provider size, and updates the provider size in the restored metadata to the correct value. Helped by: pjd Reviewed by: pjd
* tools/umastat: fix build on amd64avg2010-09-201-8/+8
| | | | | | | And perhaps other 64-bit platforms. Submitted by: Fabian Keil <freebsd-listen@fabiankeil.de> MFC after: 1 week
* Revise r197763 which fixes filesystem corruption when extendingbrian2010-09-193-0/+102
| | | | | | | | | | | | into un-zeroed storage. The original patch was questioned by Kirk as it forces the filesystem to do excessive work initialising inodes on first use, and was never MFC'd. This change mimics the newfs(8) approach of zeroing two blocks of inodes for each new cylinder group. Reviewed by: mckusick MFC after: 3 weeks
* sh: Fix exit status if return is used within a loop condition.jilles2010-09-112-0/+9
|
* sh: Apply variable assignments left-to-right in bltinlookup().jilles2010-09-111-0/+3
| | | | | Example: HOME=foo HOME=bar cd
* sh: Fix 'read' if all chars before the first IFS char are backslash-escaped.jilles2010-09-082-0/+18
| | | | | | Backslash-escaped characters did not set the flag for a non-IFS character. MFC after: 2 weeks
* sh: Add simple tests for backslashes in the read builtin.jilles2010-09-082-0/+20
|
* sh: Add a test that 'read' leaves the file pointer at the correct place.jilles2010-09-031-0/+31
| | | | | Naive buffering would break the common while read x... construct, which did not appear to be tested yet.
* We need to copy the ports config files before we launch the prefetchphk2010-09-031-3/+3
|
* Allow / in the NANO_DEVICEimp2010-09-031-1/+1
| | | | | PR: 149729 Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org>
* sh: Weaken builtins/command4 test to only require a nonzero exit status.jilles2010-08-292-2/+2
| | | | | | | This matches what is in POSIX; various other shells use different exit statuses. Note that it is still required that there be no output.
* Add a Makefile for tools/regression/bin and support 'all' inbrian2010-08-292-1/+6
| | | | | | pax/Makefile. MFC after: 3 weeks
* Correct an out-by-one error when earlying out ustar filenames thatbrian2010-08-292-0/+99
| | | | | | | | | | | | | are too long. Filenames escaping this test are caught later on, so the bug doesn't cause any breakage. Document the correct ustar limitations in pax. As I have no access to the IEEE 1003.2 spec, I can only assume that the limitations imposed are in fact correct. Add regression tests for the filename limitations imposed by pax. MFC after: 3 weeks
* Test the poll(2) return value.kib2010-08-281-33/+52
| | | | MFC after: 2 weeks
* - Change default grep back to GNU version. BSD grep can be built with thegabor2010-08-232-2/+2
| | | | | | | | WITH_BSD_GREP knob. - Bump __FreeBSD_version Requested by: dougb Approved by: delphij (mentor)
* sh: Remove remnants of '!!' to negate pattern.jilles2010-08-221-0/+28
| | | | | | | | This Almquist extension was disabled long ago. In pathname generation, components starting with '!!' were treated as containing wildcards, causing unnecessary readdir (which could fail, causing pathname generation to fail while it should not).
* sh: Test that all bytes from 128 to 255 can be used in IFS.jilles2010-08-221-0/+21
| | | | | | To avoid multibyte issues, this test forces ISO8859-1 charset. This also passes on stable/8.
* sh: Add a test for breaking from a loop outside the current function.jilles2010-08-221-0/+15
| | | | It is unwise to rely on this but I'd like to know if this would break.
* Update for the new tests.rpaulo2010-08-211-263/+199
| | | | Sponsored by: The FreeBSD Foundation
* More tests.pjd2010-08-1815-135/+120
|
* sh: Add a test for break from a trap action.jilles2010-08-182-0/+13
|
* Add simple test to check the functioning of retrieval ofkib2010-08-172-0/+65
| | | | | | | | pagesize()/pagesizes() after change to use aux vector. Note that public function getosreldate() is different from libc-internal __getosreldate() and does not use aux to fetch osreldate value. MFC after: 1 month
* More tests, especially for lchown(2).pjd2010-08-176-13/+54
|
* sh: Reduce unnecessary testsuite failures with other shells.jilles2010-08-164-6/+6
|
* sh: Split off a more dubious test from parser/heredoc2.0.jilles2010-08-162-5/+20
|
* sh: Get rid of unnecessary non-standard empty lists.jilles2010-08-1610-0/+12
| | | | | | | | POSIX does not allow constructs like: if cmd; then fi { } Add a colon dummy command, except in a test that verifies that such empty lists do not cause crashes when used as a function definition.
* Finish renaming fstest to pjdfstest.pjd2010-08-156-11/+11
|
OpenPOWER on IntegriCloud