mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
import BLAS test suite
This commit is contained in:
28
blas/testing/runblastest.sh
Executable file
28
blas/testing/runblastest.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
black='\E[30m'
|
||||
red='\E[31m'
|
||||
green='\E[32m'
|
||||
yellow='\E[33m'
|
||||
blue='\E[34m'
|
||||
magenta='\E[35m'
|
||||
cyan='\E[36m'
|
||||
white='\E[37m'
|
||||
|
||||
if [ -f $2 ]; then
|
||||
data=$2
|
||||
if [ -f $1.summ ]; then rm $1.summ; fi
|
||||
if [ -f $1.snap ]; then rm $1.snap; fi
|
||||
else
|
||||
data=$1
|
||||
fi
|
||||
|
||||
if ! ./$1 < $data > /dev/null 2> .runtest.log ; then
|
||||
echo -e $red Test $1 failed: $black
|
||||
echo -e $blue
|
||||
cat .runtest.log
|
||||
echo -e $black
|
||||
exit 1
|
||||
else
|
||||
echo -e $green Test $1 passed$black
|
||||
fi
|
||||
Reference in New Issue
Block a user