diff options
author | tcely <tcely@users.noreply.github.com> | 2019-07-14 14:42:16 -0400 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-25 17:48:28 -0300 |
commit | 6f6e87ef14b576628be554a1c83a2e0b6298ec9e (patch) | |
tree | ff5f923b064a01c1ef40cd507eaf146bdffd1f77 /community/fossil | |
parent | cc237b8bfa2c8dbb4996134d69cb7df379166129 (diff) | |
download | aports-6f6e87ef14b576628be554a1c83a2e0b6298ec9e.tar.bz2 aports-6f6e87ef14b576628be554a1c83a2e0b6298ec9e.tar.xz |
community/fossil: update check
Diffstat (limited to 'community/fossil')
-rw-r--r-- | community/fossil/APKBUILD | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/community/fossil/APKBUILD b/community/fossil/APKBUILD index 8f75d080c1..ceac0fc413 100644 --- a/community/fossil/APKBUILD +++ b/community/fossil/APKBUILD @@ -9,7 +9,8 @@ pkgdesc="Simple, high-reliability, distributed software configuration management url="https://www.fossil-scm.org" arch="all" license="BSD-2-Clause" -options="!check" # missing tcl modules +options="!check" # bogus tests +# Final results: 50 errors out of 36205 tests depends="" checkdepends="coreutils ed tcllib" makedepends="openssl-dev sqlite-dev tcl-dev zlib-dev" @@ -27,7 +28,27 @@ build() { } check() { - make TESTFLAGS="-quiet -halt" test + local oldPATH="${PATH}" + PATH="${PATH}:${builddir}" + if [ -z "${USER}" ]; then + USER="$(id -u -n)" + export USER + fi + if [ -z "${HOME}" ]; then + HOME="$(getent passwd "${USER}" | awk -F : '{print $6; quit;}')" + export HOME + fi + + # ROrepo is somehow not an error anymore?! + sed -i.orig -e '/^test json-ROrepo-2-1 /s/$/ knownBug/' ./test/json.test + + if ! make TESTFLAGS="-quiet -halt" test; then + make test + PATH="${oldPATH}" + return 1 + fi + + PATH="${oldPATH}" } package() { |