File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 err " failed to get commit hash"
3333 exit 1
3434fi
35- git_patches=" $( get_applied_git_patches) "
3635
3736log_cmd=' echo nologging'
3837if is_cfg CFG_ENABLE_LOGGING
@@ -53,6 +52,7 @@ $CFG_ENV_RUNTIME gdb \
5352EOF
5453
5554log " $run_cmd "
55+ git_patches=" $( get_applied_git_patches) "
5656launch_commit=" $( get_commit) "
5757bash -c " set -euo pipefail;$run_cmd "
5858log " build commit: $launch_commit "
Original file line number Diff line number Diff line change 5252# but last time i lost my untracked valgrind.sh so this time i rather track
5353# the messy one than to start from scratch again
5454
55+ export COMMIT_HASH
56+ if ! COMMIT_HASH=" $( get_commit) "
57+ then
58+ err " failed to get commit hash"
59+ exit 1
60+ fi
61+ git_patches=" $( get_applied_git_patches) "
62+
5563srv_commit=77931f936c
5664SRV_BIN=./bin/solofng1_no_asan_" ${srv_commit} "
5765
@@ -65,8 +73,18 @@ cp ~/git/ddnet-insta/build-valgrind/DDNet-Server "$SRV_BIN" || exit 1
6573# --leak-check=full \
6674# --show-leak-kinds=all \
6775
76+
77+ git_patches=" $( get_applied_git_patches) "
78+ launch_commit=" $( get_commit) "
79+
6880valgrind \
6981 --tool=massif \
7082 --suppressions=./lib/supp/memcheck.supp \
7183 " $SRV_BIN " & > logs/valgrind_" $( date ' +%F_%H-%M' ) " .txt
7284
85+ log " build commit: $launch_commit "
86+ if [ " $git_patches " != " " ]
87+ then
88+ log " applied patches: $git_patches "
89+ fi
90+
You can’t perform that action at this time.
0 commit comments