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
Neil Brown
b46dabe555
Added tests of the C and C++ backend pertaining to records
2007-10-04 12:02:08 +00:00
Neil Brown
46d2ff32f3
Added tests for genVariable in the C and C++ backends
2007-10-04 12:01:29 +00:00
Neil Brown
b4ac249367
Changed the C and C++ channel arrays to be actual arrays of channels, not arrays of channel pointers as they were before.
...
The effects of this change will not be fully tested until further tests have been written (especially for genVariable).
2007-10-04 00:53:25 +00:00
Neil Brown
7ef16c3b6c
Added a test for declareInit and declareFree, to test the C and C++ backends
2007-10-04 00:24:32 +00:00
Neil Brown
93610a5837
Changed the C++ arrays to use standard C-like arrays rather than std::vector as they used to
2007-10-04 00:19:38 +00:00
Neil Brown
8b95ae00f0
Added a test for genReplicator
2007-10-03 23:48:57 +00:00
Neil Brown
2b1603629f
Added a test for the genOverArray function in the C/C++ backends
2007-10-03 23:14:55 +00:00
Neil Brown
65fb758dbd
Added tests for genDeclaration, and tweaked the backends to make the tests pass
2007-10-03 17:58:59 +00:00
Neil Brown
4111dd3cb7
Added a test for genArraySubscript, and made the C and C++ backends pass it
2007-10-03 16:43:07 +00:00
Neil Brown
91d9dcf3bc
Changed the functions in GenerateCTest to have separate tests (rather than separate assertions) for C and C++
...
This makes it easier to see straight away if both the C and C++ tests are failing (previously only the C test would have shown up if it failed, masking the C++ failure temporarily, until the C test passed).
2007-10-03 16:21:05 +00:00
Neil Brown
80836c0074
Added more tests for the C backend (genArrayLiteralElems, genActual, genActuals)
2007-10-03 15:57:45 +00:00
Neil Brown
d985043d62
Added more tests to the GenerateCTest module (stop, and array-related tests)
2007-10-03 14:08:09 +00:00
Neil Brown
96ee8ae9bd
Simplified the GenerateCTest module by changing the helper functions
2007-10-03 13:32:28 +00:00
Neil Brown
9fc166d819
Added the first group of tests for the C and C++ code generation backends
2007-10-02 14:49:31 +00:00