forked from facebook/infer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: The main initial goal was to disable unit tests when python 3.8 is not installed to prevent breaking the tests in that case. - add a `--disable-python-analyzers` switch to `./configure` - wire it to `./build-infer.sh` - set a `PYTHON` variable from `./configure` into the Makefiles and use it - export it to OCaml too in `Version.ml` - finally the main thing: enable the python unit tests only when we have python support Not done: propagate `BUILD_PYTHON_ANALYZERS` to OCaml as the python frontend isn't currently wired into the infer executable itself Reviewed By: vsiles Differential Revision: D45008136 fbshipit-source-id: ccf848d922144348c700ed58b45ca862de12fc7f
- Loading branch information
1 parent
4590a90
commit b176245
Showing
14 changed files
with
88 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
(* -*- tuareg -*- *) | ||
(* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*) | ||
(* NOTE: prepend dune.common to this file! *) | ||
|
||
let library = | ||
Printf.sprintf | ||
{| | ||
(library | ||
(name PythonFrontendTest) | ||
(flags | ||
(:standard | ||
-open | ||
IStdlib | ||
-open | ||
IStd | ||
-open | ||
IBase | ||
-open | ||
PythonFrontend | ||
-open | ||
Textuallib)) | ||
(libraries IStdlib IBase PythonFrontend Textuallib) | ||
(preprocess | ||
(pps ppx_deriving.std ppx_expect ppx_inline_test)) | ||
%s | ||
) | ||
|} (if python then "(inline_tests)" else "") | ||
;; | ||
|
||
Jbuild_plugin.V1.send library |