Neil Brown
|
26dd2fa5c4
|
Renamed the TestUtil and TreeUtil modules to TestUtils and TreeUtils, to be consistent with the Utils module
|
2007-12-13 19:05:29 +00:00 |
|
Neil Brown
|
7d175b1d0d
|
Added more documentation to the testing frameworks in the backends directory.
|
2007-11-12 17:51:54 +00:00 |
|
Neil Brown
|
7433e49d49
|
Added support for List types to the C and C++ backend, in genType at least
|
2007-10-27 11:24:24 +00:00 |
|
Neil Brown
|
7f59eec189
|
Changed the C and C++ backends (and tests) to handle declarations with initialisers properly
|
2007-10-25 00:27:12 +00:00 |
|
Neil Brown
|
6b95827cab
|
Added an optional initialiser-expression to Declaration in the AST, and changed the rest of the code accordingly
|
2007-10-24 23:50:00 +00:00 |
|
Neil Brown
|
dfee567ffc
|
Added tests for ClearMobile in the C and C++ backends
|
2007-10-24 20:52:39 +00:00 |
|
Neil Brown
|
48c1bea724
|
Added tests for the AllocMobile item in the C and C++ backends
|
2007-10-24 19:44:50 +00:00 |
|
Neil Brown
|
0eea361f95
|
Added tests for DerefVariable during the genVariable function for the C and C++ backends
|
2007-10-24 15:57:40 +00:00 |
|
Neil Brown
|
441b700d8d
|
Added tests for the new mobile types in the C and C++ backends
|
2007-10-21 14:16:24 +00:00 |
|
Neil Brown
|
fed32e1531
|
Adjusted the tests for inputs to catch an error where the size in counted array inputs in C++ was not being correctly calculated
|
2007-10-14 11:09:08 +00:00 |
|
Neil Brown
|
d4dabfd3bb
|
Removed unused code from the GenerateCTest module
|
2007-10-14 00:09:28 +00:00 |
|
Neil Brown
|
e9dbfbab3c
|
Added the input-case to case pass to the pass-list, and therefore removed all code dealing with input-case statements in the C and C++ backends (and corresponding tests)
|
2007-10-14 00:01:44 +00:00 |
|
Neil Brown
|
acd09137f6
|
Added tests for genRetypeSizes in the C and C++ backends
|
2007-10-13 17:49:09 +00:00 |
|
Neil Brown
|
c74ae12810
|
Changed the type of genBytesIn again, to remove redundancy in its parameters
|
2007-10-13 16:16:52 +00:00 |
|
Neil Brown
|
a98ff8cad0
|
Removed the horrible tockBool type, now that we are no longer using vectors to store C++ arrays
|
2007-10-13 15:40:39 +00:00 |
|
Neil Brown
|
ed38f80db0
|
Changed the type of genRetypeSizes to removed the unused AbbrevMode parameter
|
2007-10-13 15:38:04 +00:00 |
|
Neil Brown
|
ffd09847fe
|
Removed genBytesIn' from the GenOps, in favour of adding a parameter to genBytesIn, and changed the tests and code accordingly
|
2007-10-13 14:51:29 +00:00 |
|
Neil Brown
|
d5d4580aa3
|
Changed the type of genSlice, and put the C++ version into the GenOps dictionary, as well as adding tests for the function
|
2007-10-13 13:20:40 +00:00 |
|
Neil Brown
|
a1f0faac8f
|
Added tests for RETYPES specifications in the C and C++ backends
|
2007-10-13 12:50:39 +00:00 |
|
Neil Brown
|
ec43e592f0
|
Fixed the initialisation of C++ channel arrays to initialise the correct array
|
2007-10-11 01:32:36 +00:00 |
|
Neil Brown
|
8d0b5fbe1a
|
Added a helper function for receiving an array of bytes, and changed the C++CSP backend and tests to use the function
|
2007-10-11 00:51:07 +00:00 |
|
Neil Brown
|
3f6fe50438
|
Added tests for (non-case-protocol) inputs in the C and C++ backends
|
2007-10-10 20:45:05 +00:00 |
|
Neil Brown
|
5b10466e68
|
Fixed the channel arrays (and abbreviations thereof) to have the correct types (correcting an earlier mistake), and added helper functions to the support headers for easy initialisation of the arrays
|
2007-10-07 23:03:15 +00:00 |
|
Neil Brown
|
5450f77963
|
Added a test for genBytesIn in the C and C++ backends
|
2007-10-07 11:47:39 +00:00 |
|
Neil Brown
|
9c4f977416
|
Added tests for channels carrying counted arrays of arrays for the C and C++ backends
|
2007-10-06 23:50:20 +00:00 |
|
Neil Brown
|
9af1ec78bb
|
Fixed all the tests for sending items in C++, and made the tests pass
|
2007-10-06 23:05:03 +00:00 |
|
Neil Brown
|
6d29bbd260
|
Added some tests for outputs in the C and C++ backends, but the C++ backend needs fixing
|
2007-10-06 18:20:55 +00:00 |
|
Neil Brown
|
3b20d18937
|
Added tests for the genOutput and genOutputCase functions, corrected the C++ code, and added some helper functions to the C++ support header
|
2007-10-06 17:05:49 +00:00 |
|
Neil Brown
|
97ee0c4a4e
|
Added tests for ProtocolCase in introduceSpec, and made the C++ version behave the same as the C version
|
2007-10-06 16:35:02 +00:00 |
|
Neil Brown
|
03a4b8e41b
|
Removed the generate of tuples for sequential protocols in C++, since we're now using a byte-array approach
|
2007-10-06 16:22:51 +00:00 |
|
Neil Brown
|
062851dabf
|
Added tests for introduceSpec and Is, for all types except arrays
|
2007-10-06 15:55:18 +00:00 |
|
Neil Brown
|
0cf27ce4b6
|
Simplified the tests for IsChannelArray a little by overriding genVariable in the test
|
2007-10-06 13:32:12 +00:00 |
|
Neil Brown
|
0517465eff
|
Removed the function genArraySizesSize from GenOps, since it was only called in one place
|
2007-10-06 12:52:59 +00:00 |
|
Neil Brown
|
c3fad80f06
|
Changed the behaviour of the C++ version of declareArraySizes, moving towards potentially merging more of the C++ array handling with the C array handling
|
2007-10-06 12:49:30 +00:00 |
|
Neil Brown
|
e7cdaf2e90
|
Changed the type of genArraySizesLiteral, added tests for the C++ version and implemented the C++ version
|
2007-10-06 12:31:14 +00:00 |
|
Neil Brown
|
9a6f9186a9
|
Changed the behaviour of genArraySizesLiteral to include the curly brackets
|
2007-10-06 11:55:50 +00:00 |
|
Neil Brown
|
4c0c27f350
|
Added a test for handling IsChannelArray in introduceSpec, for both C and C++ backends
|
2007-10-06 11:38:16 +00:00 |
|
Neil Brown
|
24b3975cf8
|
Fixed channel arrays that are abbreviations to have the proper indirection, because they can be constructed in a special way (using IsChannelArray)
|
2007-10-06 00:57:03 +00:00 |
|
Neil Brown
|
9d5164d9c1
|
Changed the generation of the record structs to use the altered genDeclaration (that can now generate declarations for inside records)
|
2007-10-05 20:06:11 +00:00 |
|
Neil Brown
|
904d1e8f5f
|
Changed the genDeclaration function so that it can either generate stand-alone declarations (as it did before), or declarations inside records
|
2007-10-05 19:01:42 +00:00 |
|
Neil Brown
|
34609f1fee
|
Corrected the C++ tests and implementation of arrays inside records -- the dimensions of the tockArrayView were not being set, but they should be.
|
2007-10-05 17:52:37 +00:00 |
|
Neil Brown
|
e68e80ddda
|
Added a new type to the C++ header, tockSendableArrayOfBytes, ready for dealing with protocols and counted arrays properly. Also removed the tockAny type.
The tests for genType on channels of ANY, protocols, and counted arrays have also been changed accordingly.
|
2007-10-05 16:59:14 +00:00 |
|
Neil Brown
|
2b8010138b
|
Added the first part of a test for introduceSpec/removeSpec in the C and C++ backends
|
2007-10-05 11:44:23 +00:00 |
|
Neil Brown
|
4d2833affb
|
Added a test for genWhile to the C and C++ backends
|
2007-10-04 14:58:28 +00:00 |
|
Neil Brown
|
986b6d956a
|
Added a test for genWait in the C and C++ backends
|
2007-10-04 14:55:03 +00:00 |
|
Neil Brown
|
1f8a5555ac
|
Added a test for genIf in the C and C++ backends
|
2007-10-04 14:36:56 +00:00 |
|
Neil Brown
|
af74ac1039
|
Added a test of genGetTime for the C and C++ backends
|
2007-10-04 14:06:15 +00:00 |
|
Neil Brown
|
bc7e1b1433
|
Added a test for genCase on the C and C++ backends
|
2007-10-04 13:57:19 +00:00 |
|
Neil Brown
|
38fb0baa4e
|
Added a test for genAssign in the C and C++ backends, and tweaked its implementation to pass the tests
|
2007-10-04 12:40:13 +00:00 |
|
Neil Brown
|
d3fa9fb8c8
|
Added some documentation about the testing strategy in GenerateC
|
2007-10-04 12:12:12 +00:00 |
|