Home | History | Annotate | Download | only in tests
      1 #!/bin/bash -e
      2 
      3 current_dir=$(pwd)
      4 export PATH=$current_dir:$PATH
      5 LIT_PATH=$current_dir/llvm-lit
      6 LIBSPIRV_TESTS=$current_dir
      7 
      8 for arg in $@ ; do
      9   if [[ -a "$arg" ]] ; then
     10     # Looks like the user specified one or more files,
     11     # so don't implicitly specify the current directory.
     12     LIBSPIRV_TESTS=
     13     break
     14   fi
     15 done
     16 
     17 $LIT_PATH $LIBSPIRV_TESTS $@
     18