next|prev|index
4. Constraints
- Restrain dependencies to the most portable part of the compiler (tests should work as quickly as possible even when OCaml is ported to a new platform)
- In particular, use neither Unix nor Str
- No dependency on OCaml tools not distributed with the compiler
Design principle: the more common the test is, the simpler it should be to write it
One common test: compile, run, check exit code is 0 and program output is empty.