-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
38 additions
and
28 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
20 changes: 10 additions & 10 deletions
20
cesiumOmniverseCppTestsExtension/bindings/PythonBindings.cpp
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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
#include "CesiumOmniverseTests.h" | ||
#include "CesiumOmniverseCppTests.h" | ||
|
||
#include <carb/BindingsPythonUtils.h> | ||
|
||
// NOLINTNEXTLINE | ||
CARB_BINDINGS("cesium.omniverse.tests.python") | ||
DISABLE_PYBIND11_DYNAMIC_CAST(cesium::omniverse::tests::ICesiumOmniverseTestsInterface) | ||
CARB_BINDINGS("cesium.omniverse.cpp.tests.python") | ||
DISABLE_PYBIND11_DYNAMIC_CAST(cesium::omniverse::tests::ICesiumOmniverseCppTestsInterface) | ||
|
||
PYBIND11_MODULE(CesiumOmniverseTestsPythonBindings, m) { | ||
PYBIND11_MODULE(CesiumOmniverseCppTestsPythonBindings, m) { | ||
|
||
using namespace cesium::omniverse::tests; | ||
|
||
m.doc() = "pybind11 cesium.omniverse.tests bindings"; | ||
m.doc() = "pybind11 cesium.omniverse.cpp.tests bindings"; | ||
|
||
// clang-format off | ||
carb::defineInterfaceClass<ICesiumOmniverseTestsInterface>( | ||
m, "ICesiumOmniverseTestsInterface", "acquire_cesium_omniverse_tests_interface", "release_cesium_omniverse_tests_interface") | ||
.def("run_all_tests", &ICesiumOmniverseTestsInterface::run_all_tests) | ||
.def("on_startup", &ICesiumOmniverseTestsInterface::onStartup) | ||
.def("on_shutdown", &ICesiumOmniverseTestsInterface::onShutdown); | ||
carb::defineInterfaceClass<ICesiumOmniverseCppTestsInterface>( | ||
m, "ICesiumOmniverseCppTestsInterface", "acquire_cesium_omniverse_tests_interface", "release_cesium_omniverse_tests_interface") | ||
.def("run_all_tests", &ICesiumOmniverseCppTestsInterface::run_all_tests) | ||
.def("on_startup", &ICesiumOmniverseCppTestsInterface::onStartup) | ||
.def("on_shutdown", &ICesiumOmniverseCppTestsInterface::onShutdown); | ||
// clang-format on | ||
} |
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
10 changes: 10 additions & 0 deletions
10
...e.cpp.tests/cesium/omniverse/cpp/tests/bindings/CesiumOmniverseCppTestsPythonBindings.pyi
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,10 @@ | ||
class ICesiumOmniverseCppTestsInterface: | ||
def __init__(self, *args, **kwargs) -> None: ... | ||
def on_shutdown(self) -> None: ... | ||
def on_startup(self, arg0: str) -> None: ... | ||
def run_all_tests(self, arg0: int) -> None: ... | ||
|
||
def acquire_cesium_omniverse_tests_interface( | ||
plugin_name: str = ..., library_path: str = ... | ||
) -> ICesiumOmniverseCppTestsInterface: ... | ||
def release_cesium_omniverse_tests_interface(arg0: ICesiumOmniverseCppTestsInterface) -> None: ... |
2 changes: 1 addition & 1 deletion
2
exts/cesium.omniverse.cpp.tests/cesium/omniverse/cpp/tests/bindings/__init__.py
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 |
---|---|---|
@@ -1 +1 @@ | ||
from .CesiumOmniverseTestsPythonBindings import * # noqa: F401 F403 | ||
from .CesiumOmniverseCppTestsPythonBindings import * # noqa: F401 F403 |
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