Commit Graph

199 Commits

Author SHA1 Message Date
Barry Tulchinsky e84d639210 fixed bugs where atime and mtime weren't updated on the node and where mtime was valid it would error. Also added more tests 2013-12-15 02:54:51 -05:00
Alan Kligman dac59f97b3 fixes #77; also checked for error type to make sure the test passes for the correct reason (and not ENoEntry, for example) 2013-12-14 15:14:44 -05:00
Barry Tulchinsky d5b5c55fe1 implementation of utimes and futimes 2013-12-13 00:46:31 -05:00
Alan K 170af0baa8 Merge pull request #70 from ispedals/truncate
Good code, good tests. Merging.
2013-12-10 11:51:52 -08:00
Abir Viqar 7437aded15 refactor callback chain 2013-12-10 12:32:10 -05:00
Abir Viqar 13abcd2eeb implement truncate and ftruncate 2013-12-10 12:12:43 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 3d11b34893 Update adapter tests to use Uint8Array and fix crypto encodings, complete zlib work. Fixes #52. 2013-12-04 12:14:16 -05:00
David Humphrey a3a1c50b4e Add Zlib adapter, generalize adapter tests 2013-12-03 15:14:20 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca d2790a4703 Review fixes, move crypto to src/adapters, update tests, update README, rebuild files in dist/ 2013-12-01 16:45:24 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 58f57cca19 WIP on crypto wrapper providers for AES, TripleDES, Rabbit, 3 tests failing 2013-12-01 16:44:09 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 6ebbdc5915 Finish WebSQL implementation, all tests passing. Fixes #21. 2013-11-29 10:29:04 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca d5db4c51b9 Down to 1 test failure 2013-11-27 19:35:52 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca c92d3a6c5f Passing 1/4 failing tests now 2013-11-27 17:12:46 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 58392efd10 WebSQL Storage Provider with tests (4 tests failing still) 2013-11-27 16:53:06 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 415ad41406 Break test files up using require 2013-11-27 12:18:09 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca d3a7750d75 Switch to node.js' callback pattrn, update public API to match node.js 2013-11-27 10:34:43 -05:00
David Humphrey b7733a591d Working null byte patch checks 2013-11-27 10:34:43 -05:00
David Humphrey 77f32c4c50 Initial tests from node repo 2013-11-27 10:34:43 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 3c5a5ef7fa Review fixes 2013-11-26 19:12:25 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 6e16f86208 Make backends pluggable via FileSystem ctor, fixes #36. 2013-11-25 19:23:51 -05:00
Abir Viqar ac689fc8b4 test rename does not follow symbolic links 2013-11-25 14:27:16 -05:00
Abir Viqar 702dd1a3a3 open should follow symbolic links
This functionality is tested implicitly through tests in
writefile, readfile
2013-11-25 14:27:14 -05:00
Abir Viqar 1b3ef1a449 unlink should not follow symbolic links 2013-11-25 14:27:05 -05:00
Abir Viqar f3b9a83343 test link should not follow symbolic links 2013-11-25 14:27:03 -05:00
Abir Viqar 656dfd242b rmdir should error on non-directories 2013-11-25 14:27:00 -05:00
Abir Viqar 635dd2e899 test readdir's symbolic link support 2013-11-25 14:26:57 -05:00
Abir Viqar e8df3e2e6b test stat's symbolic link support 2013-11-25 14:26:55 -05:00
Abir Viqar 5cbebd135c add lstat 2013-11-25 14:26:52 -05:00
Abir Viqar 5ceff20b12 make find_node symbolic link aware
This adds a new constant SYMLOOP_MAX, which corresponds to the POSIX
variable of the number of symbolic links that may be followed. A new
error Eloop was added to signal when SYMLOOP_MAX is exceeded.
SYMLOOP_MAX has been arbitrarily set to 10 while on linux it is set
to 40 and the POSIX minimum is 8.

find_node when encountering a symbolic link anywhere in the given path
will attempt to follow it.

Note that SYMLOOP_MAX is only the limit of symbolic links to
follow per symbolic link. There is currently no attempt to limit
the total number of symbolic links followed when resolving a path.

This adds tests for path resolution of symbolic links as well.
2013-11-25 14:26:46 -05:00
Abir Viqar 85a804cc0c add symlink
Also enable readlink's symbolic link test.
2013-11-25 14:26:40 -05:00
Abir Viqar a78f1ee3ff add readlink
Disable the test on a symbolic link until symlink is added.

Also add myself to AUTHORS
2013-11-25 14:26:34 -05:00
Alan Kligman c76fc01a20 support rename() 2013-11-12 13:39:11 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 034dc8c166 Add test for invalid path to readFile. 2013-11-09 15:12:07 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 2a8705ed0b Add fs.readFile, fs.writeFile with tests 2013-11-08 15:33:44 -05:00
Alan Kligman 7e59e3a684 support for readdir 2013-11-07 15:55:14 -05:00
Alan Kligman dabf8c8c7a Added lseek and tests. 2013-07-29 15:59:17 -04:00
Alan Kligman 850758e37a Add fstat and tests. Fix position bug in read/write. 2013-07-29 14:55:25 -04:00
Alan Kligman 984db2ceba Add file type to stats. 2013-07-26 11:59:32 -04:00
Alan Kligman e690ed5292 Unlink implementation and tests. 2013-07-26 00:15:48 -04:00
Alan Kligman 717bbc25c1 Link tests. 2013-07-25 22:49:53 -04:00
Alan Kligman ea8fbd48ad Updated tests. 2013-07-22 23:34:38 -04:00
Alan Kligman fb9fed0663 Tests for reading and writing data. 2013-07-22 14:31:44 -04:00
Alan Kligman 40d3f25d9a More tests, updated implementation. 2013-07-22 13:08:35 -04:00
Alan Kligman d3d7dcabde Code and tests for fs.open 2013-07-19 11:22:23 -04:00
Alan Kligman 5853704bab Updated tests. 2013-07-15 11:52:41 -04:00
Alan Kligman cfd0932736 More tests. Added try/catch around read/write_object. 2013-07-13 12:41:10 -04:00
Alan Kligman 3d00c85a27 Updated tests. 2013-07-12 12:07:57 -04:00
Alan Kligman c3c9751ff4 Stat implementation, updated tests. 2013-07-12 11:11:05 -04:00
Alan Kligman 580dad5315 WIP 2013-05-31 03:52:04 -04:00