Commit Graph

19 Commits

Author SHA1 Message Date
Neil Brown
d8a23fa40d Fixed some Haddock module references in TestUtil 2007-08-28 12:38:15 +00:00
Neil Brown
6a22e37589 Added Haddock documentation to all the functions in TestUtil, and tweaked the type of assertVarDef 2007-08-28 12:25:59 +00:00
Neil Brown
ffb75e0fc7 Removed an unused function from TestUtil 2007-08-28 11:57:02 +00:00
Neil Brown
bd5e6759a2 Rain: changed the parser to convert ?c into a A.DirectedVariable instead of a cast 2007-08-30 18:01:43 +00:00
Neil Brown
694ba1eca2 Replaced the use of m with emptyMeta in TestUtil 2007-08-28 11:19:51 +00:00
Neil Brown
54ba4c3315 Rain: added tests for parsing process calls 2007-08-23 21:20:55 +00:00
Neil Brown
e9d882f1ae Rain: fixed the dataType parser to accept user-named types 2007-08-23 18:44:22 +00:00
Neil Brown
bb77f3fb91 Rain: added tests for literals, including very large integers 2007-08-23 15:51:08 +00:00
Neil Brown
f0d06b5219 Rain: added tests for the innerBlock parser 2007-08-23 14:59:27 +00:00
Neil Brown
412a746e25 Rain: added a test for recording and resolving process parameters 2007-08-22 15:20:40 +00:00
Neil Brown
79678055bc Rain: added a test for resolving/recording process names 2007-08-22 12:36:42 +00:00
Neil Brown
7e51ad1b1c Started using the stopCaringPattern function to easily use assertPatternMatch (which pretty-prints its output) instead of assertEqual (which just uses Show) 2007-08-22 09:44:56 +00:00
Neil Brown
1213661b36 Added some helper functions for creating simple Patterns to TestUtil 2007-08-20 21:53:24 +00:00
Neil Brown
e38d29f43d Moved a bunch of functions from RainPassTest to TestUtil, so that they can be re-used 2007-08-18 23:00:41 +00:00
Adam Sampson
c8d5a4ff40 Add licensing information.
The compiler itself is under the GPLv2+; the support code that gets built into
user programs is under the LGPLv2+. This matches the existing practice for the
KRoC project.

(As with Occade, I've used the new GPLv3-style license header in the source
files, though, since that avoids having to update the FSF's postal address.)
2007-08-18 20:42:11 +00:00
Neil Brown
68a3b3f4bc Tidied up some test functions and added assertNotEqual function 2007-08-18 14:48:23 +00:00
Neil Brown
5ee2303dc7 Moved some functions into TestUtil from RainParseTest 2007-08-16 12:17:49 +00:00
Neil Brown
9c722ba27c Some tests for getting the parallel usage checker working on arrays and replicated pars properly 2007-07-31 09:43:59 +00:00
Neil Brown
bed325beea Parallel Usage Checker and Test Rearrangement
This patch is a bit large, being as it encompasses two major changes:

1. The addition of the first version of a parallel usage checker.  The usage checker uses the generics library (like
   the other passes) to work out if the parallel usage rules are broken.  It mainly consists of:
     a) a function used to determine which variables are written to/read from in given bits of code, and 
     b) a function that applies a) across the members of any par construct in the file, and checks that
        the expected usage rules hold
   The parallel usage checker is in an early stage, but I think the design is sensible - at least for doing the variable
   and array usage.  The channel usage checker will require some slightly different functionality, and
   I am not considering the abbreviation checker yet.
2. As a consquence of adding a second test file (UsageCheckTest) alongside the first (RainParseTest), I have 
   created a TestMain class that is intended to run all tests for all parts of Tock.  I have also extracted some
   useful helper functions (for creating the expected results of tests) into a file named TestUtil.  I've also
   modified the Makefil accordingly.
   
There are a few other minor changes to RainParse/RainParseTest that are also included in the patch as separating them
would have been tricky.
2007-07-30 22:04:30 +00:00