Project

General

Profile

Download (925 Bytes) Statistics
| Branch: | Tag: | Revision:
1 0cbf0839 ploc
#!/bin/bash
2
3
NOW=`date "+%y%m%d%H%M"`
4 f22632aa ploc
LUSTREC="../../_build/src/lustrec"
5 0cbf0839 ploc
mkdir -p build
6
cd build
7
8
while IFS=, read -r file main opts
9
do
10
#   echo fichier:$file
11
#   echo main:$main
12
#   echo opts:$opts
13
    if [ "$main" != "" ]; then
14 3e209698 ploc
	$LUSTREC -horn -d build -verbose 0 $opts -node $main ../$file;
15 0cbf0839 ploc
    else
16 3e209698 ploc
	$LUSTREC -horn -d build -verbose 0 $opts ../$file 
17 0cbf0839 ploc
    fi
18
    if [ $? -ne 0 ]; then 
19
      rlustrec="INVALID"; 
20
    else 
21
      rlustrec="VALID" 
22
    fi
23 3e209698 ploc
    echo z3 `basename $file .lus`.smt2 | grep unsat 
24 f1da5111 ploc
    z3 -T:10 `basename $file .lus`.smt2 | grep unsat > /dev/null
25 0cbf0839 ploc
    if [ $? -ne 0 ]; then
26 3e209698 ploc
      rz3="INVALID";
27 0cbf0839 ploc
    else
28 3e209698 ploc
      rz3="VALID"
29 0cbf0839 ploc
    fi    
30 3e209698 ploc
    echo "lustrec -horn ($rlustrec),z3 ($rz3),diff with ref ($rdiff),`dirname $file`,`basename $file`,node $main" | column -t -s',' | tee -a ../report-$NOW | grep INVALID
31 0cbf0839 ploc
# awk 'BEGIN { FS = "\" " } ; { printf "%-20s %-40s\n", $1, $2, $3}' 
32
done < ../tests_ok.list