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:
asah
2019-02-07 18:23:58 +05:30
committed by mobile promotions
parent 49506f257e
commit 49255caeff
2 changed files with 7 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ struct unit_fw_args {
bool no_color; bool no_color;
int thread_count; int thread_count;
bool nvtest; bool nvtest;
bool is_qnx;
const char *binary_name; const char *binary_name;
const char *unit_name; const char *unit_name;

View File

@@ -35,6 +35,7 @@ static struct option core_opts[] = {
{ "quiet", 0, NULL, 'q' }, { "quiet", 0, NULL, 'q' },
{ "no-color", 0, NULL, 'C' }, { "no-color", 0, NULL, 'C' },
{ "nvtest", 0, NULL, 'n' }, { "nvtest", 0, NULL, 'n' },
{ "is-qnx", 0, NULL, 'Q' },
{ "unit-load-path", 1, NULL, 'L' }, { "unit-load-path", 1, NULL, 'L' },
{ "num-threads", 1, NULL, 'j' }, { "num-threads", 1, NULL, 'j' },
@@ -42,7 +43,7 @@ static struct option core_opts[] = {
{ NULL, 0, NULL, 0 } { 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) 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", " output to a file the color escape sequences will\n",
" corrupt that file.\n", " corrupt that file.\n",
" -n, --nvtest Enable nvtest-formatted output results\n", " -n, --nvtest Enable nvtest-formatted output results\n",
" -Q, --is-qnx QNX specific tests\n",
" -L, --unit-load-path <PATH>\n", " -L, --unit-load-path <PATH>\n",
" Path to where the unit test libraries reside.\n", " Path to where the unit test libraries reside.\n",
" -j, --num-threads <COUNT>\n", " -j, --num-threads <COUNT>\n",
@@ -146,6 +148,9 @@ int core_parse_args(struct unit_fw *fw, int argc, char **argv)
return -1; return -1;
} }
break; break;
case 'Q':
args->is_qnx = true;
break;
case '?': case '?':
args->help = true; args->help = true;
return -1; return -1;