1#!/bin/bash -e 2 3current_dir=$(pwd) 4export PATH=$current_dir:$PATH 5LIT_PATH=$current_dir/llvm-lit 6LIBSPIRV_TESTS=$current_dir 7 8for 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 15done 16 17$LIT_PATH $LIBSPIRV_TESTS $@ 18