@ -33,8 +33,8 @@ math-expect :=
math-expect-error :=
# Run the math tests with:
# make -f ${ANDROID_BUILD_TOP}/build/make/co re /math.mk RUN_MATH_TESTS=true
# $(get_build_var CKATI) -f ${ANDROID_BUILD_TOP}//build/make/co re /math.mk RUN_MATH_TESTS=true
# make -f ${ANDROID_BUILD_TOP}/build/make/co mmon /math.mk RUN_MATH_TESTS=true
# $(get_build_var CKATI) -f ${ANDROID_BUILD_TOP}//build/make/co mmon /math.mk RUN_MATH_TESTS=true
i f d e f R U N _ M A T H _ T E S T S
MATH_TEST_FAILURE :=
MATH_TEST_ERROR :=
@ -134,6 +134,10 @@ define math_gt_or_eq
$( if $ ( filter $ ( 1) ,$ ( call math_max ,$ ( 1) ,$ ( 2) ) ) ,true )
e n d e f
d e f i n e m a t h _ g t
$( if $ ( call math_gt_or_eq ,$ ( 2) ,$ ( 1) ) ,,true )
e n d e f
d e f i n e m a t h _ l t
$( if $ ( call math_gt_or_eq ,$ ( 1) ,$ ( 2) ) ,,true )
e n d e f
@ -141,6 +145,12 @@ endef
$( call math -expect -true ,( call math_gt_or_eq , 2, 1) )
$( call math -expect -true ,( call math_gt_or_eq , 1, 1) )
$( call math -expect -false ,( call math_gt_or_eq , 1, 2) )
$( call math -expect -true ,( call math_gt , 4, 3) )
$( call math -expect -false ,( call math_gt , 5, 5) )
$( call math -expect -false ,( call math_gt , 6, 7) )
$( call math -expect -false ,( call math_lt , 1, 0) )
$( call math -expect -false ,( call math_lt , 8, 8) )
$( call math -expect -true ,( call math_lt , 10, 11) )
# $1 is the variable name to increment
d e f i n e i n c _ a n d _ p r i n t