43 Commits

Author SHA1 Message Date
Fabien Chouteau
cbe54e4a5c Enable code coverage report with gcov and codecov.io
This is for the native testsuite, so only the middleware will be
analyzed.
2018-05-07 20:42:03 +02:00
Fabien Chouteau
32c4ab7145 Testsuite: Use new board project file 2018-04-27 21:16:41 +02:00
Fabien Chouteau
36f137ad18 Fix "use clause for has no effect" errors 2018-03-09 16:59:59 +01:00
Fabien Chouteau
a694e2c684 Testsuite: Add tests for the new command line interpreter 2018-02-02 18:18:13 +01:00
Fabien Chouteau
2581d82d67 Monitor.Block_Drivers: Show data size 2017-09-19 00:11:46 +02:00
Fabien Chouteau
201f82f16d Testsuite: Add more checks in FAT write test 2017-09-16 21:33:35 +02:00
Fabien Chouteau
bff6963a49 Testsuite: Add Block_Driver_Monitor test 2017-09-16 21:09:27 +02:00
Fabien Chouteau
3b618d415f Testsuite: Add hexdump test 2017-09-16 21:07:22 +02:00
Fabien Chouteau
1264de8c89 File_IO: Rename file modes 2017-09-15 18:47:55 +02:00
Fabien Chouteau
69f970ef88 File_Block_Driver: Add read/write only modes 2017-09-15 18:47:55 +02:00
Fabien Chouteau
1c0c15e1c6 Testsuite: Fix or remove filesystem tests
Some of the virtual filesystem are obsolete because of missing features
in the new implementation.
2017-09-15 18:47:55 +02:00
Fabien Chouteau
ddb422adbd File_IO: Add Create_File function 2017-09-15 18:47:55 +02:00
Fabien Chouteau
d2b93ca351 Filesystem: Create a "front-end" for file handling
in a package called File_IO. This hides some of the complexity of
dealing with access to handle and answers some of the questions
discussed in the issue #68.

The package also provides the mounting interface, taken from
Filesystem.VFS.
2017-09-15 18:47:55 +02:00
Fabien Chouteau
af952cbf6b Testsuite: Improve FAT testing 2017-09-15 18:47:55 +02:00
Fabien Chouteau
480067dffb Filesystem: Merge the two filesystem interfaces
And update the native implementation.
2017-09-15 18:47:55 +02:00
Fabien Chouteau
fb52c8241e Filesystem: Always use Status_Code as return value
as opposed to handles. And pass handles as out parameters.

File and directory handles will always be used for more than one
operation. Read/Write and Close at least, so it will require to declare
a variable for them.

   Handle : Any_File_Handle;
begin
   Open ("/my_file". Handle);
   Handle.Read (...)
   Handle.Close;

vs

  --  This is not practical because now I can't close the handle
  Open ("/my_file").Read (...);

On the other side, one might want to just check the status code of a
function without declaring a variable to do so.

if Open ("/my_file", Handle) /= OK then
   ...

vs

   Handle : Any_File_Handle;
   Status : Status_Code;
begin
   Handle := Open ("/my_file", Status);

   if Status /= OK then
      ...
2017-09-15 18:46:55 +02:00
Fabien Chouteau
ac61981318 Filesystem: Change parameters from access to in out 2017-09-15 18:46:55 +02:00
Fabien Chouteau
c807510532 Filesystem: Rename types according to ADL standard 2017-09-15 18:46:55 +02:00
Fabien Chouteau
b142aa660a Test Utils/Compare_Files: Remove useless IO read 2017-09-15 18:46:55 +02:00
Fabien Chouteau
dd2111032f Testsuite: Add one FAT test 2017-09-15 18:46:55 +02:00
Fabien Chouteau
3fc2ac8f7a Logging: Add Full and Empty functions
This can be useful for entry barrier when the logging packages are used
in a protected object.
2017-08-16 19:18:19 +02:00
Fabien Chouteau
9810f226d4 Merge pull request #211 from AdaCore/logging
Implement logging tools with priority and categories handling
2017-08-08 13:05:57 +02:00
Fabien Chouteau
6804cb4981 Logging: Change Pop from a function to a procedure 2017-08-08 11:01:50 +02:00
Fabien Chouteau
dc3d144670 Implement logging tools with priority and categories handling 2017-07-28 15:03:17 +02:00
Fabien Chouteau
5165c901f3 Bitmap_File_Output: Avoid random output
This may break the test-suite in some cases.
2017-07-25 16:34:51 +02:00