3995196072
This corrects the path to `Terminal.Core.Unit.Tests.dll` in the `runut` unit test script and makes the `runft` feature test script capable of working with _Release_ builds as well as _Debug_ builds. The path to `Terminal.Core.Unit.Tests.dll` changed when the project was restructured, and the `runut` script was never updated to reflect that change. That has now been corrected. And the `runft` script used to be hard coded to look for tests in the _Debug_ directory, but it has now been updated to use the `%_LAST_BUILD_CONF%` environment variable, so it should work for both _Debug_ and _Release_ builds. ## Validation Steps Performed I've manually confirmed that the `runut` and `runft` scripts now work as expected. Closes #8485
29 lines
1.3 KiB
Batchfile
29 lines
1.3 KiB
Batchfile
@echo off
|
|
|
|
rem Run the console unit tests.
|
|
rem Keep this file in sync with tests.xml
|
|
|
|
rem The TerminalApp.LocalTests are actually run from the TestHostApp path.
|
|
rem That's a cppwinrt project, that doesn't use %PLATFORM% in it's path when the
|
|
rem platform is Win32/x86.
|
|
rem set a helper for us to find that test
|
|
|
|
set _TestHostAppPath=%OPENCON%\%PLATFORM%\%_LAST_BUILD_CONF%\TestHostApp
|
|
if "%PLATFORM%" == "Win32" (
|
|
set _TestHostAppPath=%OPENCON%\%_LAST_BUILD_CONF%\TestHostApp
|
|
)
|
|
|
|
call %TAEF% ^
|
|
%OPENCON%\bin\%PLATFORM%\%_LAST_BUILD_CONF%\Conhost.Unit.Tests.dll ^
|
|
%OPENCON%\bin\%PLATFORM%\%_LAST_BUILD_CONF%\TextBuffer.Unit.Tests.dll ^
|
|
%OPENCON%\bin\%PLATFORM%\%_LAST_BUILD_CONF%\UnitTests_TerminalCore\Terminal.Core.Unit.Tests.dll ^
|
|
%OPENCON%\bin\%PLATFORM%\%_LAST_BUILD_CONF%\Conhost.Interactivity.Win32.Unit.Tests.dll ^
|
|
%OPENCON%\bin\%PLATFORM%\%_LAST_BUILD_CONF%\ConParser.Unit.Tests.dll ^
|
|
%OPENCON%\bin\%PLATFORM%\%_LAST_BUILD_CONF%\ConAdapter.Unit.Tests.dll ^
|
|
%OPENCON%\bin\%PLATFORM%\%_LAST_BUILD_CONF%\Types.Unit.Tests.dll ^
|
|
%OPENCON%\bin\%PLATFORM%\%_LAST_BUILD_CONF%\til.unit.tests.dll ^
|
|
%OPENCON%\bin\%PLATFORM%\%_LAST_BUILD_CONF%\UnitTests_TerminalApp\Terminal.App.Unit.Tests.dll ^
|
|
%_TestHostAppPath%\TerminalApp.LocalTests.dll ^
|
|
%*
|
|
|