summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* - 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
|
* 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
|
OpenPOWER on IntegriCloud