blob: e79a88792a7bee813e92457b7aa7b179f978a51b [file] [log] [blame] [view]
Yawar Aminb17672a2022-09-10 11:55:02 -04001## Testing approach
2
31. Programmatically construct parsed instances of Thrift IDLs using internal
4 types
52. Generate the OCaml output using the OCaml generator
63. Capture the generated output in `ostringstream`
74. Query and compare the outputs in the strings to stored snapshots in the
8 `snapshot_*.cc` files
9
10Run tests in `../tests` directory:
11
12 # Only on changing build definition:
13 cmake -DCMAKE_PREFIX_PATH=/usr/local/opt/bison -DCMAKE_CXX_STANDARD=11 .
14
15 # On each iteration:
16 rm -rf gen-ocaml; cmake --build . && ctest --output-on-failure