@@ -69,7 +69,7 @@ with_or_test = unittest.make(_with_or_test)
69
69
def _create_config_settings ():
70
70
native .config_setting (
71
71
name = "condition1" ,
72
- values = {"cpu " : "ppc " },
72
+ values = {"stamp " : "1 " },
73
73
)
74
74
native .config_setting (
75
75
name = "condition2" ,
@@ -116,9 +116,9 @@ def _set_conditions(condition_list):
116
116
fail ("condition_list must be a list of 3 booleans" )
117
117
ans = {}
118
118
if condition_list [0 ]:
119
- ans ["//command_line_option:cpu " ] = "ppc "
119
+ ans ["//command_line_option:stamp " ] = "1 "
120
120
else :
121
- ans ["//command_line_option:cpu " ] = "k8 "
121
+ ans ["//command_line_option:stamp " ] = "0 "
122
122
if condition_list [1 ]:
123
123
ans ["//command_line_option:compilation_mode" ] = "opt"
124
124
else :
@@ -305,7 +305,7 @@ def _and_config_setting_group_all_matches_fail_test():
305
305
###################################################
306
306
and_config_setting_group_single_setting_matches_test = analysistest .make (
307
307
_expect_matches ,
308
- config_settings = {"//command_line_option:cpu " : "ppc " },
308
+ config_settings = {"//command_line_option:stamp " : "1 " },
309
309
)
310
310
311
311
def _and_config_setting_group_single_setting_matches_test ():
@@ -329,7 +329,7 @@ def _and_config_setting_group_single_setting_matches_test():
329
329
###################################################
330
330
and_config_setting_group_single_setting_fails_test = analysistest .make (
331
331
_expect_doesnt_match ,
332
- config_settings = {"//command_line_option:cpu " : "x86 " },
332
+ config_settings = {"//command_line_option:stamp " : "0 " },
333
333
)
334
334
335
335
def _and_config_setting_group_single_setting_fails_test ():
@@ -497,7 +497,7 @@ def _or_config_setting_group_all_conds_match_test():
497
497
###################################################
498
498
or_config_setting_group_single_setting_matches_test = analysistest .make (
499
499
_expect_matches ,
500
- config_settings = {"//command_line_option:cpu " : "ppc " },
500
+ config_settings = {"//command_line_option:stamp " : "1 " },
501
501
)
502
502
503
503
def _or_config_setting_group_single_setting_matches_test ():
@@ -521,7 +521,7 @@ def _or_config_setting_group_single_setting_matches_test():
521
521
###################################################
522
522
or_config_setting_group_single_setting_fails_test = analysistest .make (
523
523
_expect_doesnt_match ,
524
- config_settings = {"//command_line_option:cpu " : "x86 " },
524
+ config_settings = {"//command_line_option:stamp " : "0 " },
525
525
)
526
526
527
527
def _or_config_setting_group_single_setting_fails_test ():
0 commit comments