mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
2c48825160
git-svn-id: file:///svn/toku/tokudb@33433 c7de825b-a66e-492c-adef-691d508d4ae1
19 lines
No EOL
416 B
Bash
Executable file
19 lines
No EOL
416 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# exit 1 if cilkscreen finds errors
|
|
|
|
function cleanup() {
|
|
if [ "$logfile" != "" ] ; then rm $logfile; logfile=; fi
|
|
}
|
|
|
|
trap cleanup SIGINT
|
|
logfile=$(mktemp /tmp/toku_cilkscreen.XXXXXXXX)
|
|
cilkscreen $* 2>$logfile
|
|
exitcode=$?
|
|
if [ $exitcode = 0 ] ; then
|
|
cat $logfile >>/dev/fd/2
|
|
grep "No errors found by Cilkscreen" $logfile >/dev/null 2>&1
|
|
exitcode=$?
|
|
fi
|
|
rm $logfile
|
|
exit $exitcode |