summaryrefslogtreecommitdiffstats
path: root/tools/regression/fstest/tests
Commit message (Collapse)AuthorAgeFilesLines
* Give fstest a more unique name: pjdfstest.pjd2010-08-15207-8812/+0
| | | | | It is released from time to time and used outside FreeBSD, so it is good to have a name one can google.
* More tests.pjd2010-08-151-400/+419
|
* 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
|
* 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
|
* 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
|
* 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
* 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
* 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
|
* Fix a case where rename actually succeeds, which is also expected behaviourpjd2009-10-201-2/+3
| | | | | | according to POSIX. This fixes ZFS on Solaris testing. Submitted by: Milan Cermak <Milan.Cermak@Sun.COM>
* Add regression tests for NFSv4 ACL granular permission enforcement.trasz2009-09-077-0/+676
|
* Be more Solaris-friendly.pjd2009-01-162-4/+8
| | | | Submitted by: Milan Cermak <Milan.Cermak@Sun.COM>
* This actually works on Linux, I just had wrong directory permission.pjd2008-11-241-4/+0
| | | | Found by: trasz
* Include TODO messages even if tests succeeds, so we can detect when somethingpjd2008-11-241-6/+18
| | | | suddenly started to work.
* Mark all the places where Linux is not POSIX-compilant. Tested on ext3.pjd2008-11-233-0/+8
|
* fstest for Linux:pjd2008-11-239-56/+53
| | | | | | | - Use -- when needed so Linux getopt(3) won't get confused. - Follow POSIX more closely. Submitted by: Szabolcs Szakacsits <szaka@ntfs-3g.org>
* fstest for Linux:pjd2008-11-231-2/+26
| | | | Automatically detect file system type.
* FreeBSD's way of handling rmdir("..") is not POSIX-compilant.pjd2008-11-231-9/+3
|
* Shorter version.pjd2008-11-231-14/+4
|
* fstest for Linux:pjd2008-11-231-4/+27
| | | | | - Use /dev/urandom, it is more portable. - Implement todo() function which allows to mark known failures.
* IFp4: Regression tests for FreeBSD/ZFS chflags(2)/lchflags(2).pjd2008-11-2214-88/+136
|
* Make test for write access to the directory being moved a little moretrasz2008-11-071-5/+9
| | | | | | specific. Approved by: rwatson (mentor)
* Improve output when a test fails.trasz2008-11-071-2/+2
| | | | Approved by: rwatson (mentor)
* Change ZFS behaviour to match UFS: when moving (rename(2)) a subdirectorytrasz2008-11-061-0/+38
| | | | | | | from one parent directory to another, in addition to the usual access checks one also needs write access to the subdirectory being moved. Approved by: rwatson (mentor), pjd
* Make fstest work out-of-the-box on Solaris:pjd2007-07-182-13/+30
| | | | | | | | | | - Solaris' setgroups(2) doesn't change process' effective gid, so set it explicitly. - POSIX doesn't define O_NOFOLLOW. FreeBSD returns EMLINK when target is a symbolic link, but Solaris returns ELOOP then. - Solaris doesn't define O_SHLOCK and O_EXLOCK flags. Approved by: re (rwatson)
* MFp4: - When new object is created, it's group ID can be set to process'pjd2007-01-253-7/+39
| | | | | | effective group ID or to group ID of its parent directory. - Add some comments from POSIX. - Verify that after successful O_TRUNC open, size is equal to 0.
* MFp4: When user is not a member of the group which owns a file, even ifpjd2007-01-251-2/+2
| | | | | | he is the file's owner, he can't set set-gid bit. POSIX requires to return 0 and clear the bit, but FreeBSD returns EPERM for UFS in such case. For now do the same in ZFS.
* Add 3436 file system regression tests in 184 files.pjd2007-01-17186-0/+6941
Almost all regression tests are based on very flexible fstest tool. They verify correctness (POSIX conformance) of almost all file system-related system calls. The motivation behind this work is my ZFS port and POSIX, who doesn't provide free test suites. Runs on: FreeBSD/UFS, FreeBSD/ZFS, Solaris/UFS, Solaris/ZFS To try it out: # cd fstest # make # find tests/* -type d | xargs prove
OpenPOWER on IntegriCloud