Enhance hh_single_compile_tests
commitd8a8ddadbcf568e61ae159c2be955a31e5e8783a
authorMillie Chen <milliechen@fb.com>
Mon, 13 Sep 2021 20:58:52 +0000 (13 13:58 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 13 Sep 2021 21:00:39 +0000 (13 14:00 -0700)
treec7c993d90ce089b37c7bd41f37d3e4b0bda8d629
parent06814f1bbe5b6850b2715b57043d8ce98997897b
Enhance hh_single_compile_tests

Summary:
- Add tests for `compile_hhas_from_text` added in the last diff (see `test_compile_hhas_from_text` and `record`)
- Better formatting for the testing output, example below
```
Start testing FFIs...

--------------------------------------------
Running test 0
--------------------------------------------
...

--------------------------------------------
Running test 6
--------------------------------------------
Source text:
      <<__EntryPoint>>
      function fatal_prog() {
        var($x);
      }

* Testing parse...
Passed!

* Testing extract_facts...
Passed!

* Testing compile_ffi...
Passed!

* Testing compile_hhas_ffi...
Found 0 functions
Found 0 classes
Found 0 record defs
Found 0 typedefs
Found 0 constants
Found 0 includes
Found 0 constant symbols
Found 0 function symbols
Found 0 class symbols
Passed!

* Testing decls_ffi...
Passed!

Finished all tests
--------------------------------------------
Passed all tests!
```

Reviewed By: shayne-fletcher

Differential Revision: D30858352

fbshipit-source-id: a7c4d39c9368f475a551278ce65213231e11213b
hphp/hack/src/hhbc/compile_ffi.h
hphp/hack/src/hhbc/compile_ffi_types_fwd.h