Added batch scripts to run the unittests automatically.
Added a directory to store detailled unittest results. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@271 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
7edb0c482e
commit
b51f7fff62
|
@ -0,0 +1,41 @@
|
||||||
|
|
||||||
|
rem Alexander Gessler, 12:30:08
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
set errorlevel=0
|
||||||
|
color 4e
|
||||||
|
cls
|
||||||
|
|
||||||
|
@echo off
|
||||||
|
|
||||||
|
rem
|
||||||
|
SET ARCHEXT=x64
|
||||||
|
IF %PROCESSOR_ARCHITECTURE% == x86 SET ARCHEXT=win32
|
||||||
|
|
||||||
|
|
||||||
|
SET OUTDIR=results\
|
||||||
|
SET BINDIR=..\bin\
|
||||||
|
|
||||||
|
echo #=====================================================================
|
||||||
|
echo # Open Asset Import Library - Unit & Regression test suite
|
||||||
|
echo #=====================================================================
|
||||||
|
echo #
|
||||||
|
echo # Executing the Assimp unit & regression test suites for the
|
||||||
|
echo # following build configurations.
|
||||||
|
echo #
|
||||||
|
echo # Release
|
||||||
|
echo # Release -st
|
||||||
|
echo # Release -noboost
|
||||||
|
echo # Release -dll
|
||||||
|
echo #
|
||||||
|
echo # Debug
|
||||||
|
echo # Debug -st
|
||||||
|
echo # Debug -noboost
|
||||||
|
echo # Debug -dll
|
||||||
|
echo ======================================================================
|
||||||
|
echo.
|
||||||
|
echo.
|
||||||
|
|
||||||
|
|
||||||
|
call RunUnitTestSuite.bat
|
|
@ -0,0 +1,24 @@
|
||||||
|
rem Alexander Gessler, 12:30:08
|
||||||
|
|
||||||
|
|
||||||
|
if exist %BINDIR%\%1\UnitTest.exe goto test1
|
||||||
|
|
||||||
|
echo NOT AVAILABLE. Please rebuild this configuration
|
||||||
|
echo Unable to find %BINDIR%\%1\UnitTest.exe > %OUTDIR%%2
|
||||||
|
SET FIRSTUTNA=%2
|
||||||
|
goto end:
|
||||||
|
|
||||||
|
:test1
|
||||||
|
%BINDIR%\%1\UnitTest.exe > %OUTDIR%%2
|
||||||
|
if errorlevel == 0 goto succ
|
||||||
|
|
||||||
|
echo FAILURE, check output file: %2
|
||||||
|
SET FIRSTUTFAILURE=%2
|
||||||
|
goto end
|
||||||
|
|
||||||
|
:succ
|
||||||
|
echo SUCCESS
|
||||||
|
|
||||||
|
:end
|
||||||
|
echo.
|
||||||
|
echo.
|
|
@ -0,0 +1,104 @@
|
||||||
|
rem Alexander Gessler, 12:30:08
|
||||||
|
|
||||||
|
set errorlevel=0
|
||||||
|
color 4e
|
||||||
|
cls
|
||||||
|
|
||||||
|
@echo off
|
||||||
|
|
||||||
|
rem
|
||||||
|
SET ARCHEXT=x64
|
||||||
|
IF %PROCESSOR_ARCHITECTURE% == x86 SET ARCHEXT=win32
|
||||||
|
|
||||||
|
|
||||||
|
SET OUTDIR=results\
|
||||||
|
SET BINDIR=..\bin\
|
||||||
|
SET FIRSTUTFAILURE=none
|
||||||
|
SET FIRSTUTNA=none
|
||||||
|
|
||||||
|
echo #=====================================================================
|
||||||
|
echo # Open Asset Import Library - Unittests
|
||||||
|
echo #=====================================================================
|
||||||
|
echo #
|
||||||
|
echo # Executing the Assimp unit test suite for the following
|
||||||
|
echo # build configurations (if available):
|
||||||
|
echo #
|
||||||
|
echo # Release
|
||||||
|
echo # Release -st
|
||||||
|
echo # Release -noboost
|
||||||
|
echo # Release -dll
|
||||||
|
echo #
|
||||||
|
echo # Debug
|
||||||
|
echo # Debug -st
|
||||||
|
echo # Debug -noboost
|
||||||
|
echo # Debug -dll
|
||||||
|
echo ======================================================================
|
||||||
|
echo.
|
||||||
|
echo.
|
||||||
|
|
||||||
|
echo ======================================================================
|
||||||
|
echo Config: Release (Multi-threaded, using boost)
|
||||||
|
echo ======================================================================
|
||||||
|
call RunSingleUnitTestSuite unittest_release_%ARCHEXT% release.txt
|
||||||
|
|
||||||
|
|
||||||
|
echo ======================================================================
|
||||||
|
echo Config: Release -st (Single-threaded, using boost)
|
||||||
|
echo ======================================================================
|
||||||
|
call RunSingleUnitTestSuite unittest_release-st_%ARCHEXT% release-st.txt
|
||||||
|
|
||||||
|
|
||||||
|
echo ======================================================================
|
||||||
|
echo Config: Release -noboost (NoBoost workaround, implicit -st)
|
||||||
|
echo ======================================================================
|
||||||
|
call RunSingleUnitTestSuite unittest_release-noboost_%ARCHEXT% release-st-noboost.txt
|
||||||
|
|
||||||
|
|
||||||
|
echo ======================================================================
|
||||||
|
echo Config: Release -DLL (Multi-threaded DLL, using boost)
|
||||||
|
echo ======================================================================
|
||||||
|
call RunSingleUnitTestSuite unittest_release-dll_%ARCHEXT% release-dll.txt
|
||||||
|
|
||||||
|
|
||||||
|
echo ======================================================================
|
||||||
|
echo Config: Debug (Multi-threaded, using boost)
|
||||||
|
echo ======================================================================
|
||||||
|
call RunSingleUnitTestSuite unittest_debug_%ARCHEXT% debug.txt
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
echo ======================================================================
|
||||||
|
echo Config: Debug -st (Single-threaded, using boost)
|
||||||
|
echo ======================================================================
|
||||||
|
call RunSingleUnitTestSuite unittest_debug_st_%ARCHEXT% debug-st.txt
|
||||||
|
|
||||||
|
|
||||||
|
echo ======================================================================
|
||||||
|
echo Config: Debug -noboost (NoBoost workaround, implicit -st)
|
||||||
|
echo ======================================================================
|
||||||
|
call RunSingleUnitTestSuite unittest_debug-noboost_%ARCHEXT% debug-st-noboost.txt
|
||||||
|
|
||||||
|
|
||||||
|
echo ======================================================================
|
||||||
|
echo Config: Debug -DLL (Multi-threaded, using boost)
|
||||||
|
echo ======================================================================
|
||||||
|
call RunSingleUnitTestSuite unittest_debug-dll_%ARCHEXT% debug-dll.txt
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo ----------------------------------------------------------------------
|
||||||
|
|
||||||
|
IF FIRSTUTNA==none goto end2
|
||||||
|
echo One or more test configs are not available.
|
||||||
|
|
||||||
|
:end2
|
||||||
|
IF FIRSTUTFAILURE==none goto end
|
||||||
|
echo One or more tests failed.
|
||||||
|
|
||||||
|
echo ----------------------------------------------------------------------
|
||||||
|
echo.
|
||||||
|
|
||||||
|
:end
|
||||||
|
pause
|
Loading…
Reference in New Issue