Skip to content

Commit

Permalink
[HIPIFY][tests][fix][win] Handle the situation when there is no any h…
Browse files Browse the repository at this point in the history
…ipify args
  • Loading branch information
emankov committed Jan 29, 2024
1 parent 28c8437 commit e4c4166
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions tests/run_test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,23 @@ set all_args=%*
if %NUM% EQU 1 (
set HIPIFY_OPTS=%6
call set clang_args=%%all_args:*%6=%%
)
if %NUM% EQU 2 (
) else if %NUM% EQU 2 (
set HIPIFY_OPTS=%6 %7
call set clang_args=%%all_args:*%7=%%
)
if %NUM% EQU 3 (
) else if %NUM% EQU 3 (
set HIPIFY_OPTS=%6 %7 %8
shift
call set clang_args=%%all_args:*%8=%%
)
if %NUM% EQU 4 (
) else if %NUM% EQU 4 (
set HIPIFY_OPTS=%6 %7 %8 %9
shift
call set clang_args=%%all_args:*%9=%%
)
if %NUM% EQU 5 (
) else if %NUM% EQU 5 (
shift
call set HIPIFY_OPTS=%%5 %%6 %%7 %%8 %%9
) else (
set clang_args=%%all_args:*%5=%%
set NUM=0
)
if %NUM% EQU 5 (
shift
Expand Down

0 comments on commit e4c4166

Please sign in to comment.