Commit graph

59 commits

Author SHA1 Message Date
fanoI
37d2ae4079 Corrected and added tests for Filetream in any FileMode
- Added tests to File for issue https://github.com/CosmosOS/Cosmos/issues/760
- FileImpl add "wrong" code for the previous merge: removed it
- Clean up
2017-12-24 13:34:11 +01:00
fanoI
f46a910bb0 Another try... 2017-12-13 01:19:03 +01:00
fanoI
c82529d751 Splitted FATTest to avoid AppVoyer timeout :-( 2017-12-12 22:07:00 +01:00
fanoI
51fac7ada4 Plugged FileInfo
- Added tests for FileInfo
- Added tests for Binary Reader/Writer
- Unified StreamReader and StreamWriter in a unique test
2017-12-10 20:35:29 +01:00
fanoI
299c155f4c Removed a lot of plugs from File: the promise is mantained it uses StreamReader / StreamWriter directly
- CosmosEncoding replacement of Encoding is not needed: Encoding runs perfectly on Cosmos!
- Added tests to BCL for UTF8Encoding
- StreamWriter does not needs a plug anymore, TextWriter is plugged instead but the plug is really the Ctor only
- Commented COSMOSDEBUG
2017-12-01 22:21:15 +01:00
fanoI
81234d1cd9 StreamReader implemented but found bug in IL2CPU plug resolution :-( 2017-11-18 11:12:17 +01:00
fanoI
4071e75a47 Trying to plug StreamWriter(), but Flush() has only a buffer filled all with 0x0000 not with the text to Write()! 2017-10-24 23:17:50 +02:00
fanoI
f83aef39b0 Removed from DirectoryImpl.cs all the method that did not need plug anymore: CosmosFileSystem methods are called directly from Net Core code, the only remaing plugs are the ones that need IEnumerable to work. 2017-10-01 16:45:04 +02:00
fanoI
806e6e9e89 More FAT work
- Make DirectoryInfo work
- Refactored FAT TestRunner in a similar way to the BCL one
- Bugfix: Path.GetTempPath() did not returned a complete path
- Added to VFS "naive" support to Get / Set file attributes (for now only Get is supported)
- Added more debug logs
2017-09-24 18:12:58 +02:00
fanoI
6d2f9d5a8d [NOT MERGE THIS] Stack Overflow everywhere
During the test and plugging of DirectoryInfo I've benn hit by a lot of stack overflows / stack corruptions.
I do this PR because I've not the necessary competency to find where the issue his, executing the Cosmos.Kernel.Tests.Fat.Kernel you will be soon hit by a stack overflow.
2017-08-22 13:23:23 +02:00
Kudzu
fa4c223452 Move again because of submodules being less than half baked in git. 2017-08-10 16:04:19 -04:00
Kudzu
fa00b78441 New Cosmos parent dir 2017-08-08 11:29:41 -04:00
José Pedro
56c74b6701 Fixed tests.
Updated LICENSE.txt
2017-02-25 23:49:02 +00:00
José Pedro
8e2aa72d4e Fix FAT test.
Minor changes in ToHexString and the FAT test.
2016-11-19 22:43:15 +00:00
Charles Betros
4beeee98ab Enable some tests and small change to fat allocation. 2016-11-03 14:02:44 -05:00
José Pedro
a860b2373a Fixed Newobj for string with length parameter.
Minor changes in debugging and FAT test messages.
Removed useless "if" in FAT, previously added by me.
2016-09-29 19:48:59 +01:00
fanoI
74534282bc Merge pull request #448 from jp2masa/TestsUpdate
Tests Update
2016-08-30 13:56:11 +02:00
José Pedro
479c5ed8ff Comment failing tests 2016-08-27 17:25:25 +01:00
jp2masa
34bd089a69 Small Fix to FAT Test 2016-08-18 20:35:11 +01:00
José Pedro
24ed9f66e3 Fix error in FAT test 2016-08-18 18:55:18 +01:00
José Pedro
ed181c503c Added "Save Log" button to the Test Runner UI. Added tests for StreamReader, StreamWriter, BinaryReader and BinaryWriter for FAT. Added MemoryStream tests. 2016-08-11 17:02:23 +01:00
MichaelTheShifter
903860a77d FAT File Deletion work.
Yet again, my hands are typing words. Jokes aside, deleting doesn't work
yet - but at least using System.IO.File.Delete() won't cause a plug
issue.
2016-06-21 19:38:44 -04:00
Charles Betros
720f6187ed Fixed issue with writing to a new file in a new directory. 2016-05-18 16:08:56 -05:00
Charles Betros
bf6f97756a Fixed create directory and directory exists. 2016-05-11 22:36:00 -05:00
Charles Betros
653b7a8321 Fixed Get directory listing with subdirectory. 2016-03-24 22:35:59 -05:00
Charles Betros
559ee8570a Filesystem work. 2016-03-02 15:57:53 -06:00
Charles Betros
f5468fe2b0 Path mostly works. Added a bunch of exception strings to environment. 2016-02-15 22:35:08 -06:00
Charles Betros
ba6070dbe7 String and simple debugger change 2016-02-15 16:02:23 -06:00
Charles Betros
b6d95e1668 Plugged a bunch of classes and implemented a few ilops. Removed most of Path plugs. 2016-02-14 13:07:26 -06:00
Charles Betros
f2b4d7d6bb Just some testing code. 2016-01-16 12:54:35 -06:00
fanoI
41d6aaf2c0 Re-enabled all tests
- TestPath, TestDirectory and TestFileStream was commented
2016-01-06 22:24:19 +01:00
fanoI
bfc3934be0 FATStream Constructor Fixed: FatTable generated for empty files too
- FATStream Constructor Fixed: FatTable generated for empty files too
- Corrected method WriteAllLines()
- Added new method ReadAllLines()
- In FatTestKernel added utility method StringArrayAreEquals()
- In FatTestKernel fixed assertions on file existence
- In FatTestKernel used ReadAllLines() to check that WriteAllLines()
succeeded
- In FatTestKernel moved AppendAllText() test as last of File as - for
now - is always failing
2016-01-06 22:21:52 +01:00
fanoI
f4d627d22e Added new (failing) tests on FAT
- Added test to write another file in the same directory
- Added test for new method WriteAllLines()
- Added test for method WriteAllBytes() / ReadAllBytes()
- Added tests to create files in a subdirectory
- Added utility method byteArrayAreEquals()
2015-12-30 22:15:19 +01:00
fanoI
77a49293c8 TestFileStream() assertion fix 2015-12-27 18:43:14 +01:00
fanoI
5221adad8c FAT fixes
- GetFileName() of root directory does not correctly returned null
- GetExtension() returned the extension with the '.'
- Modified TestFile() to overwrite the file with the expected value or
the test will be OK only the first time
- Corrected the tests of GetFileName(), GetFileNameWithoutExtension()
- Added new tests
- Re-enabled TestFileStream()
2015-12-27 17:35:48 +01:00
Charles Betros
ac13fb8ced Fixed tests. 2015-12-20 13:42:06 -06:00
Charles Betros
a7ff742e2a Latest file system tets. 2015-12-20 09:46:09 -06:00
Charles Betros
1a2ed6b720 Fixed speed issue with the heap. 2015-12-18 12:28:24 -06:00
Charles Betros
4e08b03a8a Closes #271. Added an option for stack corruption detection. Checks can now occur after every instruction or for method footers ornly. 2015-12-17 00:15:51 -06:00
Charles Betros
2ae245e14b Implemented create file for FAT. 2015-12-06 16:32:30 -06:00
Charles Betros
102c909cd9 Fixed SetSize for FatStream. 2015-12-04 15:05:18 -06:00
Charles Betros
fd54c66225 Reworked fat file system. Added conditionals for debug output. Implemented some System.IO plugs. 2015-11-26 11:45:58 -06:00
charles.betros@hcss.com
8257fba6ac Working on create in FAT. 2015-11-16 12:02:48 -06:00
charles.betros@hcss.com
ef181b4ee5 Set the parent directory to root if it's null. 2015-11-16 11:30:28 -06:00
charles.betros@hcss.com
d46bf5dd09 File system work. 2015-11-16 09:15:38 -06:00
Charles Betros
a391864356 More filesystem work. 2015-11-14 21:41:30 -06:00
Charles Betros
3ad05d79aa #253 Create a test kernel for file system plugs. 2015-11-11 22:59:45 -06:00
Charles Betros
f94290890a Continuing FAT work. 2015-11-11 10:21:49 -06:00
Charles Betros
7db379458e Revert the FAT test kernel. 2015-11-03 14:17:57 -06:00
Matthijs ter Woord
a94cd73f0a Ongoing bug hunting. 2015-10-28 19:07:08 +01:00