blob: 102081d4d15da6706f68f3aca02113845a4955ed (
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
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Unit-test framework for Bourne-based shell scripts"
HOMEPAGE="https://github.com/kward/shunit2"
SRC_URI="https://github.com/kward/shunit2/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~riscv ~x86"
src_test() {
SHELL="/bin/bash" ./test_runner -s /bin/bash || die "bash tests failed"
}
src_install() {
dobin shunit2
# For backwards compat to <=2.1.5
dosym -r /usr/bin/shunit2 /usr/share/shunit2/shunit2
dodoc -r examples
dodoc doc/*.txt
}
|