Skip to content

Commit e0260d8

Browse files
committed
git patches and commit hash
1 parent 28d33d3 commit e0260d8

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

gdb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ then
3232
err "failed to get commit hash"
3333
exit 1
3434
fi
35-
git_patches="$(get_applied_git_patches)"
3635

3736
log_cmd='echo nologging'
3837
if is_cfg CFG_ENABLE_LOGGING
@@ -53,6 +52,7 @@ $CFG_ENV_RUNTIME gdb \
5352
EOF
5453

5554
log "$run_cmd"
55+
git_patches="$(get_applied_git_patches)"
5656
launch_commit="$(get_commit)"
5757
bash -c "set -euo pipefail;$run_cmd"
5858
log "build commit: $launch_commit"

valgrind.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ fi
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+
5563
srv_commit=77931f936c
5664
SRV_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+
6880
valgrind \
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+

0 commit comments

Comments
 (0)