blob: 117f210ff2996a783fbedfc9ab9ed0b800507859 (
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
|
#!/bin/bash
# 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}"
|