Add verbose flag and report progress.
This commit is contained in:
committed by
Matt Pharr
parent
7854a71ea9
commit
6dfd74c74c
14
run_tests.sh
14
run_tests.sh
@@ -1,10 +1,24 @@
|
|||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
|
|
||||||
surprises=0
|
surprises=0
|
||||||
|
verbose=false
|
||||||
|
number=$(ls -1 tests/*.ispc|wc -l)
|
||||||
|
counter=1
|
||||||
|
|
||||||
|
while getopts ":v" opt;do
|
||||||
|
case $opt in
|
||||||
|
v) verbose=true
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
echo Running correctness tests
|
echo Running correctness tests
|
||||||
|
|
||||||
for i in tests/*.ispc; do
|
for i in tests/*.ispc; do
|
||||||
|
if $verbose; then
|
||||||
|
echo -en "Running test $counter of $number.\r"
|
||||||
|
fi
|
||||||
|
(( counter++ ))
|
||||||
bc=${i%%ispc}bc
|
bc=${i%%ispc}bc
|
||||||
ispc -O2 $i -woff -o $bc --emit-llvm --target=sse4
|
ispc -O2 $i -woff -o $bc --emit-llvm --target=sse4
|
||||||
if [[ $? != 0 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user