summaryrefslogtreecommitdiffstats
path: root/userspace/include/unit/args.h
diff options
context:
space:
mode:
authorNicolas Benech <nbenech@nvidia.com>2018-09-25 14:37:16 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-27 17:04:17 -0400
commitc6eae929fd74f11ab13d469a38bffd4e8ba50fb5 (patch)
tree12525d29aa8934cba58c703e67bf1aa8928ccacd /userspace/include/unit/args.h
parent442cb2b1db40ae23bbcfda0624c0546da186694c (diff)
gpu: nvgpu: posix: Multithreading for unit tests
Add a -j argument to enable running unit tests on several threads. Also adds signal handling to prevent a fatal error in one thread from killing the whole unit test framework. JIRA NVGPU-1043 Change-Id: I891a547640cd005a50ffa5c06367ed46c54de012 Signed-off-by: Nicolas Benech <nbenech@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1847740 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'userspace/include/unit/args.h')
-rw-r--r--userspace/include/unit/args.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/userspace/include/unit/args.h b/userspace/include/unit/args.h
index def84a29..708a1655 100644
--- a/userspace/include/unit/args.h
+++ b/userspace/include/unit/args.h
@@ -42,6 +42,7 @@ struct unit_fw_args {
42 bool help; 42 bool help;
43 int verbose_lvl; 43 int verbose_lvl;
44 bool no_color; 44 bool no_color;
45 int thread_count;
45 46
46 const char *unit_name; 47 const char *unit_name;
47 const char *unit_load_path; 48 const char *unit_load_path;