123456789101112131415161718192021222324252627282930313233 |
- ----------------------------------------------------------------------------------------------------
- --
- -- Copyright (c) Contributors to the Open 3D Engine Project.
- -- For complete copyright and license terms please see the LICENSE at the root of this distribution.
- --
- -- SPDX-License-Identifier: Apache-2.0 OR MIT
- --
- --
- --
- ----------------------------------------------------------------------------------------------------
- g_screenshotOutputFolder = ResolvePath('@user@/Scripts/Screenshots/SceneReloadSoakTest/')
- Print('Saving screenshots to ' .. NormalizePath(g_screenshotOutputFolder))
- -- First we capture a screenshot to make sure everything is rendering correctly...
- LockFrameTime(1/30) -- frame lock on to get a consistent result
- OpenSample('RPI/SceneReloadSoakTest')
- ResizeViewport(500, 500)
- NoClipCameraController_SetFov(DegToRad(90))
- IdleSeconds(1.0)
- SelectImageComparisonToleranceLevel("Level G")
- CaptureScreenshot(g_screenshotOutputFolder .. 'screenshot.png')
- -- Unlock the frame time now that we have our screen capture, so the actual "soaking" can happen at a natural rate
- UnlockFrameTime()
- -- We let the soak test run for just a few seconds just to make sure things don't fail right away.
- -- Note that a true test of the system would be to let the soak run for more like 5 minutes
- -- without failure, but that would be too long for our normal per-check-in test suite. We could do
- -- that as part of a manual LKG test suite.
- IdleSeconds(5.0)
- OpenSample(nil)
|