forked from steveicarus/ivtest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
find_valg_errs
executable file
·31 lines (22 loc) · 1.15 KB
/
find_valg_errs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
echo "VVP valgrind errors."
echo "-------------------------"
fgrep "ERROR SUMMARY" log/*.log | fgrep -v " 0 errors" || echo "No Errors."
tail -n8 log/*.log | fgrep "definitely lost" | fgrep -v " 0 bytes" || \
echo "No \"definitely lost\" memory in vvp."
tail -n8 log/*.log | fgrep "indirectly lost" | fgrep -v " 0 bytes" || \
echo "No \"indirectly lost\" memory in vvp."
tail -n8 log/*.log | fgrep "possibly lost" | fgrep -v " 0 bytes" || \
echo "No \"possibly lost\" memory in vvp."
# egrep "^\*\*[0-9]+\*\*" log/*.log || echo "No \"missed deletes\" in vvp."
echo ""
echo "VPI valgrind errors."
echo "-------------------------"
fgrep "ERROR SUMMARY" vpi_log/*.log | fgrep -v " 0 errors" || echo "No Errors."
tail -n8 vpi_log/*.log | fgrep "definitely lost" | fgrep -v " 0 bytes" || \
echo "No \"definitely lost\" memory in vvp."
tail -n8 vpi_log/*.log | fgrep "indirectly lost" | fgrep -v " 0 bytes" || \
echo "No \"indirectly lost\" memory in vvp."
tail -n8 vpi_log/*.log | fgrep "possibly lost" | fgrep -v " 0 bytes" || \
echo "No \"possibly lost\" memory in vvp."
# egrep "^\*\*[0-9]+\*\*" vpi_log/*.log || echo "No \"missed deletes\" in vvp."