summaryrefslogtreecommitdiff
path: root/contrib/netbsd-tests/fs/tmpfs
Commit message (Collapse)AuthorAgeFilesLines
* Revert r249362, atime update in tmpfs is fixed in r365810Li-Wen Hsu2020-09-171-8/+0
| | | | | | | | PR: 249362 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=365831
* Temporarily skip sys.fs.tmpfs.times_test.{empty,non_empty} in CILi-Wen Hsu2020-09-161-0/+8
| | | | | | | | PR: 249362 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=365793
* sys/fs/tmpfs/vnd_test: make md(4) allocation dynamicEnji Cooper2017-05-191-17/+16
| | | | | | | | | | | | | | | | | | | | | The previous logic was flawed in the sense that it assumed that /dev/md3 was always available. This was a caveat I noted in r306038, that I hadn't gotten around to solving before now. Cache the device for the mountpoint after executing mdmfs, then use the cached value in basic_cleanup(..) when unmounting/disconnecting the md(4) device. Apply sed expressions to use reuse logic in the NetBSD code that could also be applied to FreeBSD, just with different tools. Differential Revision: D10766 MFC after: 1 week Reviewed by: bdrewery Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318546
* Use _SED instead of hacking tests rewriting mknod ... p as mkfifoEnji Cooper2017-01-161-16/+0
| | | | | | | Similar to r312297 Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312298
* Use _SED to rewrite mknod ... p command as mkfifo instead ofEnji Cooper2017-01-161-8/+0
| | | | | | | adding an unnecessary diff to the test Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312297
* Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123Enji Cooper2017-01-141-2/+2
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312126
* Redo fix for CID 979581Enji Cooper2017-01-051-4/+6
| | | | | | | | | | | | | | | | | | The previous change was flawed in terms of how it calculated the buffer length for the sockaddr_un object. Use SUN_LEN where appropriate and mute the Coverity complaint by using memset(.., 0, ..) to zero out the entire structure instead of setting .sun_len to a bogus value and strlcpy'ing in the contents of argv[1]. SUN_LEN is now being passed to bind(2) as well. For some odd reason this wasn't flagged as a bug with Coverity. Reported by: jilles, jmallett MFC after: 2 days X-MFC with: r311233 Notes: svn path=/head/; revision=311377
* Fix Coverity issuesEnji Cooper2017-01-041-1/+8
| | | | | | | | | | | | - Initialize .sun_len before passing it to strlcpy and bind. - Close fd on error MFC after: 3 days Reported by: Coverity CID: 978283, 979581 Notes: svn path=/head/; revision=311233
* Use _test_unmount instead of test_unmount in cleanup to avoidEnji Cooper2016-12-092-2/+2
| | | | | | | | | false positives with atf_check when tmpfs is not loaded, etc MFC after: 1 week Notes: svn path=/head/; revision=309780
* - Ignore errors from umountEnji Cooper2016-12-091-1/+2
| | | | | | | | | - Use _test_unmount instead of test_unmount in cleanup MFC after: 1 week Notes: svn path=/head/; revision=309779
* Make test_unmount usable in cleanup subroutinesEnji Cooper2016-12-091-0/+19
| | | | | | | | | | | | | - Duplicate test_unmount to _test_unmount - Remove atf_check calls - Call _test_unmount from test_unmount, checking the exit code at the end, and returning it to maintain the test_unmount "contract" MFC after: 1 week Notes: svn path=/head/; revision=309778
* Only run mdconfig -d -u 3 if /dev/md3 exists on the systemEnji Cooper2016-12-091-1/+1
| | | | | | | | | | This will prevent "cleanup failures" (exit code != 0 returned) when tmpfs is not loaded MFC after: 1 week Notes: svn path=/head/; revision=309774
* Expect tests/sys/fs/tmpfs/link_test:kqueue to failEnji Cooper2016-10-211-0/+15
| | | | | | | | | | | | | It fails with: "dir/b did not receive NOTE_LINK" Also, add needed cleanup logic to cleanup the mountpoint after the fact MFC after: 2 weeks PR: 213662 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=307701
* Change atf_skip call to atf_expect_fail to make it clear that a failure isEnji Cooper2016-10-131-1/+12
| | | | | | | | | | | | expected MFC after: 2 weeks PR: 212861 Suggested by: jmmv Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=307205
* Expect :large to fail on FreeBSDEnji Cooper2016-10-131-0/+15
| | | | | | | | | | | | FreeBSD doesn't appear to validate large -o size values like NetBSD does MFC after: 2 weeks PR: 212862 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=307204
* Port contrib/netbsd-tests/fs/tmpfs/h_tools.c to FreeBSDEnji Cooper2016-10-131-0/+13
| | | | | | | | | | | | | - Add inttypes.h #include for PRId64 macro - Use FreeBSD's copy of getfh(2), which doesn't include a `fh_size` parameter. Use sizeof(fhandle_t) instead as the size of fhp is always fixed as fhandle_t, unlike NetBSD's copy of fhp, which is void*. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=307196
* Skip :uchg on FreeBSDEnji Cooper2016-10-131-0/+4
| | | | | | | | | | | | Unfortunately removing files with uchg set always succeeds with root on FreeBSD. Unfortunately running the test as an unprivileged user isn't doable because mounting tmpfs requires root PR: 212861 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=307190
* Port vnd_test to FreeBSDEnji Cooper2016-09-201-0/+25
| | | | | | | | | | | | | Use mdmfs/mdconfig instead of vndconfig/newfs. vndconfig doesn't exist on FreeBSD. TODO: need to parameterize out the md(4) device as it's currently hardcoded to "3" (in both the FreeBSD and NetBSD cases). MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=306038
* Port to mknod_test and readdir_test to FreeBSDEnji Cooper2016-09-202-0/+24
| | | | | | | | | | | The `mknod <file> p` command doesn't exist on FreeBSD, like on NetBSD. Use mkfifo instead to create named pipes (FIFOs). MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=306036
* Port sizes_test and statvfs_test to FreeBSDEnji Cooper2016-09-202-0/+16
| | | | | | | | | | | | Similar to r306030, use a simpler method for getting the value of `hw.pagesize`, i.e. `sysctl -n hw.pagesize`. The awk filtering method doesn't work on FreeBSD MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=306033
* Port vnode_leak_test:main to FreeBSDEnji Cooper2016-09-201-0/+8
| | | | | | | | | | | | Use a simpler way of dumping kern.maxvnodes, i.e. `sysctl -n kern.maxvnodes` The awk filtering method employed in NetBSD doesn't work on FreeBSD MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=306030
* Checkpoint initial integration workEnji Cooper2016-08-121-4/+4
| | | | | | | | | | | | - Some of the lib/libc and lib/thr tests fail - lib/msun/exp_test:exp2_values now passes with clang 3.8.0 The Makefiles in contrib/netbsd-tests were pruned as they have no value Sponsored by: EMC / Isilon Storage Division Notes: svn path=/projects/netbsd-tests-update-12/; revision=304003
* Import the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 ,Enji Cooper2014-10-0228-0/+3205
minus the vendor Makefiles Provide directions for how to bootstrap the vendor sources in FREEBSD-upgrade MFC after 2 weeks Discussed with: rpaulo Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=272458