Skip to content

Commit

Permalink
Merge pull request #1313 from emankov/HIPIFY
Browse files Browse the repository at this point in the history
[HIPIFY][tests][fix][win] Handle the situation when there are no any hipify args
  • Loading branch information
emankov authored Jan 29, 2024
2 parents 28c8437 + e4c4166 commit d5ce851
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 d5ce851

Please sign in to comment.