Skip to content

Commit

Permalink
servertest: OpenCL interposer test tweaks
Browse files Browse the repository at this point in the history
- Don't run OpenCL interposer tests unless VGL_DISPLAY is unset or
  points to a 3D X server.

- Allow OpenCL interposer tests to be disabled explicitly.
  • Loading branch information
dcommander committed Feb 19, 2024
1 parent 672332f commit f4557c0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/servertest.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ onexit()
BIN=@CMAKE_RUNTIME_OUTPUT_DIRECTORY@
LIB=@CMAKE_LIBRARY_OUTPUT_DIRECTORY@
FAKEOPENCL=@VGL_FAKEOPENCL@
if [[ ${VGL_DISPLAY:-"x"} != "x" && ! $VGL_DISPLAY =~ ":" ]]; then
FAKEOPENCL=0
fi

NODL=
FAKERUTARGS=
Expand All @@ -46,6 +49,10 @@ while [ $# -gt 0 ]; do
echo "Testing without dlopen() interposer"
NODL=-nodl
;;
-noopencl)
echo "Testing without OpenCL interposer"
FAKEOPENCL=0
;;
-novgltrans)
echo "Testing without VGL Transport"
VGLTRANS=0
Expand Down

0 comments on commit f4557c0

Please sign in to comment.