[HIPIFY][tests][win] Fix run_test.bat

All checks should not occur in input file for FileCheck. The issue found on CHECK-NOT.
Change removes all lit checks in the hipified file based on regexp, and the resulted stdout is fed as stdin for FileCheck.


[ROCm/hip commit: 368db8bf6c]
Tento commit je obsažen v:
Evgeny Mankov
2018-01-23 21:43:18 +03:00
rodič 13a3d74920
revize 974f8022b1
+3 -2
Zobrazit soubor
@@ -1,4 +1,4 @@
@echo off
rem @echo off
setlocal
for %%i in (FileCheck.exe) do set FILE_CHECK=%%~$PATH:i
@@ -14,5 +14,6 @@ set clang_args=%4%clang_args%
%HIPIFY% -o=%TMP_FILE% %IN_FILE% -- %clang_args%
if errorlevel 1 (echo Error: hipify-clang.exe failed with exit code: %errorlevel% && exit /b %errorlevel%)
%FILE_CHECK% %IN_FILE% -input-file=%TMP_FILE%
findstr /v /r /c:"[ ]*//[ ]*[CHECK*|RUN]" %TMP_FILE% | %FILE_CHECK% %IN_FILE%
if errorlevel 1 (echo Error: FileCheck.exe failed with exit code: %errorlevel% && exit /b %errorlevel%)