next|prev|index
15. How to migrate tests
Migration should be done on a per-directory basis.
Given a subdirectory of testsuite/tests containing legacy tests (i.e. a Makefile):
- Determine which are the main test files (read the Makefile, the files it includes, the files in the directory)
- Annotate each main test file with an ocamltest specification block (this may require enhancing ocamltest itself)
- Run the test file under ocamltest until all tests pass (this may imply modifying and/or renaming the reference files)
- Once all files have been successfully migrated, remove the Makefile and create an ocamltests file containing their names
- The names of the migrated test files should appear in the output of ``make new'' when run in the testsuite directory