forked from bbvadata/Jazz
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdynamic_analysis.sh
executable file
·37 lines (25 loc) · 1.07 KB
/
dynamic_analysis.sh
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
32
33
34
35
36
37
#!/bin/bash
# (c) 2018-2024 kaalam.ai (The Authors of Jazz)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
rm -rf server/dynamic_analysis_reports/
pushd server || exit 1
make tjazz
mkdir dynamic_analysis_reports
valgrind --leak-check=yes --suppressions=../valgrind_suppress_lmdb.conf --log-file=dynamic_analysis_reports/memcheck.txt ./tjazz
# This displays in the listing code to suppress each message:
# valgrind --leak-check=yes --gen-suppressions=all --suppressions=../valgrind_suppress_lmdb.conf --log-file=dynamic_analysis_reports/memcheck.txt ./tjazz
# This is a completely non-suppressed version:
# valgrind --leak-check=yes --log-file=dynamic_analysis_reports/memcheck.txt ./tjazz
popd || exit 1
reports=$(find server/dynamic_analysis_reports/ | grep ".txt")
printf "\nDone.\n"
printf "\n** See the reports in: **"
printf "\n---===================---\n\n"
echo "$reports"
printf "\n"