-
Notifications
You must be signed in to change notification settings - Fork 427
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
Refactor GfxReplayTest::testSimulatorIntegration #1855
Conversation
4678aa7
to
a0639b4
Compare
…ulator instance record and play the playback file.
a0639b4
to
6cf39a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactor looks good to me, but curious about the log output here for CI testing.
@mosra I see the following in the CI log, but number 5 should be testSimulatorIntegration
and instead displays as getNumberOfChildrenOfRoot
which is a helper function called within the latter test. Is this a bug or am I missing something?
Test command: /home/circleci/project/habitat-sim/build/tests/GfxReplayTest
9: Environment variables:
9: HABITAT_SIM_LOG=quiet
9: MAGNUM_LOG=QUIET
9: Test timeout computed to be: 10000000
9: Starting GfxReplayTest with 5 test cases...
9: OK [1] testRecorder()
9: OK [2] testPlayer()
9: [15:38:08:271680]:[Gfx] Player.cpp(37)::readKeyframesFromFile : File file_that_does_not_exist.json not found.
9: OK [3] testPlayerReadMissingFile()
9: [15:38:08:271933]:[IO] Json.cpp(70)::parseJsonFile : Parse error reading /home/circleci/project/habitat-sim/src/../data/./gfx_replay_test.json Error code 4 at 1
9: [15:38:08:272044]:[Gfx] Player.cpp(44)::readKeyframesFromFile : Failed to parse keyframes from /home/circleci/project/habitat-sim/src/../data/./gfx_replay_test.json .
9: OK [4] testPlayerReadInvalidFile()
9: [15:38:08:276886]:[Core] ManagedContainer.h(143)::registerObject : <Scene Instance> : No valid handle specified to register this Scene Instance managed object. Aborting.
9: [15:38:08:276960]:[Core] ManagedContainer.h(143)::registerObject : <Scene Instance> : No valid handle specified to register this Scene Instance managed object. Aborting.
9: OK [5] getNumberOfChildrenOfRoot()
9: Finished GfxReplayTest with 0 errors out of 79 checks.
9/24 Test #9: GfxReplayTest .................... Passed 0.32 sec
Not a bug, but a consequence of how the test function name is captured via the
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, let's merge it.
Motivation and Context
The
GfxReplayTest::testSimulatorIntegration
test is currently using the same simulator instance to record and play a playback file. This doesn't model real use cases and may hide issues.This changeset refactors the test so that separate simulator instances record and play.
How Has This Been Tested
Tests are successful locally.
Types of changes
Checklist