Allow OCL_ICD_VENDORS to directly provide the ICD library name to load
[ocl-icd] / tests / 02-bis-LIG-icd.sh.in
1 #!/bin/bash
2
3 export OCL_ICD_DEBUG=7
4 export OCL_ICD_VENDORS="@abs_top_builddir@/.libs/libdummycl.so"
5
6 NAME="$(basename "$0")"
7
8 ./ocl_test | \
9         tee >(grep -sq "^Found 1 platforms!$" || touch "$NAME".error ) | \
10         tee >(grep -sq "^LIG$" || touch "$NAME".error )
11
12 # wait for file creation if any
13 sleep 0.5
14
15 if test -f "$NAME".error ; then
16   rm "$NAME".error
17   exit 1
18 fi