diff options
| author | Jason Maskell <[email protected]> | 2016-05-09 10:39:54 +0200 |
|---|---|---|
| committer | Jason Maskell <[email protected]> | 2016-05-09 10:39:54 +0200 |
| commit | 79b3462799c28af8ba586349bd671b1b56e72353 (patch) | |
| tree | 3b06e36c390254c0dc7f3733a0d32af213d87293 /test/testing_scripts | |
| download | waveworks_archive-79b3462799c28af8ba586349bd671b1b56e72353.tar.xz waveworks_archive-79b3462799c28af8ba586349bd671b1b56e72353.zip | |
Initial commit with PS4 and XBone stuff trimmed.
Diffstat (limited to 'test/testing_scripts')
| -rw-r--r-- | test/testing_scripts/readme.txt | 5 | ||||
| -rw-r--r-- | test/testing_scripts/test_platform.bat | 42 | ||||
| -rw-r--r-- | test/testing_scripts/test_platform_config.bat | 33 | ||||
| -rw-r--r-- | test/testing_scripts/test_platform_config_variation.bat | 50 | ||||
| -rw-r--r-- | test/testing_scripts/win64/debug/d3d10.bat | 2 | ||||
| -rw-r--r-- | test/testing_scripts/win64/debug/d3d11.bat | 2 | ||||
| -rw-r--r-- | test/testing_scripts/win64/debug/d3d9.bat | 2 | ||||
| -rw-r--r-- | test/testing_scripts/win64/debug/gl2.bat | 2 |
8 files changed, 138 insertions, 0 deletions
diff --git a/test/testing_scripts/readme.txt b/test/testing_scripts/readme.txt new file mode 100644 index 0000000..9c50510 --- /dev/null +++ b/test/testing_scripts/readme.txt @@ -0,0 +1,5 @@ +Top-level testing scripts are stored in the root of this dir. + +Auto-generated testing scripts are then generated into sub-dirs. + +To test the entirety of a given platform, drag the platform sub-dir (e.g. 'win32') onto the test_platform.bat script diff --git a/test/testing_scripts/test_platform.bat b/test/testing_scripts/test_platform.bat new file mode 100644 index 0000000..bc2817d --- /dev/null +++ b/test/testing_scripts/test_platform.bat @@ -0,0 +1,42 @@ +@REM This code contains NVIDIA Confidential Information and is disclosed +@REM under the Mutual Non-Disclosure Agreement. +@REM +@REM Notice +@REM ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES +@REM NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +@REM THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT, +@REM MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. +@REM +@REM NVIDIA Corporation assumes no responsibility for the consequences of use of such +@REM information or for any infringement of patents or other rights of third parties that may +@REM result from its use. No license is granted by implication or otherwise under any patent +@REM or patent rights of NVIDIA Corporation. No third party distribution is allowed unless +@REM expressly authorized by NVIDIA. Details are subject to change without notice. +@REM This code supersedes and replaces all information previously supplied. +@REM NVIDIA Corporation products are not authorized for use as critical +@REM components in life support devices or systems without express written approval of +@REM NVIDIA Corporation. +@REM +@REM Copyright � 2008- 2013 NVIDIA Corporation. All rights reserved. +@REM +@REM NVIDIA Corporation and its licensors retain all intellectual property and proprietary +@REM rights in and to this software and related documentation and any modifications thereto. +@REM Any use, reproduction, disclosure or distribution of this software and related +@REM documentation without an express license agreement from NVIDIA Corporation is +@REM strictly prohibited. + +:config +@set PLATFORMDIR=%1 +@set PLATFORMNAME=%~n1% + +:init_summary +@set PLATFORM_OUTDIR=%~dp0\..\testing_output\%PLATFORMNAME%\ +@mkdir %PLATFORM_OUTDIR% +@set TEST_SUMMARY_FILE=%PLATFORM_OUTDIR%summary.txt +@echo Results summary... > %TEST_SUMMARY_FILE% + +forfiles /p %PLATFORMDIR% /c "cmd /c %~dp0\test_platform_config.bat %PLATFORMDIR%@relpath %PLATFORMNAME%" + +@type %TEST_SUMMARY_FILE% + +pause diff --git a/test/testing_scripts/test_platform_config.bat b/test/testing_scripts/test_platform_config.bat new file mode 100644 index 0000000..379a20d --- /dev/null +++ b/test/testing_scripts/test_platform_config.bat @@ -0,0 +1,33 @@ +@REM This code contains NVIDIA Confidential Information and is disclosed +@REM under the Mutual Non-Disclosure Agreement. +@REM +@REM Notice +@REM ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES +@REM NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +@REM THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT, +@REM MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. +@REM +@REM NVIDIA Corporation assumes no responsibility for the consequences of use of such +@REM information or for any infringement of patents or other rights of third parties that may +@REM result from its use. No license is granted by implication or otherwise under any patent +@REM or patent rights of NVIDIA Corporation. No third party distribution is allowed unless +@REM expressly authorized by NVIDIA. Details are subject to change without notice. +@REM This code supersedes and replaces all information previously supplied. +@REM NVIDIA Corporation products are not authorized for use as critical +@REM components in life support devices or systems without express written approval of +@REM NVIDIA Corporation. +@REM +@REM Copyright � 2008- 2013 NVIDIA Corporation. All rights reserved. +@REM +@REM NVIDIA Corporation and its licensors retain all intellectual property and proprietary +@REM rights in and to this software and related documentation and any modifications thereto. +@REM Any use, reproduction, disclosure or distribution of this software and related +@REM documentation without an express license agreement from NVIDIA Corporation is +@REM strictly prohibited. + +:config +@set CONFIGDIR=%1 +@set CONFIGNAME=%~n1% +@set PLATFORM=%2 + +forfiles /m *.bat /p %CONFIGDIR% /c "cmd /c call %~dp0\test_platform_config_variation.bat %CONFIGDIR%@relpath %CONFIGNAME% %PLATFORM%" diff --git a/test/testing_scripts/test_platform_config_variation.bat b/test/testing_scripts/test_platform_config_variation.bat new file mode 100644 index 0000000..4ac8c49 --- /dev/null +++ b/test/testing_scripts/test_platform_config_variation.bat @@ -0,0 +1,50 @@ +@REM This code contains NVIDIA Confidential Information and is disclosed +@REM under the Mutual Non-Disclosure Agreement. +@REM +@REM Notice +@REM ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES +@REM NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +@REM THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT, +@REM MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. +@REM +@REM NVIDIA Corporation assumes no responsibility for the consequences of use of such +@REM information or for any infringement of patents or other rights of third parties that may +@REM result from its use. No license is granted by implication or otherwise under any patent +@REM or patent rights of NVIDIA Corporation. No third party distribution is allowed unless +@REM expressly authorized by NVIDIA. Details are subject to change without notice. +@REM This code supersedes and replaces all information previously supplied. +@REM NVIDIA Corporation products are not authorized for use as critical +@REM components in life support devices or systems without express written approval of +@REM NVIDIA Corporation. +@REM +@REM Copyright � 2008- 2013 NVIDIA Corporation. All rights reserved. +@REM +@REM NVIDIA Corporation and its licensors retain all intellectual property and proprietary +@REM rights in and to this software and related documentation and any modifications thereto. +@REM Any use, reproduction, disclosure or distribution of this software and related +@REM documentation without an express license agreement from NVIDIA Corporation is +@REM strictly prohibited. + +:config +@set VARIATIONBATCHFILE=%1 +@set VARIATIONNAME=%~n1% +@set CONFIG=%2 +@set PLATFORM=%3 +@set DIFF_TOOL=%~dp0..\..\..\..\..\external\ImageMagick\ImageMagick-6.8.5-6\compare.exe + +:map_ref_platform +@set REFPLATFORM=%PLATFORM:64=32% + +:info_msg +@echo TESTING: %REFPLATFORM%.%PLATFORM%.%CONFIG%.%VARIATIONNAME% >> %TEST_SUMMARY_FILE% + +:dir_paths +@set IMG_OUT=%~dp0\..\testing_output\%PLATFORM%\%CONFIG%\ +@set IMG_REF=%~dp0\..\testing_reference\%REFPLATFORM%\ +@mkdir %IMG_OUT% + +:run_the_test +@call %VARIATIONBATCHFILE% + +:compare_output +%DIFF_TOOL% -metric AE %IMG_OUT%_%VARIATIONNAME%.%IMGEXT% %IMG_REF%_%VARIATIONNAME%.%IMGEXT% %IMG_OUT%_%VARIATIONNAME%_diff.%IMGEXT% 2>> %TEST_SUMMARY_FILE% diff --git a/test/testing_scripts/win64/debug/d3d10.bat b/test/testing_scripts/win64/debug/d3d10.bat new file mode 100644 index 0000000..5cbb1fb --- /dev/null +++ b/test/testing_scripts/win64/debug/d3d10.bat @@ -0,0 +1,2 @@ +set IMGEXT=bmp +%~dp0\..\..\..\..\test\d3d10\win64\debug\waveworks_test_d3d10_debug.exe -noaa -startframe 0 -endframe 50 - sliceframe 60 -readback 1 -quality 0 -screenshot %IMG_OUT%_d3d10.%IMGEXT% diff --git a/test/testing_scripts/win64/debug/d3d11.bat b/test/testing_scripts/win64/debug/d3d11.bat new file mode 100644 index 0000000..fefa774 --- /dev/null +++ b/test/testing_scripts/win64/debug/d3d11.bat @@ -0,0 +1,2 @@ +set IMGEXT=bmp +%~dp0\..\..\..\..\test\d3d11\win64\debug\waveworks_test_d3d11_debug.exe -noaa -startframe 0 -endframe 50 - sliceframe 60 -readback 1 -quality 0 -screenshot %IMG_OUT%_d3d11.%IMGEXT% diff --git a/test/testing_scripts/win64/debug/d3d9.bat b/test/testing_scripts/win64/debug/d3d9.bat new file mode 100644 index 0000000..1f0c619 --- /dev/null +++ b/test/testing_scripts/win64/debug/d3d9.bat @@ -0,0 +1,2 @@ +set IMGEXT=bmp +%~dp0\..\..\..\..\test\d3d9\win64\debug\waveworks_test_d3d9_debug.exe -noaa -startframe 0 -endframe 50 - sliceframe 60 -readback 1 -quality 0 -screenshot %IMG_OUT%_d3d9.%IMGEXT% diff --git a/test/testing_scripts/win64/debug/gl2.bat b/test/testing_scripts/win64/debug/gl2.bat new file mode 100644 index 0000000..277a258 --- /dev/null +++ b/test/testing_scripts/win64/debug/gl2.bat @@ -0,0 +1,2 @@ +set IMGEXT=tga +%~dp0\..\..\..\..\test\gl2\win64\debug\waveworks_test_gl2_debug.exe -noaa -startframe 0 -endframe 50 - sliceframe 60 -readback 1 -quality 0 -screenshot %IMG_OUT%_gl2.%IMGEXT% |