gpu: nvgpu: unit: init: add testing for get_litter API

Add unit testing for gv11b_get_litter_value().

JIRA NVGPU-927

Change-Id: I9ddfbe5780ce1a383818672837f8f052c663cac7
Signed-off-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2245610
Reviewed-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Philip Elcan
2019-11-22 14:03:02 -05:00
committed by Alex Waterman
parent a6c4eb4c14
commit d9230e4087
3 changed files with 131 additions and 0 deletions

View File

@@ -69,6 +69,27 @@ int test_setup_env(struct unit_module *m,
int test_free_env(struct unit_module *m,
struct gk20a *g, void *args);
/**
* Test specification for: test_get_litter_value
*
* Description: Validate gv11b_get_litter_value()
*
* Test Type: Feature based
*
* Input: None
*
* Steps:
* - Call gv11b_get_litter_value() with all valid values and verify correct
* return value.
* - Call gv11b_get_litter_value() with invalid value and verify BUG().
*
* Output:
* - UNIT_FAIL if nvgpu_can_busy() returns the incorrect value.
* - UNIT_SUCCESS otherwise
*/
int test_get_litter_value(struct unit_module *m,
struct gk20a *g, void *args);
/**
* Test specification for: test_can_busy
*