OUnit2 tests to keep HHBC options in sync
commita87411f70623c3d10a945b5a0aab689815ab79bb
authorLeo Osvald <leoo@fb.com>
Thu, 21 Nov 2019 00:43:40 +0000 (20 16:43 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 21 Nov 2019 00:45:52 +0000 (20 16:45 -0800)
tree12ca7746233b925f7aab30d72809efd5bdf3a992
parent51e714587375819bf8663754b5d423ffef128272
OUnit2 tests to keep HHBC options in sync

Summary:
These migration tests keep OCaml and Rust impl in sync:

- defaults are checked to be consistent
- serialization of a stack of JSON configs is checked
  - overriding false-by-default with truish option and vice-versa
  - SerDe of complex types such as "hhvm.aliased_namespaces",
    which is a string-to-string map (encoded as JSON object)

Reviewed By: dabek

Differential Revision: D18443097

fbshipit-source-id: 2800eaea4e40eaded9b43ec9bbbe49ab24e67a66
hphp/hack/src/hhbc/options_ffi.ml [new file with mode: 0644]
hphp/hack/src/hhbc/options_ffi.rs [new file with mode: 0644]
hphp/hack/test/rust/hhbc_options_migration_test.ml [new file with mode: 0644]