Skip to content

Commit 633ba22

Browse files
committed
Dothem: run with leaks and sha256
1 parent 1fd8a46 commit 633ba22

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

Dothem

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ inst_prefix=$(
1818
)
1919

2020
force= with_dash= test_long= M= install= doc= notest= bootstrap= branches= jobs=
21-
scratch= noprove= memtrash=--memtrash with_cocci= san= clean=
21+
scratch= noprove= memtrash=--memtrash with_cocci= with_leaks= with_sha256= san= clean=
2222
while case "$1" in
2323
--pedantic | --locale=* | --loose) M="$M $1" ;;
2424
--force) force=$1 ;;
@@ -41,6 +41,8 @@ while case "$1" in
4141
--branches=*) branches=${1#*=} ;;
4242
--noprove) noprove=$1 ;;
4343
--san) san=t ;;
44+
--leaks) with_leaks=t ;;
45+
--sha256) with_sha256=t ;;
4446
-j*) jobs=$1 ;;
4547
--) shift; break ;;
4648
-*) echo >&2 "Unknown option: $1"; exit 1 ;;
@@ -229,16 +231,21 @@ do
229231

230232
save=$(git rev-parse HEAD) &&
231233

234+
# cocci
232235
if test -n "$with_cocci"
233236
then
234237
Meta/Make $M $jobs -- coccicheck
235238
fi &&
236239

240+
# sparse
237241
Meta/Make $M $jobs -- NO_REGEX=NoThanks \
238242
SPARSE_FLAGS=-Wsparse-error sparse &&
239243
rm -f compat/regex/regex.o &&
244+
245+
# hdr
240246
Meta/Make $M $jobs -- hdr-check &&
241247

248+
# SANITIZE=address,undefined
242249
case "$dotest,$san" in
243250
'')
244251
;;
@@ -252,6 +259,17 @@ do
252259
;;
253260
esac &&
254261

262+
# sha256
263+
if test -n "$with_sha256"
264+
then
265+
(
266+
export GIT_TEST_DEFAULT_HASH=sha256
267+
Meta/Make -j16 $T test &&
268+
Meta/Make >/dev/null distclean
269+
)
270+
fi &&
271+
272+
# docs
255273
{
256274
test -n "$skip_doc" ||
257275
if test "$save" = "$(git rev-parse HEAD)"
@@ -264,6 +282,17 @@ do
264282
fi
265283
} &&
266284

285+
# leaks
286+
if test -n "with_leaks"
287+
then
288+
(
289+
export SANITIZE=leak
290+
export GIT_TEST_PASSING_SANITIZE_LEAK=true
291+
Meta/Make -j16 $T CC=clang test &&
292+
Meta/Make -j16 >/dev/null distclean
293+
)
294+
fi &&
295+
267296
{
268297
test z$install = znoinstall ||
269298
if test "$save" = "$(git rev-parse HEAD)"

0 commit comments

Comments
 (0)