mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-06 03:05:31 -05:00
24 lines
586 B
Bash
Executable file
24 lines
586 B
Bash
Executable file
#!/bin/bash
|
|
|
|
CURDIR=`dirname $0`
|
|
SOLVER="$CURDIR/../main.exe"
|
|
|
|
solvertest () {
|
|
# FIXME
|
|
#for f in `find -L $1 -type f -name '*.cnf' -o -name '*.smt2'`
|
|
for f in `find -L $1 -type f -name '*.cnf'`
|
|
do
|
|
echo -ne "\r\033[KTesting $f..."
|
|
"$SOLVER" -s $3 -time 30s -size 1G -check $f | grep $2
|
|
RET=$?
|
|
if [ $RET -ne 0 ];
|
|
then
|
|
echo -e "\r\033[K\e[31m[KO]\e[0m $3 - $f"
|
|
exit 2
|
|
fi
|
|
done
|
|
echo -e "\r\033[K\e[32m[OK]\e[0m $3/$2"
|
|
}
|
|
|
|
solvertest "$CURDIR/sat/" "Sat" $1
|
|
solvertest "$CURDIR/unsat/" "Unsat" $1
|