diff options
author | Don <don.j.olmstead@gmail.com> | 2018-03-20 15:55:41 -0700 |
---|---|---|
committer | Don <don.j.olmstead@gmail.com> | 2018-03-20 16:44:41 -0700 |
commit | 644c1097a8402d170603f5a0ff17efb37360dac7 (patch) | |
tree | 473b3aae687b1aa1a30bd68559035162bc0600cc /tests/pq_test.bat | |
parent | 0263e69a9346e2a3c3bcbbed8f12a9749da63900 (diff) | |
download | portable-644c1097a8402d170603f5a0ff17efb37360dac7.tar.gz portable-644c1097a8402d170603f5a0ff17efb37360dac7.tar.bz2 portable-644c1097a8402d170603f5a0ff17efb37360dac7.zip |
Fix Windows tests within CMake
Diffstat (limited to 'tests/pq_test.bat')
-rw-r--r-- | tests/pq_test.bat | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/pq_test.bat b/tests/pq_test.bat index b665874..084f06d 100644 --- a/tests/pq_test.bat +++ b/tests/pq_test.bat | |||
@@ -2,13 +2,14 @@ | |||
2 | setlocal enabledelayedexpansion | 2 | setlocal enabledelayedexpansion |
3 | REM pq_test.bat | 3 | REM pq_test.bat |
4 | 4 | ||
5 | set TEST=Debug\pq_test.exe | 5 | set pq_test_bin=%1 |
6 | if not exist %TEST% exit /b 1 | 6 | set pq_test_bin=%pq_test_bin:/=\% |
7 | if not exist %pq_test_bin% exit /b 1 | ||
7 | 8 | ||
8 | set pq_output=pq_output.txt | 9 | set pq_output=pq_output.txt |
9 | if exist %pq_output% del %pq_output% | 10 | if exist %pq_output% del %pq_output% |
10 | 11 | ||
11 | %TEST% > %pq_output% | 12 | %pq_test_bin% > %pq_output% |
12 | fc /b %pq_output% %srcdir%\pq_expected.txt | 13 | fc /b %pq_output% %srcdir%\pq_expected.txt |
13 | 14 | ||
14 | endlocal | 15 | endlocal |