diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2013-11-29 10:18:08 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2013-12-02 10:08:21 +0100 |
commit | 62a1f70d11db69546e768f0cfb0a374057f73eac (patch) | |
tree | 044f4abe1ca884e00e12bca1536da5e4833f1903 | |
parent | 7d2d687b2a5cc844e37916f2df18c24effe497ce (diff) |
loperf: Remove old callgrind files.
-rwxr-xr-x | loperf/loperf.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/loperf/loperf.sh b/loperf/loperf.sh index 461e0ff..9d36a7f 100755 --- a/loperf/loperf.sh +++ b/loperf/loperf.sh @@ -173,10 +173,13 @@ find docs -type f | grep -Ev "\/\." | while read f; do done +# Clean old callgrind files +find "logs/callgrind" -type f -mtime +10 -exec rm {} \; + # Regression check -# echo "Regression Status:" | tee -a "$PF_LOG" -# echo "-----------------" | tee -a "$PF_LOG" -# find $(dirname $(readlink -f "$PF_LOG")) -type f | grep -v "$PF_LOG" | grep log$ | while read rf; do -# check_regression "$PF_LOG" "$rf" | tee -a "$PF_LOG" -# done -# grep '^Regression found!$' "$PF_LOG" > /dev/null || echo "Congratulations, no regression found!" | tee -a "$PF_LOG" +echo "Regression Status:" | tee -a "$PF_LOG" +echo "-----------------" | tee -a "$PF_LOG" +find $(dirname $(readlink -f "$PF_LOG")) -type f | grep -v "$PF_LOG" | grep log$ | while read rf; do + check_regression "$PF_LOG" "$rf" | tee -a "$PF_LOG" +done +grep '^Regression found!$' "$PF_LOG" > /dev/null || echo "Congratulations, no regression found!" | tee -a "$PF_LOG" |