Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Give fstest a more unique name: pjdfstest. | pjd | 2010-08-15 | 207 | -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. | pjd | 2010-08-15 | 1 | -400/+419 |
| | |||||
* | More tests (especially for lchmod(2)), less code duplication. | pjd | 2010-08-15 | 9 | -156/+285 |
| | |||||
* | - Use loops to avoid code duplication. | pjd | 2010-08-13 | 3 | -133/+101 |
| | | | | - More tests. | ||||
* | More tests. | pjd | 2010-08-12 | 2 | -101/+63 |
| | |||||
* | Fix copy&pasted code - we want to create character device here. | pjd | 2010-08-12 | 1 | -4/+4 |
| | |||||
* | - Use loops where possible to avoid code duplication. | pjd | 2010-08-11 | 14 | -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(). | pjd | 2010-08-11 | 1 | -3/+13 |
| | |||||
* | More and more tests. | pjd | 2010-08-11 | 8 | -626/+583 |
| | |||||
* | Move create_file() to misc.sh, as it is going to be used in more places. | pjd | 2010-08-11 | 1 | -0/+35 |
| | |||||
* | Make use of recently added dirgen_max() and namegen_max() to implement | pjd | 2010-08-11 | 26 | -266/+356 |
| | | | | ENAMETOOLONG checks. | ||||
* | Instead of hardcoding {NAME_MAX} as 255 and {PATH_MAX} as 1024 obtain those from | pjd | 2010-08-11 | 1 | -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. | pjd | 2010-08-10 | 12 | -217/+666 |
| | |||||
* | Fix file system type detection on Solaris. | pjd | 2010-08-09 | 1 | -1/+1 |
| | |||||
* | Small tweaks. | pjd | 2010-08-09 | 2 | -8/+8 |
| | |||||
* | No need to use grep to check if path start with /. | pjd | 2010-08-09 | 1 | -4/+6 |
| | | | | Suggested by: ed | ||||
* | Various cleanups, mostly to make the test work on FreeBSD/ZFS. | pjd | 2010-08-06 | 48 | -904/+1253 |
| | |||||
* | ${GREP} can only be used after loading 'conf'. | pjd | 2010-08-06 | 1 | -1/+1 |
| | |||||
* | Don't use egrep directly - use ${GREP}. | pjd | 2010-08-06 | 1 | -3/+3 |
| | |||||
* | Check first todo() argument against operating system name and operating system | pjd | 2010-08-06 | 1 | -2/+1 |
| | | | | name plus file system name. | ||||
* | For FreeBSD and Linux use awk's toupper() function. | pjd | 2010-08-06 | 1 | -2/+2 |
| | | | | Suggested by: ed | ||||
* | Convert file system type to upper case. | pjd | 2010-08-06 | 1 | -2/+2 |
| | |||||
* | Add tests for mknod(2). | pjd | 2010-08-06 | 12 | -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. | pjd | 2010-08-06 | 1 | -0/+17 |
| | |||||
* | Test for EACCES also when opening FIFO or directory. | pjd | 2010-08-06 | 1 | -26/+124 |
| | |||||
* | Test O_RDONLY|O_RDWR flags as potentially invalid. | pjd | 2010-08-06 | 1 | -1/+2 |
| | |||||
* | Make description readable. | pjd | 2010-08-06 | 1 | -1/+1 |
| | |||||
* | Fix a case where rename actually succeeds, which is also expected behaviour | pjd | 2009-10-20 | 1 | -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. | trasz | 2009-09-07 | 7 | -0/+676 |
| | |||||
* | Be more Solaris-friendly. | pjd | 2009-01-16 | 2 | -4/+8 |
| | | | | Submitted by: Milan Cermak <Milan.Cermak@Sun.COM> | ||||
* | This actually works on Linux, I just had wrong directory permission. | pjd | 2008-11-24 | 1 | -4/+0 |
| | | | | Found by: trasz | ||||
* | Include TODO messages even if tests succeeds, so we can detect when something | pjd | 2008-11-24 | 1 | -6/+18 |
| | | | | suddenly started to work. | ||||
* | Mark all the places where Linux is not POSIX-compilant. Tested on ext3. | pjd | 2008-11-23 | 3 | -0/+8 |
| | |||||
* | fstest for Linux: | pjd | 2008-11-23 | 9 | -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: | pjd | 2008-11-23 | 1 | -2/+26 |
| | | | | Automatically detect file system type. | ||||
* | FreeBSD's way of handling rmdir("..") is not POSIX-compilant. | pjd | 2008-11-23 | 1 | -9/+3 |
| | |||||
* | Shorter version. | pjd | 2008-11-23 | 1 | -14/+4 |
| | |||||
* | fstest for Linux: | pjd | 2008-11-23 | 1 | -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). | pjd | 2008-11-22 | 14 | -88/+136 |
| | |||||
* | Make test for write access to the directory being moved a little more | trasz | 2008-11-07 | 1 | -5/+9 |
| | | | | | | specific. Approved by: rwatson (mentor) | ||||
* | Improve output when a test fails. | trasz | 2008-11-07 | 1 | -2/+2 |
| | | | | Approved by: rwatson (mentor) | ||||
* | Change ZFS behaviour to match UFS: when moving (rename(2)) a subdirectory | trasz | 2008-11-06 | 1 | -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: | pjd | 2007-07-18 | 2 | -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' | pjd | 2007-01-25 | 3 | -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 if | pjd | 2007-01-25 | 1 | -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. | pjd | 2007-01-17 | 186 | -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 |