blob: 50bef434c6f567ebeddc6d906dbb182c9f441224 (
plain)
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
|
#!/bin/bash
# gentoo-infra: infra/githooks.git:local/tests/run-all.sh
# Tests for git hooks
# Copyright 2018 Michał Górny
# Distributed under the terms of the GNU General Public License v2 or later
. /lib/gentoo/functions.sh
TESTS=(
update-04-utf8.sh
update-05-manifest.sh
update-06-copyright.sh
)
ret=0
for t in "${TESTS[@]}"; do
einfo "${t} tests:"
eindent
(
. "${BASH_SOURCE%/*}/${t}"
)
: $(( ret |= ${?} ))
eoutdent
done
[[ ${ret} -eq 0 ]] || eerror "Some of the tests failed."
exit "${ret}"
|