mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
dev-vcs/mergestat: improve tests
Closes: https://bugs.gentoo.org/834750 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -1025,6 +1025,8 @@ RDEPEND="
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
DOCS=( README.md )
|
||||
RESTRICT="test"
|
||||
PROPERTIES="test_network"
|
||||
|
||||
src_prepare() {
|
||||
# remove bundled sqlite
|
||||
@@ -1034,7 +1036,7 @@ src_prepare() {
|
||||
|
||||
src_compile() {
|
||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||
export CGO_CFLAGS="${CFLAGS} -DUSE_LIBSQLITE"
|
||||
export CGO_CFLAGS="${CFLAGS} -DUSE_LIBSQLITE3"
|
||||
export CGO_LDFLAGS="${LDFLAGS} -Wl,--unresolved-symbols=ignore-in-object-files -lsqlite3"
|
||||
local tags="sqlite_vtable,vtable,sqlite_json1,system_libgit2"
|
||||
go build \
|
||||
@@ -1055,3 +1057,7 @@ src_install() {
|
||||
dobin mergestat
|
||||
dolib.so libmergestat.so
|
||||
}
|
||||
|
||||
src_test() {
|
||||
go test -x -v -tags="sqlite_vtable,vtable,sqlite_json1,system_libgit2,static" ./... || die
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user