summaryrefslogtreecommitdiffstats
path: root/userspace/unit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/unit.sh')
-rwxr-xr-xuserspace/unit.sh16
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
9LD_LIBRARY_PATH="build:build/units"
10NVGPU_UNIT=build/nvgpu_unit
11
12export LD_LIBRARY_PATH
13
14echo "$ $NVGPU_UNIT $*"
15
16$NVGPU_UNIT $*