19 #include "testing/testing.h"
21 #include <pxr/base/plug/registry.h>
22 #include <pxr/usd/usd/stage.h>
38 const std::string &release_dir = blender::tests::flags_test_release_dir();
39 if (release_dir.empty()) {
45 usd_datafiles_dir,
FILE_MAX, release_dir.c_str(),
"datafiles",
"usd",
nullptr);
50 usd_datafiles_dir[path_len] =
'/';
51 usd_datafiles_dir[path_len + 1] =
'\0';
53 pxr::PlugRegistry::GetInstance().RegisterPlugins(usd_datafiles_dir);
59 std::string filename =
"usd-stage-creation-test.usdc";
60 pxr::UsdStageRefPtr usd_stage = pxr::UsdStage::CreateNew(filename);
61 if (usd_stage !=
nullptr) {
65 unlink(filename.c_str());
68 FAIL() <<
"unable to find suitable USD plugin to write " << filename <<
"; looked in "
size_t BLI_path_join(char *__restrict dst, const size_t dst_len, const char *path_first,...) ATTR_NONNULL(1
TEST_F(USDStageCreationTest, JSONFileLoadingTest)