Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests failing #83

Open
nyue opened this issue May 3, 2018 · 5 comments
Open

Unit tests failing #83

nyue opened this issue May 3, 2018 · 5 comments

Comments

@nyue
Copy link

nyue commented May 3, 2018

Heads up about unit tests failing on HEAD

$ make test
Running tests...
Test project /mnt/scratch/nyue/projects/AL_USDMaya/build
Start 1: AL_MayaUtilsTests
1/4 Test #1: AL_MayaUtilsTests ................ Passed 52.19 sec
Start 2: TestAL_USDMaya
2/4 Test #2: TestAL_USDMaya ................... Passed 21.25 sec
Start 3: TestAdditionalSchemas
3/4 Test #3: TestAdditionalSchemas ............***Failed 0.02 sec
Start 4: TestAdditionalTranslators
4/4 Test #4: TestAdditionalTranslators ........***Failed 6.87 sec

50% tests passed, 2 tests failed out of 4

Total Test time (real) = 80.35 sec

The following tests FAILED:
3 - TestAdditionalSchemas (Failed)
4 - TestAdditionalTranslators (Failed)
Errors while running CTest
make: *** [test] Error 8

@fabal
Copy link
Collaborator

fabal commented May 3, 2018

Thanks for the heads up.
Could you specify which HEAD is failing? Is it on master or develop? Also which version of Maya are you using?
FYI, internally, we've got automated tests validating the public build before it's released. On our side, these tests don't fail (develop and master).

@nyue
Copy link
Author

nyue commented May 6, 2018

I did a clean pull, it seems that the CTest target has been removed so I ran the test manually

[nyue@atomic2d043 AL_USDMaya_git]$ git status
On branch master
Your branch is up to date with 'origin/master'.

[nyue@atomic2d043 AL_USDMaya_git]$ git log | head
commit 5627cf6
Merge: fdc45f4 85b0cc4
Author: BuildBoy Jenkins [email protected]
Date: Wed May 2 22:52:05 2018 +1000

0.27.8

================= results ==================
[nyue@atomic2d043 build]$ ./schemas/AL/usd/schemas/tests/testMayaSchemas
[==========] Running 4 tests from 2 test cases.
[----------] Global test environment set-up.
[----------] 2 tests from testMayaSchemas
[ RUN ] testMayaSchemas.verifyPlugin
[ OK ] testMayaSchemas.verifyPlugin (47 ms)
[ RUN ] testMayaSchemas.testMayaReferenceAttributes
[ OK ] testMayaSchemas.testMayaReferenceAttributes (39 ms)
[----------] 2 tests from testMayaSchemas (86 ms total)

[----------] 2 tests from testModelAPI
[ RUN ] testModelAPI.testComputeSelectability
Coding Error: in _SetMetadataImpl at line 96 of /mnt/scratch/nyue/projects/USD/USD_git/pxr/usd/lib/usd/object.cpp -- Unregistered metadata key: al_usdmaya_selectability
/mnt/scratch/nyue/projects/AL_USDMaya/AL_USDMaya_git/schemas/AL/usd/schemas/tests/testModelAPI.cpp:37: Failure
Value of: v == AL_USDMayaSchemasTokens->selectability_unselectable
Actual: false
Expected: true
[ FAILED ] testModelAPI.testComputeSelectability (1 ms)
[ RUN ] testModelAPI.testComputeLock
Coding Error: in _SetMetadataImpl at line 96 of /mnt/scratch/nyue/projects/USD/USD_git/pxr/usd/lib/usd/object.cpp -- Unregistered metadata key: al_usdmaya_lock
/mnt/scratch/nyue/projects/AL_USDMaya/AL_USDMaya_git/schemas/AL/usd/schemas/tests/testModelAPI.cpp:71: Failure
Value of: v == AL_USDMayaSchemasTokens->lock_transform
Actual: false
Expected: true
[ FAILED ] testModelAPI.testComputeLock (1 ms)
[----------] 2 tests from testModelAPI (2 ms total)

[----------] Global test environment tear-down
[==========] 4 tests from 2 test cases ran. (88 ms total)
[ PASSED ] 2 tests.
[ FAILED ] 2 tests, listed below:
[ FAILED ] testModelAPI.testComputeSelectability
[ FAILED ] testModelAPI.testComputeLock

2 FAILED TESTS

@fabal
Copy link
Collaborator

fabal commented May 6, 2018

Hi Nicholas,
CTest configuration hasn't changed lately so you should try and run the tests using it.
Let us know how it goes.

@fabal
Copy link
Collaborator

fabal commented May 13, 2018

Actually you were right @nyue . The tests have been accidentally disabled by default a while ago when pixar's CMake files have been updated, this will be fixed shortly.
In the meantime, as a workaround, you can add

enable_testing()

to the main CMakeLists.txt and the test targets will be generated.

Thanks for the feedback.

@99alfie
Copy link

99alfie commented May 10, 2019

does not seem to be a bug. This error:
Unregistered metadata key: al_usdmaya_selectability
seems to indicate that PXR_PLUGINPATH_NAME has not been set to the AL_USDMayaSchemas dir, which would be at <INSTALL_LOCATION>/lib/usd/AL_USDMayaSchemas/resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants