summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* Give fstest a more unique name: pjdfstest.pjd2010-08-15211-0/+0
| | | | | It is released from time to time and used outside FreeBSD, so it is good to have a name one can google.
* Update copyright years.pjd2010-08-152-2/+2
|
* More tests.pjd2010-08-151-400/+419
|
* sh: Fix break/continue/return sometimes not skipping the rest of dot script.jilles2010-08-152-0/+33
| | | | | | | | | | | | | In our implementation and most others, a break or continue in a dot script can break or continue a loop outside the dot script. This should cause all further commands in the dot script to be skipped. However, cmdloop() did not know about this and continued to parse and execute commands from the dot script. As described in the man page, a return in a dot script in a function returns from the function, not only from the dot script. There was a similar issue as with break and continue. In various other shells, the return appears to return from the dot script, but POSIX seems not very clear about this.
* sh: Test that all bytes from 1 to 127 can be used in IFS.jilles2010-08-151-0/+24
| | | | This also passes on stable/8.
* More tests (especially for lchmod(2)), less code duplication.pjd2010-08-159-156/+285
|
* - Use loops to avoid code duplication.pjd2010-08-133-133/+101
| | | | - More tests.
* More tests.pjd2010-08-122-101/+63
|
* Portable Makefile.pjd2010-08-121-20/+21
|
* Fix copy&pasted code - we want to create character device here.pjd2010-08-121-4/+4
|
* - Use loops where possible to avoid code duplication.pjd2010-08-1114-733/+208
| | | | | - Don't pass uid and gid to create_file() if not needed. - More tests.
* Allow to specify uid, gid and mode for create_file().pjd2010-08-111-3/+13
|
* Consistently set us to be SPC3 for our inquiry data.mjacob2010-08-112-18/+73
| | | | | | | | | For mptest, add delays to I/O that simulate real disks better. This also allows us to simulate what happens when a device goes away with active transactions. It's pretty spectacular. Sponsored by: Panasas MFC after: 1 month
* More and more tests.pjd2010-08-118-626/+583
|
* Move create_file() to misc.sh, as it is going to be used in more places.pjd2010-08-111-0/+35
|
* Make use of recently added dirgen_max() and namegen_max() to implementpjd2010-08-1126-266/+356
| | | | ENAMETOOLONG checks.
* Instead of hardcoding {NAME_MAX} as 255 and {PATH_MAX} as 1024 obtain those frompjd2010-08-111-7/+46
| | | | | pathconf(2) and properly generate too long file names. This should fix ENAMETOOLONG checks on Linux.
* More tests, mostly related to devices and sockets.pjd2010-08-1012-217/+666
|
* sh: Fix heap-based buffer overflow in pathname generation.jilles2010-08-101-0/+29
| | | | | | | | | | | | | | The buffer for generated pathnames could be too small in some cases. It happened to be always at least PATH_MAX long, so there was never an overflow if the resulting pathnames would be usable. This bug may be abused if a script subjects input from an untrusted source to pathname generation, which a bad idea anyhow. Most shell scripts do not work on untrusted data. secteam@ says no advisory is necessary. PR: bin/148733 Reported by: Changming Sun snnn119 at gmail com MFC after: 10 days
* Linux has no strlcpy().pjd2010-08-091-2/+4
|
* Fix bind(2) and connect(2) support on Solaris.pjd2010-08-091-10/+8
|
* Fix file system type detection on Solaris.pjd2010-08-091-1/+1
|
* Small tweaks.pjd2010-08-092-8/+8
|
* No need to use grep to check if path start with /.pjd2010-08-091-4/+6
| | | | Suggested by: ed
* Add a multipath oriented test.mjacob2010-08-093-1/+436
|
* sh: Add more testcases for ${var:-word}.jilles2010-08-081-0/+38
| | | | | | Whether POSIX requires these is unclear. They pass with 8-stable sh as well.
* Various cleanups, mostly to make the test work on FreeBSD/ZFS.pjd2010-08-0648-904/+1253
|
* ${GREP} can only be used after loading 'conf'.pjd2010-08-061-1/+1
|
* Don't use egrep directly - use ${GREP}.pjd2010-08-061-3/+3
|
* Check first todo() argument against operating system name and operating systempjd2010-08-061-2/+1
| | | | name plus file system name.
* For FreeBSD and Linux use awk's toupper() function.pjd2010-08-061-2/+2
| | | | Suggested by: ed
* Convert file system type to upper case.pjd2010-08-061-2/+2
|
* Add tests for mknod(2).pjd2010-08-0612-0/+408
| | | | | | Submitted by: Jan Senolt <senoltj@centrum.cz> Submitted by: Milan Cermak <Milan.Cermak@Sun.COM> Polished by: pjd
* Add mknod(2) support.pjd2010-08-061-0/+33
| | | | | Submitted by: Jan Senolt <senoltj@centrum.cz> Submitted by: Milan Cermak <Milan.Cermak@Sun.COM>
* Sort includes.pjd2010-08-061-6/+7
|
* open(2) returns EOPNOTSUPP when trying to open a socket.pjd2010-08-061-0/+17
|
* Test for EACCES also when opening FIFO or directory.pjd2010-08-061-26/+124
|
* Test O_RDONLY|O_RDWR flags as potentially invalid.pjd2010-08-061-1/+2
|
* Make description readable.pjd2010-08-061-1/+1
|
* Add missing -U argument to usage.pjd2010-08-061-1/+1
|
* Implement two new syscalls: bind(2) and connect(2) for operating on UNIXpjd2010-08-061-0/+32
| | | | domain sockets.
* sh: Return 0 from eval if no command was given.jilles2010-08-031-0/+4
| | | | | | | | | | | This makes a difference if there is a command substitution. To make this work, evalstring() has been changed to set exitstatus to 0 if no command was executed (the string contained only whitespace). Example: eval $(false); echo $? should print 0.
* sh: Add a test for a corner case in eval that already works correctly.jilles2010-08-011-0/+5
|
* Fix a couple of typos.uqs2010-07-301-2/+2
| | | | | | PR: docs/148891 Submitted by: olgeni MFC after: 1 week
* sh: Fix crash due to uninitialized here-document.jilles2010-07-251-0/+19
| | | | | | | | | | | | | | | If an ; or & token was followed by an EOF token, pending here-documents were left uninitialized. Execution would crash, either in the main shell process for literal here-documents or in a child process for expanded here-documents. In the latter case the problem is hard to detect apart from the core dumps and log messages. Side effect: slightly different retries on inputs where EOF is not persistent. Note that tools/regression/bin/sh/parser/heredoc6.0 still causes a similar crash in a child process. The text passed to eval is malformed and should be rejected.
* Add BSD grep to the base system and make it our default grep.gabor2010-07-222-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Deliverables: Small and clean code (1,4 KSLOC vs GNU's 8,5 KSLOC), lower memory usage than GNU grep, GNU compatibility, BSD license. TODO: Performance is somewhat behind GNU grep but it is only significant for bigger searches. The reason is complex, the most important factor is that GNU grep uses lots of optimizations to improve the speed of the regex library. First, we need a modern regex library (practically by adopting TRE), add support for GNU-style non-standard regexes and then reevalute the performance issues and look for bottlenecks. In the meantime, for those, who need better performance, it is possible to build GNU grep by setting WITH_GNU_GREP. Approved by: delphij (mentor) Obtained from: OpenBSD (http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/grep/), freegrep (http://github.com/howardjp/freegrep) Sponsored by: Google SoC 2008 Portbuild tests run by: kris, pav, erwin Acknowledgements to: fjoe (as SoC 2008 mentor), everyone who helped in reviewing and testing
* Hook newsyslog regression tests to the Makefile 'build'.simon2010-07-221-1/+1
| | | | MFC after: 3 weeks
* Add regression tests for newsyslog. These are far from a completesimon2010-07-223-0/+343
| | | | | | | | | | | | | | test of newsyslog, as they were mainly made to test 'newsyslog -t', but they do test the basic functionality. The test 'framework' was based on dds@'s code in src/tools/regression/bin/mv/. Note that currently these tests are not fully correct for the non-timestamp based rotation case, as it seems like newsyslog actually by default keeps a file too much around. MFC after: 3 weeks
* Chase LLVM version bump to 2.8.ed2010-07-211-6/+6
|
* sh: Allow a background command consisting solely of redirections.jilles2010-07-181-0/+3
| | | | | | | Example: </dev/null & MFC after: 2 weeks
OpenPOWER on IntegriCloud