Aaron Jacobs
87a08d4388
Added some test names.
2015-03-20 11:23:15 +11:00
Aaron Jacobs
20b5ac7634
flushFS.Init
2015-03-20 11:22:16 +11:00
Aaron Jacobs
e1375f33da
NewFileSystem
2015-03-20 11:21:38 +11:00
Aaron Jacobs
2fe7597c4e
FlushFSTest.SetUp
2015-03-20 11:20:29 +11:00
Aaron Jacobs
ffa094be50
Switched to string for fool-proofness.
2015-03-20 11:18:56 +11:00
Aaron Jacobs
76f61fa467
Added a test stub.
2015-03-20 11:17:27 +11:00
Aaron Jacobs
2a57c26cec
Began on a file system to help test flush/fsync support.
2015-03-20 11:15:26 +11:00
Aaron Jacobs
ba6909e398
Fixed an out of date name.
2015-03-20 11:14:45 +11:00
Aaron Jacobs
8f8b5c9c44
Converted memfs_test.
2015-03-20 11:11:20 +11:00
Aaron Jacobs
abeaf77890
Added a ToClose field.
2015-03-20 11:10:04 +11:00
Aaron Jacobs
0b43e99333
Use the names SetUp and TearDown so that ogletest doesn't run them.
2015-03-20 11:07:43 +11:00
Aaron Jacobs
f099d9868f
Updated hello_fs_test.
2015-03-20 10:50:36 +11:00
Aaron Jacobs
08f495e8b0
Refactored SampleTest.Destroy.
2015-03-20 10:47:46 +11:00
Aaron Jacobs
03f5453297
Oops, use t.Ctx.
2015-03-20 10:46:20 +11:00
Aaron Jacobs
bdfb8cacce
SampleTest.Destroy.
2015-03-20 10:46:02 +11:00
Aaron Jacobs
5e5a2d3356
SampleTest.Initialize
2015-03-20 10:44:50 +11:00
Aaron Jacobs
0ce062dde3
Declared a helper struct for sample tests.
2015-03-20 10:40:34 +11:00
Aaron Jacobs
8d0ce150a0
Updated import paths after the repo move.
2015-03-19 12:39:47 +11:00
Aaron Jacobs
76226f19f5
Updated PosixTest.WriteStartsPastEndOfFile_AppendMode for Linux.
2015-03-18 16:16:24 +11:00
Aaron Jacobs
e011f89d97
PosixTest.WriteStartsPastEndOfFile_AppendMode
2015-03-18 16:13:28 +11:00
Aaron Jacobs
cd4980bf7d
Uncommented unlink tests.
2015-03-18 14:14:46 +11:00
Aaron Jacobs
1a27522693
Added cachingfs support for nlink.
2015-03-18 14:14:19 +11:00
Aaron Jacobs
7120eb1f3d
Added memfs support for nlink.
2015-03-18 14:13:37 +11:00
Aaron Jacobs
7e8f3266ef
Added hellofs support for nlink.
2015-03-18 14:11:36 +11:00
Aaron Jacobs
33e35f568b
Tightened up nlink-related tests for sample file systems.
...
These are currently failing due to bazillion/fuse@58c769a . See #2 .
2015-03-18 14:07:26 +11:00
Aaron Jacobs
6baf50c6d4
Removed an out of date TODO.
2015-03-17 16:37:48 +11:00
Aaron Jacobs
e85990c143
Fixed permissions behavior in hellofs.
...
The tests were recently broken on Linux when default_permissions was set
when mounting. On Linux (but not on OS X), the uid sending the Init
request is root, so all of the files appear to be owned by root. This
was fine until we told the kernel to check permissions.
2015-03-17 16:35:31 +11:00
Aaron Jacobs
b851c516e3
Fixed AttributeCachingTest.StatMtimeStat_ViaPath on OS X.
2015-03-17 16:30:03 +11:00
Aaron Jacobs
6fe7f54829
Updated a few tests for darwin's special entry cache behavior.
2015-03-17 16:24:15 +11:00
Aaron Jacobs
be35ff0dde
Set EnableVnodeCaching in the appropriate test.
2015-03-17 16:21:10 +11:00
Aaron Jacobs
40519818d5
Clarified the expectations in a couple of tests.
2015-03-17 16:14:37 +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
69c73e39d4
AttributeCachingTest.StatMtimeStat_ViaFileDescriptor
2015-03-17 14:27:23 +11:00
Aaron Jacobs
c7db9c22ec
Fixed more test bugs.
2015-03-17 14:24:55 +11:00
Aaron Jacobs
440803fff6
Fixed some test bugs.
2015-03-17 14:24:13 +11:00
Aaron Jacobs
56cd06ab51
Implemented OpenDir and OpenFile.
2015-03-17 14:23:36 +11:00
Aaron Jacobs
8d1ca91bc9
AttributeCachingTest.StatRenumberMtimeStat_ViaFileDescriptor
2015-03-17 14:22:44 +11:00
Aaron Jacobs
0fe8ed1493
Fixed AttributeCachingTest.StatMtimeStat.
2015-03-17 14:16:10 +11:00
Aaron Jacobs
9ca89ca229
Added AttributeCachingTest.
2015-03-17 14:11:27 +11:00
Aaron Jacobs
ac34f0f721
Added EntryCachingTest.
2015-03-17 14:07:49 +11:00
Aaron Jacobs
b1ad507c85
NoCachingTest.StatRenumberMtimeStat
2015-03-17 14:02:16 +11:00
Aaron Jacobs
1aab442f8b
NoCachingTest.StatMtimeStat
2015-03-17 14:01:45 +11:00
Aaron Jacobs
ea6a65ae8e
NoCachingTest.StatRenumberStat
2015-03-17 13:59:48 +11:00
Aaron Jacobs
b07c1f4825
Refactored.
2015-03-17 13:58:56 +11:00
Aaron Jacobs
a3dcce8ed9
Fixed more test bugs.
2015-03-17 13:56:37 +11:00
Aaron Jacobs
e61d2fc9f6
Fixed some test bugs.
2015-03-17 13:55:42 +11:00
Aaron Jacobs
6490602460
NoCachingTest.StatStat
2015-03-17 13:55:04 +11:00
Aaron Jacobs
f1914f74b2
Finished writing BasicsTest.
2015-03-17 13:47:02 +11:00
Aaron Jacobs
dc5f8ae4bc
Implemented GetInodeAttributes.
2015-03-17 13:46:15 +11:00
Aaron Jacobs
968b5dd71a
Fixed an ID allocation bug.
2015-03-17 13:42:47 +11:00
Aaron Jacobs
bac78088be
BasicsTest.StatFoo
2015-03-17 13:40:11 +11:00
Aaron Jacobs
c8b0b0e822
BasicsTest.StatNonexistent
2015-03-17 13:38:51 +11:00
Aaron Jacobs
2051c13cc0
Simplified BasicsTest.StatNonexistent_Root.
2015-03-17 13:38:07 +11:00
Aaron Jacobs
9ee0551b8c
Fixed a bug.
2015-03-17 13:36:55 +11:00
Aaron Jacobs
241b9447fc
Expanded BasicsTest.StatNonexistent_Root.
2015-03-17 13:36:23 +11:00
Aaron Jacobs
ef4c7d5c8a
Implemented missing methods.
2015-03-17 13:35:47 +11:00
Aaron Jacobs
7cddc48c24
Fixed a build error.
2015-03-17 13:34:50 +11:00
Aaron Jacobs
cea0fb8b48
Refactored ID methods.
2015-03-17 13:33:32 +11:00
Aaron Jacobs
11724230a5
Implemented LookUpInode.
2015-03-17 13:32:35 +11:00
Aaron Jacobs
1b71593b34
Implemented RenumberInodes.
2015-03-17 13:25:46 +11:00
Aaron Jacobs
a9ebf7fe45
Implemented checkInvariants.
2015-03-17 13:25:27 +11:00
Aaron Jacobs
c6fab5488b
Implemented other ID methods.
2015-03-17 13:23:58 +11:00
Aaron Jacobs
19c26cc2e8
Implemented FooID.
2015-03-17 13:23:30 +11:00
Aaron Jacobs
8a4e3f242d
Reworked inode numbering.
2015-03-17 13:22:33 +11:00
Aaron Jacobs
064452dcc9
Simplified inode renumbering.
2015-03-17 13:14:19 +11:00
Aaron Jacobs
8e194826f0
BasicsTest.StatNonexistent_Root
2015-03-17 12:58:25 +11:00
Aaron Jacobs
d3b071b61a
Fixed duplicate test methods.
2015-03-17 12:56:56 +11:00
Aaron Jacobs
236b1ef9df
Implemented Init.
2015-03-17 12:55:40 +11:00
Aaron Jacobs
3e8995eb7e
Made CachingFS an interface, hiding a bunch of irrelevant stuff.
2015-03-17 12:53:55 +11:00
Aaron Jacobs
f1fc462560
Added several test names.
2015-03-17 12:50:58 +11:00
Aaron Jacobs
a1960e91a8
Fixed a panic.
2015-03-17 12:45:06 +11:00
Aaron Jacobs
97dd87f56d
Fixed some build errors.
2015-03-17 12:44:42 +11:00
Aaron Jacobs
81b9b0e737
Added a test stub.
2015-03-17 12:44:12 +11:00
Aaron Jacobs
c79c1d8455
Implemented public functions.
2015-03-17 12:40:51 +11:00
Aaron Jacobs
56f503accd
Declared the interface for a file system to help with testing caching.
...
For the testing work in #1 .
2015-03-17 12:38:15 +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
acff636a2e
Removed an assertion that doesn't pass on OS X.
...
For whatever reason, the directory shows up with Nlink == 2 there.
2015-03-16 13:58:36 +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
4c280e82ac
Added PosixTest.RmdirWhileOpenedForReading.
2015-03-16 13:47:42 +11:00
Aaron Jacobs
27c8c0df9c
Added a public note about default_permissions.
2015-03-16 13:44:18 +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
07bef0b128
Implemented memFS.Unlink.
2015-03-06 23:29:47 -06:00
Aaron Jacobs
125491a6e9
Finished filling out MemFSTest TODOs.
2015-03-06 23:18:50 -06:00
Aaron Jacobs
df6feb98c5
MemFSTest.ReadDirWhileModifying
2015-03-06 23:18:30 -06:00
Aaron Jacobs
5b07c5da52
Added a test for directory link behavior.
2015-03-06 22:39:45 -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