mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: unit: add test levels
Add -t/--test-level option for the unit test framework. This correlates with the test plan levels in GVS. L0 tests are a subset of the L1 tests. Currently, only test levels 0 and 1 are supported. The test output has been updated to display skipped tests. Skipped tests are not included in the test dump. JIRA NVGPU-2251 Change-Id: Icc2ff19a81529be8526e89f70983e96040390e00 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2085280 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f7860833f1
commit
c0d5a715bd
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -326,16 +326,16 @@ static int test_register_space(struct unit_module *m, struct gk20a *g,
|
||||
|
||||
|
||||
struct unit_module_test posix_mockio_tests[] = {
|
||||
UNIT_TEST(register_io_callbacks, test_register_io_callbacks, NULL),
|
||||
UNIT_TEST(writel, test_writel, &nvgpu_writel_args),
|
||||
UNIT_TEST(writel_check, test_writel, &nvgpu_writel_check_args),
|
||||
UNIT_TEST(bar1_writel, test_writel, &nvgpu_bar1_writel_args),
|
||||
UNIT_TEST(register_io_callbacks, test_register_io_callbacks, NULL, 0),
|
||||
UNIT_TEST(writel, test_writel, &nvgpu_writel_args, 0),
|
||||
UNIT_TEST(writel_check, test_writel, &nvgpu_writel_check_args, 0),
|
||||
UNIT_TEST(bar1_writel, test_writel, &nvgpu_bar1_writel_args, 0),
|
||||
UNIT_TEST(usermode_writel, test_writel,
|
||||
&nvgpu_usermode_writel_args),
|
||||
UNIT_TEST(readl, test_readl, &nvgpu_readl_args),
|
||||
UNIT_TEST(__readl, test_readl, &__nvgpu_readl_args),
|
||||
UNIT_TEST(bar1_readl, test_readl, &nvgpu_bar1_readl_args),
|
||||
UNIT_TEST(test_register_space, test_register_space, NULL),
|
||||
&nvgpu_usermode_writel_args, 0),
|
||||
UNIT_TEST(readl, test_readl, &nvgpu_readl_args, 0),
|
||||
UNIT_TEST(__readl, test_readl, &__nvgpu_readl_args, 0),
|
||||
UNIT_TEST(bar1_readl, test_readl, &nvgpu_bar1_readl_args, 0),
|
||||
UNIT_TEST(test_register_space, test_register_space, NULL, 0),
|
||||
};
|
||||
|
||||
UNIT_MODULE(posix_mockio, posix_mockio_tests, UNIT_PRIO_POSIX_TEST);
|
||||
|
||||
Reference in New Issue
Block a user