-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99d4a56
commit bef3511
Showing
3 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
set(TEST_PRIM_PURE_NEW_IR_CASES test_prim_program) | ||
|
||
foreach(target ${TEST_PRIM_PURE_NEW_IR_CASES}) | ||
py_test_modules(${target} MODULES ${target} ENVS GLOG_v=1 | ||
FLAGS_enable_new_ir_api=true) | ||
endforeach() | ||
|
||
file( | ||
GLOB TEST_INTERP_CASES | ||
GLOB TEST_PRIM_TRANS_NEW_IR_CASES | ||
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
"test_*.py") | ||
string(REPLACE ".py" "" TEST_INTERP_CASES "${TEST_INTERP_CASES}") | ||
string(REPLACE ".py" "" TEST_PRIM_TRANS_NEW_IR_CASES | ||
"${TEST_PRIM_TRANS_NEW_IR_CASES}") | ||
|
||
list(REMOVE_ITEM TEST_PRIM_TRANS_NEW_IR_CASES ${TEST_PRIM_PURE_NEW_IR_CASES}) | ||
|
||
foreach(target ${TEST_INTERP_CASES}) | ||
foreach(target ${TEST_PRIM_TRANS_NEW_IR_CASES}) | ||
py_test_modules(${target} MODULES ${target} ENVS GLOG_v=1 | ||
FLAGS_enable_new_ir_in_executor=true) | ||
endforeach() |