Commit Graph

124 Commits (4ee1cf7f62f0f224d1ec7728dabe333577dee3aa)

Author SHA1 Message Date
Aaron Jacobs 0e7e9c3f78 Added a memfs test for a large file.
To help investigate googlecloudplatform/gcsfuse#27.
2015-03-26 15:54:17 +11:00
Aaron Jacobs a361e12cab Updated memfs_test. 2015-03-24 16:25:26 +11:00
Aaron Jacobs 8f8b5c9c44 Converted memfs_test. 2015-03-20 11:11:20 +11:00
Aaron Jacobs 8d0ce150a0 Updated import paths after the repo move. 2015-03-19 12:39:47 +11:00
Aaron Jacobs cd4980bf7d Uncommented unlink tests. 2015-03-18 14:14:46 +11:00
Aaron Jacobs 6baf50c6d4 Removed an out of date TODO. 2015-03-17 16:37:48 +11:00
Aaron Jacobs c713695871 Fixed broken tests using Mount. 2015-03-17 15:27:40 +11:00
Aaron Jacobs 2d10e03395 Switched import paths to the bazilfuse fork. 2015-03-17 15:03:11 +11:00
Aaron Jacobs 920a7445eb Fixed some accidental Jello. 2015-03-16 14:04:03 +11:00
Aaron Jacobs d6218a3538 Updated pwrite tests for Linux. 2015-03-16 14:02:54 +11:00
Aaron Jacobs b064d6b33f Revised "rmdir while open for reading" tests for Linux's behavior. 2015-03-16 13:56:21 +11:00
Aaron Jacobs bc46008754 Mount memfs with the default_permissions option.
This is necessary on Linux to make MemFSTest.Mkdir_PermissionDenied
pass, for the reasons outlined in commit e31cb17. I don't quite
understand why it doesn't come up on OS X.
2015-03-16 13:41:01 +11:00
Aaron Jacobs 3181e6495b Be explicit about ownership info for memfs. 2015-03-16 13:27:41 +11:00
Aaron Jacobs 6aaf89f972 Fixed MemFSTest.Chtimes.
Linux apparently doesn't like setting atime to time.Time{}.
2015-03-16 13:03:15 +11:00
Aaron Jacobs e4005a4fb9 Removed applyUmask where it doesn't apply. 2015-03-16 13:00:11 +11:00
Aaron Jacobs 84fe345196 Defined applyUmask. 2015-03-16 13:00:01 +11:00
Aaron Jacobs 2d607d4b3d Declared an applyUmask helper. 2015-03-16 12:55:51 +11:00
Aaron Jacobs 3b5a04f79d Use the new matchers. 2015-03-16 12:42:02 +11:00
Aaron Jacobs c1d117ad7f Fixed some test bugs. 2015-03-06 23:33:59 -06:00
Aaron Jacobs 5f1b960b2e Disabled a test that can't pass. 2015-03-06 23:32:26 -06:00
Aaron Jacobs df6feb98c5 MemFSTest.ReadDirWhileModifying 2015-03-06 23:18:30 -06:00
Aaron Jacobs b53eac308c Deleted a redundant test. 2015-03-06 22:35:57 -06:00
Aaron Jacobs c9cd78eef2 MemFSTest.UnlinkFile_StillOpen 2015-03-06 22:31:44 -06:00
Aaron Jacobs e8c884f82b MemFSTest.UnlinkFile_NonExistent 2015-03-06 22:22:46 -06:00
Aaron Jacobs 005e43cd24 MemFSTest.UnlinkFile_Exists 2015-03-06 22:19:52 -06:00
Aaron Jacobs 52f2e5fec5 MemFSTest.ModifyExistingFile_InSubDir 2015-03-06 22:18:05 -06:00
Aaron Jacobs bf0b773894 Added a test name. 2015-03-06 06:10:43 +11:00
Aaron Jacobs a7d2944d2e Support changing mtime. 2015-03-06 06:04:51 +11:00
Aaron Jacobs 76ac5cc264 MemFSTest.Chtimes 2015-03-06 06:02:43 +11:00
Aaron Jacobs c4de915491 MemFSTest.Chmod 2015-03-06 05:59:06 +11:00
Aaron Jacobs 1e38634464 MemFSTest.Truncate_Larger 2015-03-06 05:56:40 +11:00
Aaron Jacobs 910d3b2f9f Oops, preserve the size invariant. 2015-03-06 05:56:12 +11:00
Aaron Jacobs 9dc1d04623 MemFSTest.Truncate_Smaller 2015-03-06 05:54:20 +11:00
Aaron Jacobs 7173c5e9fb Added some test names. 2015-03-06 05:52:08 +11:00
Aaron Jacobs 632b1e6120 Added FileSystem.SetInodeAttributes. 2015-03-06 05:45:17 +11:00
Aaron Jacobs 1828931cce Don't attempt to track ctime. 2015-03-06 05:35:44 +11:00
Aaron Jacobs 650467fedb Update mtime for mkdir and rmdir. 2015-03-06 05:35:44 +11:00
Aaron Jacobs ea53ba8488 Don't attempt to track atime. 2015-03-06 05:35:43 +11:00
Aaron Jacobs 77fee50b80 Tightened up time tests. 2015-03-06 05:35:43 +11:00
Aaron Jacobs 62bda89ca9 MemFSTest.ModifyExistingFile_InRoot 2015-03-06 05:35:43 +11:00
Aaron Jacobs 3a2b0a6de4 MemFSTest.AppendMode 2015-03-06 05:35:43 +11:00
Aaron Jacobs b8ea62986f Dumped in posix tests. 2015-03-06 05:35:43 +11:00
Aaron Jacobs 0377d675dd MemFSTest.CreateNewFile_InSubDir 2015-03-06 05:35:42 +11:00
Aaron Jacobs 87f8ec9ead MemFSTest.CreateNewFile_InRoot 2015-03-04 15:10:26 +11:00
Aaron Jacobs 9c585268b0 Performed a TODO. 2015-03-04 15:06:40 +11:00
Aaron Jacobs 1a975d9824 Declared some test names. 2015-03-04 15:03:44 +11:00
Aaron Jacobs 8fc315cf58 MemFSTest.CaseSensitive 2015-03-04 14:21:56 +11:00
Aaron Jacobs b2a8322aaa Fixed copyright notices. 2015-03-04 08:27:42 +11:00
Aaron Jacobs a956166291 Deleted MemFSTest.Rmdir_ReusesInodeID.
At least on OS X, the kernel doesn't relaibly send a Forget request
right after RmDir, even if the directory is not open. (This is contrary
to what the fuse low-level ops documentation says.) So there's no way to
reliably test this.
2015-03-03 16:14:37 +11:00
Aaron Jacobs eec88dd31a Disabled a test that cannot pass. 2015-03-03 15:15:58 +11:00
Aaron Jacobs 147be0630d Added tests for the Nlink field. 2015-03-03 15:04:49 +11:00
Aaron Jacobs 140bd18863 Fixed a silly test bug. 2015-03-03 14:54:22 +11:00
Aaron Jacobs 8d9962ee62 MemFSTest.Rmdir_OpenedForReading 2015-03-03 14:52:03 +11:00
Aaron Jacobs 2773133448 MemFSTest.Rmdir_ReusesInodeID 2015-03-03 14:43:06 +11:00
Aaron Jacobs 01371975df Check for empty in rmdir. 2015-03-03 14:39:29 +11:00
Aaron Jacobs 98f868c319 MemFSTest.Rmdir_NonEmpty 2015-03-03 14:34:28 +11:00
Aaron Jacobs ea5370d6f1 MemFSTest.Rmdir_NonExistent 2015-03-03 14:33:20 +11:00
Aaron Jacobs 9f984e1aa6 Declared a test. 2015-03-03 11:12:50 +11:00
Aaron Jacobs baffc23ee6 MemFSTest.Rmdir_Empty 2015-03-03 11:09:36 +11:00
Aaron Jacobs 832e800f3b MemFSTest.Mkdir_PermissionDenied 2015-03-03 11:08:23 +11:00
Aaron Jacobs e46341ae00 MemFSTest.Mkdir_TwoLevels 2015-03-03 11:07:24 +11:00
Aaron Jacobs f9e2e55ac8 Fixed some test bugs. 2015-03-03 10:41:30 +11:00
Aaron Jacobs 01878af39a Implemented timespecToTime. 2015-03-03 10:40:52 +11:00
Aaron Jacobs fa4c2fb864 Implemented two missing functions. 2015-03-03 10:40:04 +11:00
Aaron Jacobs 6b81f4ce58 Declared a two-level mkdir test. 2015-03-03 10:37:29 +11:00
Aaron Jacobs 605a52de92 Added better tests for statting new dirs. 2015-03-03 10:37:09 +11:00
Aaron Jacobs 17799d45a4 MemFSTest.Mkdir_IntermediateIsFile 2015-03-03 09:52:11 +11:00
Aaron Jacobs 5d63d207bb MemFSTest.Mkdir_IntermediateIsNonExistent 2015-03-03 09:50:31 +11:00
Aaron Jacobs 819d3ff73b MemFSTest.Mkdir_AlreadyExists 2015-03-03 09:49:41 +11:00
Aaron Jacobs bb1539e613 Fixed a test bug. 2015-03-03 09:42:36 +11:00
Aaron Jacobs d8355cb155 MemFSTest.Mkdir 2015-03-02 15:07:34 +11:00
Aaron Jacobs 79aa1c32d2 Added a bunch of test names. 2015-03-02 15:01:07 +11:00
Aaron Jacobs 0c265d4161 MemFSTest.ContentsOfEmptyFileSystem 2015-03-02 14:12:02 +11:00
Aaron Jacobs 9fb1bc6bff Began on a memfs test. 2015-03-02 14:11:09 +11:00