diff options
Diffstat (limited to 'userspace/unit.sh')
-rwxr-xr-x | userspace/unit.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/userspace/unit.sh b/userspace/unit.sh new file mode 100755 index 00000000..078512f8 --- /dev/null +++ b/userspace/unit.sh | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # | ||
4 | # Execute the unit test. Args to this script are passed on to the unit test | ||
5 | # core. This just serves to set the LD_LIBRARY_PATH environment variable such | ||
6 | # that unit tests are found and nvgpu-drv is found. | ||
7 | # | ||
8 | |||
9 | LD_LIBRARY_PATH="build:build/units" | ||
10 | NVGPU_UNIT=build/nvgpu_unit | ||
11 | |||
12 | export LD_LIBRARY_PATH | ||
13 | |||
14 | echo "$ $NVGPU_UNIT $*" | ||
15 | |||
16 | $NVGPU_UNIT $* | ||