set -e

# smoke test to verify that everything gets installed correctly, and is linked.
nvidia-container-cli --help | grep -q "Command line utility for manipulating NVIDIA GPU containers."

# nvidia-container-cli --help

# will print something like this:
# Usage: nvidia-container-cli [OPTION...] COMMAND [ARG...]
# Command line utility for manipulating NVIDIA GPU containers.

#  Commands:
#   configure                  Configure a container with GPU support
#   info                       Report information about the driver and devices
#   list                       List driver components

#  Options:
#   -?, --help                 Give this help list
#   -d, --debug=FILE           Log debug information
#   -k, --load-kmods           Load kernel modules
#   -l, --ldcache=FILE         Path to the system's DSO cache
#       --no-create-imex-channels   Don't automatically create IMEX channel
#                              device nodes
#   -n, --no-pivot             Do not use pivot_root
#   -r, --root=PATH            Path to the driver root directory
#       --usage                Give a short usage message
#   -u, --user[=UID[:GID]]     User and group to use for privilege separation
#   -V, --version              Print program version

# Mandatory or optional arguments to long options are also mandatory or optional
# for any corresponding short options.
