Fix Windows tests within CMake

This commit is contained in:
Don
2018-03-20 15:55:41 -07:00
parent 0263e69a93
commit 644c1097a8
9 changed files with 66 additions and 76 deletions

View File

@@ -2,13 +2,14 @@
setlocal enabledelayedexpansion
REM pq_test.bat
set TEST=Debug\pq_test.exe
if not exist %TEST% exit /b 1
set pq_test_bin=%1
set pq_test_bin=%pq_test_bin:/=\%
if not exist %pq_test_bin% exit /b 1
set pq_output=pq_output.txt
if exist %pq_output% del %pq_output%
%TEST% > %pq_output%
%pq_test_bin% > %pq_output%
fc /b %pq_output% %srcdir%\pq_expected.txt
endlocal