mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: unit: Argument to run QNX tests
Created a command line argument '-Q' for nvgpu_unit. It represents that the tests are QNX specific tests. Change-Id: I178e220de1777c7de30f489ad9f3b5352db3aa19 Signed-off-by: asah <asah@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2013907 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Ankur Kishore <ankkishore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -44,6 +44,7 @@ struct unit_fw_args {
|
||||
bool no_color;
|
||||
int thread_count;
|
||||
bool nvtest;
|
||||
bool is_qnx;
|
||||
const char *binary_name;
|
||||
|
||||
const char *unit_name;
|
||||
|
||||
@@ -35,6 +35,7 @@ static struct option core_opts[] = {
|
||||
{ "quiet", 0, NULL, 'q' },
|
||||
{ "no-color", 0, NULL, 'C' },
|
||||
{ "nvtest", 0, NULL, 'n' },
|
||||
{ "is-qnx", 0, NULL, 'Q' },
|
||||
|
||||
{ "unit-load-path", 1, NULL, 'L' },
|
||||
{ "num-threads", 1, NULL, 'j' },
|
||||
@@ -42,7 +43,7 @@ static struct option core_opts[] = {
|
||||
{ NULL, 0, NULL, 0 }
|
||||
};
|
||||
|
||||
static const char *core_opts_str = "hvqCnL:j:";
|
||||
static const char *core_opts_str = "hvqCnQL:j:";
|
||||
|
||||
void core_print_help(struct unit_fw *fw)
|
||||
{
|
||||
@@ -64,6 +65,7 @@ void core_print_help(struct unit_fw *fw)
|
||||
" output to a file the color escape sequences will\n",
|
||||
" corrupt that file.\n",
|
||||
" -n, --nvtest Enable nvtest-formatted output results\n",
|
||||
" -Q, --is-qnx QNX specific tests\n",
|
||||
" -L, --unit-load-path <PATH>\n",
|
||||
" Path to where the unit test libraries reside.\n",
|
||||
" -j, --num-threads <COUNT>\n",
|
||||
@@ -146,6 +148,9 @@ int core_parse_args(struct unit_fw *fw, int argc, char **argv)
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
case 'Q':
|
||||
args->is_qnx = true;
|
||||
break;
|
||||
case '?':
|
||||
args->help = true;
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user